size mismatch

Hello,
Thank you for making your code public,I've been trying to run dream, however I keep having the error
"size mismatch, m1: [1 x 256], m2: [64 x 256] at c:\anaconda2\conda-bld\pytorch_1513133520683\work\torch\lib\th\generic/THTensorMath.c:1416"
After examination, it comes from that part of the code:
for i,x in enumerate(batchify(train_ub, dr_config.batch_size)):
baskets, lens, _ = x
dr_hidden = repackage_hidden(dr_hidden) # repackage hidden state for RNN
dr_model.zero_grad() # optim.zero_grad()
dynamic_user, _  = dr_model(baskets, lens, dr_hidden)

dr_hidden is of size 1x4x64
baskets is a list with index from 0 to 255, each having a size of 99 (padded)
lens is a list with index from 0 to 255, each having size dependent on the basket of the user (max at 99)

The parameter I used for the config are:
DREAM_CONFIG = {'basket_pool_type': 'max', # 'avg'
'rnn_layers': 2, # 2, 3
'rnn_type': 'LSTM',#'RNN_TANH',#'GRU',#'LSTM',# 'RNN_RELU',
'dropout': 0.5,
# 'num_product': 49688 + 1, # padding idx = 0
'num_product': 49688 + 1 + 1,
# 49688 products, padding idx = 0, none idx = 49689, none idx indicates no products
'none_idx': 49689,
'embedding_dim': 64, # 128
'cuda': False, # True,
'clip': 20, # 0.25
'epochs': 100,
'batch_size': 256,
'learning_rate': 0.01, # 0.0001
'log_interval': 1, # num of batchs between two logging
'checkpoint_dir': DREAM_MODEL_DIR + 'reorder-next-dream-{epoch:02d}-{loss:.4f}.model',
}
I dont use ub_rbks, ub_ihis; only ub_basket
Thanks for the help !

Hi, Could you find the exact line in DreamModel which generates the bug i.e. which operation causes the size mismatch problem? And I'll check it further. I mainly tested dream on the reorder prediction problem but I remember that it ran well on the order prediction problem.

Yes, it comes from the function forward in class dream. More precisely, it comes from that line:
output, h_u = self.rnn(packed_ub_seqs, hidden).
I'll try to run twith the reorder prediction to see if this persists or not.

Could you print out the sizes of hidden and ub_seqs just before line
output, h_u = self.rnn(packed_ub_seqs, hidden) ?

I have the same problem with the reorder.
hidden (2 Variables)
[torch.FloatTensor of size 3x32x128]

ub_seqs
torch.FloatTensor of size 32x7936

packed_ub_seqs(1 Variable + 1 list of size 62)
[torch.FloatTensor of size 453]
, batch_sizes=[32, 32, 32, 26, 25, 22, 21, 18, 16, 12, 12, 12, 11, 9, 8, 8, 8, 8, 8, 7, 6, 6, 6, 5, 5, 5, 5, 4, 4, 4, 4, 4, 4, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1])
32 is the batch size, 128 the embedded dim

Is something wrong with the ub_seqs ? Its size should be (batch_size, max_len, embedding_dim)

    ub_seqs = [] # users' basket sequence
    for user in x: # x shape (batch of user, time_step, indice of product) nested lists
        embed_baskets = []
        for basket in user:
            basket = torch.LongTensor(basket).resize_(1, len(basket))
            basket = basket.cuda() if self.config.cuda else basket # use cuda for acceleration
            basket = self.encode(torch.autograd.Variable(basket)) # shape: 1, len(basket), embedding_dim
            embed_baskets.append(self.pool(basket, dim = 1))
        # concat current user's all baskets and append it to users' basket sequence
        ub_seqs.append(torch.cat(embed_baskets, 1)) # shape: 1, num_basket, embedding_dim

basket is of size 1x1x128 but embed_basket is of size 1x218, could it come from that line and the pool function?
embed_baskets.append(self.pool(basket, dim = 1))

I checked with a bastet of length 18, indeed basket has size 1x18x128 (1x length (basket) x embedded dim, but embed_baskets is a list of 74 Variables, and size is reported to be 1x128.
When basket is converted into a float tensor with self.encode, it gives me the right dimensions : 1x18x128. After the application of the pool function (the max), I got 1x128 ( like in the paper, it takes the maximum value of every dimension).
However, embedded basket ends us also 1x128, I assume there is a problem with the append function?

Maybe we should check size of torch.cat(embed_baskets, 1) ? in line
ub_seqs.append(torch.cat(embed_baskets, 1))

Yes, it is indeed that line.
embed_baskets is a list of each baskets (74) in the batch, each basket has 1x128 dim.
If we do torch.cat(embed_baskets, 1), we end up with a long vector of 1x9472 (74x128=9472).
If I follow you, I should have instead (34,74,128) (batch_size, max_len, embedding_dim).

Problem was resolved by using stack instead of cat
        userSequence= torch.cat(embed_baskets, 0)
        ub_seqs.append(userSequence)
        ub_seqsCat= torch.stack(ub_seqs, 0)


fix: Add support for robo-directives

Fixes #2206
Test Plan

How do we know the code works?
Passes all tests and also tested on the production Dropbox app with our robo-directives
.

Checklist

[x] Documented
[x] Unit tested
[x] Integration tests updated

I have read the CLA Document and I hereby sign the CLA

Thank you for the detailed issue and pull request! The code looks good for me. I am waiting on CI to see if all the tests pass, then I'll merge.

@changusmc The flank snapshot has been updated with this change. Please test and let me know if this works for you. I can then make a stable release.
https://github.com/Flank/flank/releases/tag/flank-snapshot


Use UserInfo metadata

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

Sorry - I intended to just show some work that i was doing on my own fork.


Unable to run build, '<EMAIL_ADDRESS>is not in the npm registry.

Hi experts,
I'm struggling with almost the same issue as solved in #634.
error mtaBuild - npm ERR! 404  '<EMAIL_ADDRESS>is not in the npm registry.
I use the "new" registry: 'https://registry.npmjs.org/' in my customer image and in the config.yml of project piper. I can see that the version of<EMAIL_ADDRESS>exists within the npm org.
Any ideas what the reason could be?
If I run this image locally on the same "project-piper" server I don' get this issue. I can build my mtar as expected.
mtaBuild:
mtaBuildTool: 'cloudMbt'
defaultNpmRegistry: 'https://registry.npmjs.org/'
info  mtaBuild - npm registry registry was not configured, setting it to http://cx-nexus:8081/repository/npm-proxy/
info  mtaBuild - running command: npm config set registry http://cx-nexus:8081/repository/npm-proxy/
info  mtaBuild - "mta.yaml" file found in project sources
info  mtaBuild - No timestamp contained in "mta.yaml". File has not been modified.
info  mtaBuild - Executing mta build call: "mbt build --mtar TBASE_1.1.13.mtar --platform XSA --target ./"
info  mtaBuild - running command: mbt build --mtar TBASE_1.1.13.mtar --platform XSA --target ./
info  mtaBuild - [2021-04-16 10:18:26]  INFO Cloud MTA Build Tool version 1.1.1
info  mtaBuild - [2021-04-16 10:18:26]  INFO generating the "Makefile_20210416101826.mta" file...
info  mtaBuild - [2021-04-16 10:18:26]  INFO done
info  mtaBuild - [2021-04-16 10:18:26]  INFO executing the "make -f Makefile_20210416101826.mta p=XSA mtar=TBASE_1.1.13.mtar strict=true mode= t="./"" command...
info  mtaBuild - [2021-04-16 10:18:26]  INFO validating the MTA project
info  mtaBuild - [2021-04-16 10:18:26]  INFO validating the MTA project
info  mtaBuild - [2021-04-16 10:18:26]  INFO building the "db" module...
info  mtaBuild - [2021-04-16 10:18:26]  INFO executing the "npm install --production" command...
error mtaBuild - npm ERR! code E404
error mtaBuild - npm ERR! 404 Repository not found - GET http://cx-nexus:8081/repository/npm-proxy/@sap%2Fhdi-deploy
error mtaBuild - npm ERR! 404
error mtaBuild - npm ERR! 404  '<EMAIL_ADDRESS>is not in the npm registry.
error mtaBuild - npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
error mtaBuild - npm ERR! 404 It was specified as a dependency of 'db'
error mtaBuild - npm ERR! 404
error mtaBuild - npm ERR! 404 Note that you can also install from a
error mtaBuild - npm ERR! 404 tarball, folder, http url, or git url.
info  mtaBuild -
error mtaBuild - npm ERR! A complete log of this run can be found in:
error mtaBuild - npm ERR!     /home/mta/.npm/_logs/2021-04-16T10_18_26_799Z-debug.log
error mtaBuild - [2021-04-16 10:18:26] ERROR could not build the "db" module: could not execute the "npm install --production" command: exit status 1
info  mtaBuild - make: *** [Makefile_20210416101826.mta:37: db] Error 1
info  mtaBuild - Error: could not build the MTA project: could not execute the "make -f Makefile_20210416101826.mta p=XSA mtar=TBASE_1.1.13.mtar strict=true mode= t="./"" command: exit status 2
fatal mtaBuild - failed to execute mta build - running command 'mbt' failed: cmd.Run() failed: exit status 1
debug mtaBuild - Sending telemetry data
debug mtaBuild - Transport timeout: 3m0s, max request duration: 5s
debug mtaBuild - --------------------------------
debug mtaBuild - --> GET request to https://webanalytics.cfapps.eu10.hana.ondemand.com/tracker/log?action_name=Piper+Library+OS&custom10=stageName&custom11=duration&custom12=exitCode&custom13=errorCategory&custom3=stepName&custom4=pipelineUrlHash&custom5=buildUrlHash&e_11=821&e_12=1&e_13=build&e_3=mtaBuild&e_4=n%2Fa&e_5=n%2Fa&event_type=library-os-ng&idsite=827e8025-1e21-ae84-c3a3-3f62b70b0130&url=https%3A%2F%2Fgithub.com%2FSAP%2Fjenkins-library.git
debug mtaBuild - headers: map[]

Tried  also different versions, but always the same issue.
error mtaBuild - npm ERR! 404  '<EMAIL_ADDRESS>is not in the npm registry.

Could solve this issue. After setting the noProxy with the values: cx-nexus and nexus, does the building process of the .mtar file work for me.
changed it in the docker config file:
https://docs.docker.com/network/proxy/#configure-the-docker-client
~/.docker/config.json
{
"proxies":
{
"default":
{
"httpProxy": "http://<IP_ADDRESS>:3001",
"httpsProxy": "http://<IP_ADDRESS>:3001",
"noProxy": "*.test.example.com,.example2.com,<IP_ADDRESS>/8"
}
}
}


Building a custom collector

The tutorial supplies a configuration file called builder-config.yaml to be used during the tutorial. There is a small error in this configuration that causes the tutorial to not be able to be followed exactly as it is written
specifically there is a line that goes across two lines. The line break needs to be removed
"github.com/open-telemetry/opentelemetry-collector-contrib/exporter/jaegerexporter
v0.64.0"
should be
"github.com/open-telemetry/opentelemetry-collector-contrib/exporter/jaegerexporter v0.64.0"
Additionally specifying the otelcol version in the builder configurations would probably be a good idea so that if a user has a version of the otel collector builder that is newer than 0.64.0, there wont be a conflict.

@TheJacobWalters absolutely

Closed by #2148


#import <Flutter/Flutter.h> --> ERROR

I updated my flutter version and add some new features in app. But it's not building. I didn't catch it. How can I solve this?
`Launching lib/main.dart on iPhone 12 Pro Max in debug mode...
Running pod install... 1.308ms
Running Xcode build...
Xcode build done. 2,7s
Failed to build iOS app
Error output from Xcode build:
↳
objc[83639]: Class AMSupportURLConnectionDelegate is implemented in both ?? (0x1f061f8f0) and ?? (0x117e542b8). One of the two will be used. Which one is undefined.
objc[83639]: Class AMSupportURLSession is implemented in both ?? (0x1f061f940) and ?? (0x117e54308). One of the two will be used. Which one is undefined.
** BUILD FAILED **

Xcode's output:
↳
In file included from /Users/....[flutterpath]...../flutter233/.pub-cache/hosted/pub.dartlang.org/path_provider-1.6.27/ios/Classes/FLTPathProviderPlugin.m:5:
/Users/....[flutterpath]...../flutter233/.pub-cache/hosted/pub.dartlang.org/path_provider-1.6.27/ios/Classes/FLTPathProviderPlugin.h:5:9: fatal error: 'Flutter/Flutter.h' file
not found
#import <Flutter/Flutter.h>
^~~~~~~~~~~~~~~~~~~
1 error generated.
In file included from /Users/....[flutterpath]...../flutter233/.pub-cache/hosted/pub.dartlang.org/package_info-0.4.3+2/ios/Classes/FLTPackageInfoPlugin.m:5:
/Users/....[flutterpath]...../flutter233/.pub-cache/hosted/pub.dartlang.org/package_info-0.4.3+2/ios/Classes/FLTPackageInfoPlugin.h:5:9: fatal error: 'Flutter/Flutter.h' file
not found
#import <Flutter/Flutter.h>
^~~~~~~~~~~~~~~~~~~
1 error generated.
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description

Could not build the application for the simulator.
Error launching application on iPhone 12 Pro Max.`

Yes,
I added.
flutter doctor -v Result
[✓] Flutter (Channel stable, 2.2.3, on macOS 11.1 20C69 darwin-arm, locale tr-TR)
• Flutter version 2.2.3 at /Users/....../Development/flutter233
• Framework revision f4abaa0735 (10 weeks ago), 2021-07-01 12:46:11 -0700
• Engine revision 241c87ad80
• Dart version 2.13.4
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at /Users/....../Library/Android/sdk
• Platform android-30, build-tools 30.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.4, Build version 12D4e
• CocoaPods version 1.10.1
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2020.3)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
[✓] VS Code (version 1.60.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.26.0
[✓] Connected device (2 available)
• iPhone 12 Pro Max (mobile) • CBB90793-8027-40A7-9DEC-......... • ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-4 (simulator)
• Chrome (web)               • chrome                               • web-javascript • Google Chrome 93.0.4577.63
• No issues found!
IOS Podfile
Uncomment this line to define a global platform for your project
platform :ios, '9.0'
CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
project 'Runner', {
'Debug' => :debug,
'Profile' => :release,
'Release' => :release,
}
def flutter_root
generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), FILE)
unless File.exist?(generated_xcode_build_settings_path)
raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
end
File.foreach(generated_xcode_build_settings_path) do |line|
matches = line.match(/FLUTTER_ROOT=(.*)/)
return matches[1].strip if matches
end
raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
end
require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
flutter_ios_podfile_setup
target 'Runner' do
use_frameworks!
use_modular_headers!
flutter_install_all_ios_pods File.dirname(File.realpath(FILE))
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [
'$(inherited)',
## dart: PermissionGroup.calendar
'PERMISSION_EVENTS=0',
    ## dart: PermissionGroup.reminders
    'PERMISSION_REMINDERS=0',

    ## dart: PermissionGroup.contacts
    'PERMISSION_CONTACTS=0',

    ## dart: PermissionGroup.camera
    'PERMISSION_CAMERA=0',

    ## dart: PermissionGroup.microphone
    'PERMISSION_MICROPHONE=0',

    ## dart: PermissionGroup.speech
    'PERMISSION_SPEECH_RECOGNIZER=0',

    ## dart: PermissionGroup.photos
    'PERMISSION_PHOTOS=0',

    ## dart: [PermissionGroup.location, PermissionGroup.locationAlways, PermissionGroup.locationWhenInUse]
    'PERMISSION_LOCATION=0',

    ## dart: PermissionGroup.notification
    # 'PERMISSION_NOTIFICATIONS=0',

    ## dart: PermissionGroup.mediaLibrary
    'PERMISSION_MEDIA_LIBRARY=0',

    ## dart: PermissionGroup.sensors
    'PERMISSION_SENSORS=0'
  ]
end

end
end

run result
.........
[ +136 ms] Could not build the application for the simulator.
[   +3 ms] Error launching application on iPhone 12 Pro Max.
[   +5 ms] ../../Development/flutter233/.pub-cache/hosted/pub.dartlang.org/ffi-0.1.3/lib/src/allocation.dart:47:33: Error: Expected type 'T' to be a valid and
instantiated subtype of 'NativeType'.
[        ]   final int totalSize = count * sizeOf();
[        ]                                 ^
[ +732 ms] "flutter run" took 14.976ms.
[   +6 ms]
#0      throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
#1      RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:663:9)

#2      FlutterCommand.run. (package:flutter_tools/src/runner/flutter_command.dart:1043:27)

#3      AppContext.run. (package:flutter_tools/src/base/context.dart:150:19)

#4      CommandRunner.runCommand (package:args/command_runner.dart:196:13)

#5      FlutterCommandRunner.runCommand. (package:flutter_tools/src/runner/flutter_command_runner.dart:284:9)

#6      AppContext.run. (package:flutter_tools/src/base/context.dart:150:19)

#7      FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:232:5)

#8      run.. (package:flutter_tools/runner.dart:62:9)

#9      AppContext.run. (package:flutter_tools/src/base/context.dart:150:19)

#10     main (package:flutter_tools/executable.dart:91:3)

[  +54 ms] ensureAnalyticsSent: 52ms
[   +1 ms] Running shutdown hooks
[        ] Shutdown hooks complete
[        ] exiting with code 1

@oguzhanozdemir
From the log, it's failing due to below error:
[ +5 ms] ../../Development/flutter233/.pub-cache/hosted/pub.dartlang.org/ffi-0.1.3/lib/src/allocation.dart:47:33: Error: Expected type 'T' to be a valid and
instantiated subtype of 'NativeType'.
[ ] final int totalSize = count * sizeOf();
[ ] ^
[ +732 ms] "flutter run" took 14.976ms.
[ +6 ms]

which is pointing to ff-0.1.3. Try to upgrade it to latest and see if it works.
Check this issue comment for reference.

No, it's not working. It gives same errors.

@oguzhanozdemir
Your ios/podfile need to have the helper function flutter_additional_ios_build_settings(target) that Flutter uses. If you remove it, then you'll get the error you are seeing.
The podfile should look like this: https://github.com/flutter/flutter/blob/e605b7c2250e803f46017b1d544fc8c297007546/packages/flutter_tools/templates/cocoapods/Podfile-ios-swift

@darshankawar
I deleted ios folder, create it again and I didn't add permissions rows, (move to info.plist), now it is working. But every update project I have this error. I will try your solution now.

Without additional information, we are unfortunately not sure how to resolve this issue.
We are therefore reluctantly going to close this bug for now.
Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.
Could everyone who still has this problem please file a new issue with the exact description of what happens, logs, and the output of flutter doctor -v.
All system setups can be slightly different, so it's always better to open new issues and reference related issues.


Fix non functional template for Prisma

Fixed:

update Prisma files location (remove the obsolete one - .prisma)
rmSync and cpSync instead of removeSync and copySync
add 'recursive' option while copying prisma files to avoid the error 'Path is a directory: cp returned EISDIR'
remove the local only deployment to make it work with 'sst dev' mode
load database URL from .env instead of hard coded one
added the "linux-arm64" architecture if you are using AWS Graviton 2 (source: https://www.prisma.io/docs/orm/prisma-client/deployment/serverless/deploy-to-aws-lambda)
Some of the updates above are based on this repo: https://github.com/geauser/sst-prisma-example
Tested OK with Node 20 LTS.

Appreciate it!


install not found

PS D:\vscode-workspace\park-vision> yarn add vite-plugin-impoter
yarn add v1.22.10
[1/4] Resolving packages...
error An unexpected error occurred: "https://registry.yarnpkg.com/vite-plugin-impoter: Not found".
info If you think this is a bug, please open a bug report with the information provided in "D:\\vscode-workspace\\park-vision\\yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

vite-plugin-importer~

yeah! but readme not update

I'm too careless..
Thanks~

fixed


Limited customization options for Docs theme components.

I'm exploring the customization capabilities of Nextra's doc theme, particularly for components like the navbar, footer, sidebar, toc, search bar etc. However, I'm encountering limitations in achieving the desired level of personalization within my local project.

Custom Component Injection: Is there a recommended approach to inject custom components (like a custom navbar or footer) into the existing doc theme layout? If not, are there plans to introduce such functionality in future releases?
Component Customization: Can the styles and functionality of the currently available theme components be overridden or extended locally? If so, could you please provide a clear example or documentation on how to achieve this?

Similar subproblem was discussed here #231 but there is no effective solution given there apart from this example by Jared Palmer which uses older version of Nextra.

@annalhq

Custom Component Injection:
Navbar customization & Footer customization.

import CustomNavbar from './components/CustomNavbar'
import CustomFooter from './components/CustomFooter'

const config: DocsThemeConfig = {

 footer: {
    component:  <CustomFooter />
  },
 navbar: {
    component:  <CustomNavbar />
  }
}

Component Customization:
Similarly there are multiple customization options. For style overwrites, it's indeed a little tricky as the build in components often don't have any unique identifiers.
You might have to experiment with specific css selectors like:

.nextra-scrollbar > p:first-child {
  text-transform: uppercase;
}


Update account when user switches account in Argent X

The value of account returned by useStarknet should be updated when the user switches account in their wallet.

@MavericksFive is going to work on this contribution

Fix: #200

Fixed in #200


How to download svg from preview?

Hi,
I want to download the diagram shown in the preview as an svg file. But I can't find the download menu. Please add a feature or let me know how to download it.
Thank you!

this is a very useful feature to have  to export SVG file
Otherwise  we need to take snapshot


Issue 5 translate countries to Spanish Language

Pull Request #5
Create a "countries.php" file to 'en', 'es', 'nl' folder
Please tell us , the type of Change you are submiting:
Select one of the following:

[ ] Bug
[X] Feature
[ ] Minor Change

Does it fix an existing issue? Please tell us which one
Resolves #5

Description of what's been changed
I have translated countries to Spanish Language

Thats not what I meant with 'country' => 'country'. I wanted the full list of countries in it, so:
'Argentina'                     => 'Argentina',
'Australia'                     => 'Australia',
'Austria'                       => 'Austria',

etc.

There are still some countries not translated in the countries.php in es... I can't imagine that the Spanish language doesn't have translations for them.

Some countries names are the Same in Spanish and English language

Some countries names are the Same in Spanish and English language

Ah okay. Lazy Spanish :laugh:

Of course !

Thanks!

Pleas @sebastiaanspeck can you check my changes?

Please @sebastiaanspeck can you check my changes?

Looking good! Thansk, I will merge it.


Have casper-updater handle changelog updates

After discussion with @sacherjj this will be handled by SRE via their own Python scripts.


Fix the sequence length in the YAML parser

The initialSize in EconomicsMaps.create() is not the actual stored size, hence the accurate size is not determined until ObjectMembers are added after addMembers() called.
Since the size set during the creation of VmListing cannot be changed afterwards, the size of node.getValue() is used instead of members' size.

in yamlParser3.pkl,
product:
    - sku: BL3940
      quantify: 4
      description: Basketball
      price: 450.00
    - sku: BL4438H
      quantify: 1
      description: Super Hoop
      price: 2392.00

it's result is
product {
    "other"
    new {
      sku = "BL4438H"
      quantify = 1
      description = "Super Hoop"
      price = "2392.00"
    }
}

but, correct result is
product {
    new {
      sku = "BL3940"
      quantify = 4
      description = "Basketball"
      price = 450.00
    }
    new {
      sku = "BL4438H"
      quantify = 1
      description = "Super Hoop"
      price = "2392.00"
    }
    "other"
}

The length of the sequence was incorrectly set to 0, causing "other" to be inserted at index 0 and overwriting the contents of index 0.

I meant the file describing the expected result (pkl-core/src/test/files/LanguageSnippetTests/output/api/yamlParser3.pcf) was not updated yet. I've done that for you now.
Btw, totally skipped over saying "nice catch," but it is, so... nice catch! ;)


Updating the RRFS GRIB2 variable handle for "MSTAV"

A previous commit to the UPP repository (https://github.com/NOAA-EMC/UPP/commit/83e59b5d92ec678bcab11dd59919fac189a11a4c) resulted in a change to the RRFS GRIB2 variable handle for soil moisture availability (MSTAV). As a result of this change, Python graphics are failing in RRFS-B. Running an "ncl_filedump" on a recent RRFS-B GRIB2 file indicates that the new variable handle is "MSTAV_P0_L106_GLC0".  This update to pygraf has been successfully used in a RRFS CONUS 3-km retro on Hera.

Thanks, @cshartsough .  BTW, I do not have write access here; can someone click the "merge" button?  Then, I'll make a separate PR in ufs-srweather-app to update the pygraf hash.


Use Sessions for user information

Used sessions to save the user's full name and displayed it on the dashboard
used sessions to authenticate the user
used sessions to logout the user after 30 minutes of inactivity


Not able to import in Eclipse

I know this project is written using netbeans.. but I wanted to import into eclipse, which is failing.. any fixes..

Hi @softmanu, I wrote this project before I knew of the existence of Gradle, or even Maven. I've had a quick google and it seems to be possible to import Netbeans projects into Eclipse by importing distribution war files.
See the stackoverflow answer here: https://stackoverflow.com/a/31875864
I have just uploaded the war file here. Let me know if it worked and I will update the project's README with Eclipse instructions.


Include stringily algorithm

Could a virtual dom to html algorithm be included in this module? Here is one example of an algorithm, and I would be completely willing to write one in this codebase's style.
The argument for this would be that if the module contains a vdom to dom algorithm, it should also contain the symmetrical vdom to html algorithm for server side usage.
If the distributable file size is a blocker (which it should be) then it can just be included in a separate file to be conditionally required and not included in index.js. For example require('virutal-dom/stringify') would get the algorithm and require('virtual-dom').stringify would not.

There are already 5 user land modules that do this.
See: https://github.com/Matt-Esch/virtual-dom/wiki

If there are 5 modules, isn't that a sign there should be one definitive implementation?
Especially, as I've learned, the goal is to split up this one module into many smaller ones.


Bug: Exceptions thrown by database classes are not unified

Describe the bug
See https://github.com/codeigniter4/CodeIgniter4/pull/4176#issuecomment-775585091.
CodeIgniter 4 version
develop branch.
Affected module(s)
Database
Expected behavior, and steps to reproduce if appropriate
It should be standardized regardless of DBMS-specific classes.

Fixed by #6163


Fix for the daemon modules not loading

This patch fixes an error where the daemon modules are not loading.

[Current coverage][cc-pull] is 44.32%

Merging [#488][cc-pull] into [master][cc-base-branch] will not change coverage

@@             master       #488   diff @@
==========================================
  Files             2          2
  Lines           194        194
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
  Hits             86         86
  Misses          108        108
  Partials          0          0

[][cc-pull]

Powered by Codecov. Last updated by [42a3d25...9bec505][cc-compare]
[cc-base-branch]: https://codecov.io/gh/emccode/rexray/branch/master?src=pr
[cc-compare]: https://codecov.io/gh/emccode/rexray/compare/42a3d250e6246fefd5e6f9e09df817ee12b208a9...9bec5052ebcf92b208eaeeae9efc8b549d142dde
[cc-pull]: https://codecov.io/gh/emccode/rexray/pull/488?src=pr


Update the 'path' method to it could take a string as the 1st param.

The idea is to make it easier to use the 'path' method. The method can take not only an array as 1st parameter but and a  string which describes a path. The separator for paths' steps is dot .
E.g.
'a.b.c' instead ['a', 'b', 'c'].
R.path('a.b', {a: {b: 2}}); instead R.path(['a', 'b'], {a: {b: 2}});

Thank you for your PR.
Unfortunately, I think that API is a non-starter for Ramda.  See #876 for the discussion on where we moved away from that API.

@Kalita-Roman Function is already included in ramda-extension.

Thanks for information!


Make DeallocRef::get_build_alloc move into the BuildAlloc type, and rename suitably.

All of our uses of this function drop the DeallocRef type right after. This breaking
change allows us to avoid cloning allocators, which can be relatively expensive if Arcs
are involved.

Closing due to inactivity


[JavaScript|Python] DateTimeV2 support for it-it

Describe the bug
A clear and concise description of what the bug is.
Please refer to https://github.com/microsoft/botframework-skills/issues/282. it-it does not support datetimev2 entity.
Platform:

Platform: JavaScript, Python

@bobokids, DateTimeV2 is already supported in .NET.
Would yo be able to help porting it to JavaScript/Python?


[FEA] Add bootstrap support for on-prem environments in core tools functionality

As an on-prem customer, I would like to provide a simple config file that represents my on-prem GPU cluster and receive back a set of recommended Spark configs relevant for my cluster size and shape that will help my Spark RAPIDS jobs run effectively.

Bootstrap functionality has been deprioritized.


Build issues with 0.21.0 release

the release tarball doesn't contains Makefile.in, so the configure fails
after running autogen.sh and configure, the build is successful, but the library version is 5.3.2, iunstead of 8.2.3
meson build create the libpsl.so, without any version number. This breaks the dependency of other packages, because libpsl.so.5 (or any version numbered libpsl.so) is missing.

meson build create the libpsl.so, without any version number. This breaks the dependency of other packages, because libpsl.so.5 (or any version numbered libpsl.so) is missing.

This is fixed by https://github.com/rockdaboot/libpsl/commit/841ae6ddddf848a05509e27ad516e4d5c1758f10.

the release tarball doesn't contains Makefile.in, so the configure fails.

Did you download the tar'ed sources ?
The current tarball contains the Makefile.in:
$ tar tvfz libpsl-0.21.0.tar.gz |grep Makefile.in
-rw-r--r-- 200/100       32876 2019-04-16 15:11 libpsl-0.21.0/Makefile.in
-rw-r--r-- 200/100       16162 2016-12-14 12:04 libpsl-0.21.0/po/Makefile.in.in
-rw-r--r-- 200/100       18723 2019-04-16 15:11 libpsl-0.21.0/include/Makefile.in
-rw-r--r-- 200/100       28267 2019-04-16 15:11 libpsl-0.21.0/src/Makefile.in
-rw-r--r-- 200/100       24821 2019-04-16 15:11 libpsl-0.21.0/tools/Makefile.in
-rw-r--r-- 200/100       33448 2019-04-16 15:11 libpsl-0.21.0/docs/libpsl/Makefile.in
-rw-r--r-- 200/100       52436 2019-04-16 15:14 libpsl-0.21.0/fuzz/Makefile.in
-rw-r--r-- 200/100       40943 2019-04-16 15:11 libpsl-0.21.0/tests/Makefile.in
-rw-r--r-- 200/100       14786 2019-04-16 15:11 libpsl-0.21.0/msvc/Makefile.in

after running autogen.sh and configure, the build is successful, but the library version is 5.3.2, iunstead of 8.2.3

5.3.2 is correct, this is different from the versions in configure.ac (I don't have the algorithms at hand that calculate configure.ac numbers to SONAME).


NPM build vs CDN build

System information (Please provide as much relevant information as possible)

Programming Language and version: Javascript
MediaPipe version: 0.4

Describe the problem:
I'm still working out how best to get this working with ES modules, so I can't describe the full context of my installation yet, but I encountered a very specific problem.
I npm installed<EMAIL_ADDRESS>This gets me version 0.4.1630009814. I could not get this working in my environment. When I got enough working to attempt to start the code, I'd get "qa is not a constructor".  I don't know what that variable "qa" is, as it's a minified build, but its not being declared anywhere in the file.
Your demos work, however. And if I download the code from the CDN, "qa" IS defined here, and its later instantiated fine. If I place the contents of https://cdn.jsdelivr.net/npm/<EMAIL_ADDRESS>in place of my npm installed pose package, things work. These two files are different apparently.  The behavior is leading me to believe a bad build made it out on NPM.

I'm not really involved with the setup/installation process, so passing off to someone who'd know better.

The closure that is loaded by including the script attaches the entries to the global object.  I can wrap this in an ES5 module.  Probably will at some point.
The short ask:

Check your network tab to make sure that both *_loader.js and *_wasm.js are loading.  Along with those should be the .data and .wasm files are loading.
Put a timeout somewhere and check to see if those files are actually completing.  I set up promises to make sure that things don't run before they've completed loading.

If 1 comes back empty, it's your locateFile.  If it doesn't come back empty, then it's probably not completing.
I won't know without seeing your code and logs.  But let's start there.

Hi, OK, so here's my test file:
`

Title

`
Basically I use rollup to create ES modules with @tensorflow-models/pose-detection loading Mediapipe for me. pose-detation.esm.js has a dependency on the non-ESM mediapipe bundle that I installed from NPM.
I still need to figure out how to get rollup to do what I want, but I do manually change new pose.Pose(... within to new window.Pose(.... such that it uses the Window object that contains Pose.
Once that is done, things sorta start to work. My network capture also looks good from what you listed.

Now, the error I see from this is:
posedetection-bundle.js:40 Uncaught ReferenceError: qa is not defined     at O (posedetection-bundle.js:40)     at Tb.b (posedetection-bundle.js:103)     at posedetection-bundle.js:66     at new Promise (<anonymous>)     at Y (posedetection-bundle.js:66)     at Tb.A.initialize (posedetection-bundle.js:103)     at BlazePoseMediaPipeDetector.initialize (posedetection-bundle.js:36888)     at posedetection-bundle.js:36907     at step (posedetection-bundle.js:36634)     at Object.next (posedetection-bundle.js:36615)
If I instead force rollup to alias @mediapipe/pose to a local file where I've pasted the mediapipe CDN contents, it all works, and in my more complex demo, I immediately see points AND 3D keypoints which is what I was hoping for.
When I do a diff on the CDN version vs the NPM installed version, I see one short line is in the CDN version, but not NPM. Everything else is identical. Here's the line:
function pa(a,b){a.j={S:b,T:!0};a.g=a.m||a.s}na.prototype.return=function(a){this.j={return:a};this.g=this.s};function N(a,b,c){a.g=c;return{value:b}}function qa(a){this.g=new na;this.h=a}function ra(a,b){oa(a.g);var c=a.g.i;if(c)return sa(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.g.return);a.g.return(b);return ta(a)

@bengfarrell  I meet a similar issue. It is very confused me.
It works fine on dev mode of vite, but failed on build mode.
I just solve it like the below.
import { Class } from 'type-fest'

// https://github.com/google/mediapipe/blob/master/docs/solutions/pose.md#resources
import type { Results, Pose, PoseConfig } from '@mediapipe/pose'
import * as MediapipePose from '@mediapipe/pose'

// @mediapipe/pose is not an es module ??
// Extract Pose from the window to solve the problem
// To prevent optimization, just print it
console.log('@mediapipe/pose', MediapipePose)
const MyPose = (window as any).Pose as Class<Pose, [PoseConfig]>
console.log("MyPose", MyPose)

const pose = new MyPose({
    locateFile: (file) => {
        const url = `https://cdn.jsdelivr.net/npm/@mediapipe/pose/${file}`

        console.log('load pose model', url)
        return url
    },
})

Hello @bengfarrell
Are you still looking for a resolution? If yes, would you please check if the issue persists in the new MediaPipe solutions?
We are building a set of new, improved MediaPipe Solutions to help you more easily build and customize ML solutions for your applications. These new solutions will provide a superset of capabilities available in the legacy solutions. And we request the MediaPipe developer community help us uncover the issues and make the APIs more resilient.


@exclude tag causes error if no resource of that type exists in plan

Description :
If a test is defined with an exludes tag but no resource of that type is defined anywhere in the plan, then terraform-compliance errors with ERROR: Hook 'exclude_resources' from /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/terraform_compliance/steps/terrain.py:85 raised: 'AttributeError: 'Context' object has no attribute 'stash''
To Reproduce

Sample terraform main.tf

resource "aws_s3_bucket" "my_s3_bucket" {
   bucket = "my-bucket"
}

terraform init && terraform plan -out plan.out && terraform-compliance -p plan.out -f features
Run using pip package
Error output:

Feature: Load balancer should use certain policies for HTTPS  # /Users/***/features/naughty.feature

    @exclude_aws_lb_listener.listener_to_exclude
    Scenario: Load balancer should use certain policies for HTTPS
        💡 SKIPPING: Can not find aws_lb_listener defined in target terraform plan.
        Given I have aws_lb_listener defined

1 features (0 passed, 1 skipped)
1 scenarios (0 passed, 1 skipped)
6 steps (0 passed, 1 skipped)
Run<PHONE_NUMBER> finished within a moment
❗ ERROR: Hook 'exclude_resources' from /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/terraform_compliance/steps/terrain.py:85 raised: 'AttributeError: 'Context' object has no attribute 'stash''

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/radish/hookregistry.py", line 132, in call
    func(model, *args, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/terraform_compliance/steps/terrain.py", line 97, in exclude_resources
    for resource in step.context.stash:
AttributeError: 'Context' object has no attribute 'stash'

<Your feature/scenario/steps>

Feature: Load balancer should use certain policies for HTTPS
    @exclude_aws_lb_listener.listener_to_exclude
    Scenario: Load balancer should use certain policies for HTTPS
        Given I have aws_lb_listener defined
        When its port is 443
        When its protocol is HTTPS
        When it has ssl_policy
        Then it must have ssl_policy
        And its value must match the "ffoo-with-tls-1-2|bar-with-tls-1-2|etc-with-tls-1-2" regex

Expected behavior :
The tests should pass since no non-compliant LB listener is defined in the plan.
Tested versions :

<terraform-compliance version (terraform-compliance -v)> - present in 1.3.13 and 1.3.14
<terraform version (terraform -v)> - tested with 0.12.29 and 0.13.6
<python runtime version, if running as a python package (python --version)> - tested with 3.8.1

Additional context
N/A

Hi @pontinjx ,
Does the issue still persist?

Hi, this is working for me now in 1.3.15 - thanks very much!


Problem detecting device

Hello, I am trying to include the ability of recording using the blackmagic recorder in my project. Until now, I could not find anything useful (written in swift) so I was happy to to find out your work.
However, I have not been successful implementing your framework, as I cannot detect my device (H.264 pro recorder). I tried like is suggested, but my deviceList is an empty array:
  let browser = DLABBrowser()
  _ = browser.registerDevicesForOutput()
  let deviceList = browser.allDevices
  device = deviceList.first!

I have tested the recorder with the blackmagic software and it is detected and working perfectly. What could be the problem?
Thank you in advance.

Unfortunately it is not supported. This framework only works with uncompressed capture device for now.
H.264 Pro Recorder is categorized as "Streaming Encoder" and different API interface is required to support. Please take a look at Blackmagic DeckLink SDK Section 2.4.5 for Capture implementation.

One thing, I am not sure but if H.264 pro recorder is device for OUTPUT, use
browser.registerDevicesForOutput()
and If it is for INPUT, try
browser.registerDevicesForInput()
If the device supports both "compressed" and "decompressed" stream, this framework only work with "decompressed" capture.

Thank you very much for the quick response. Unfortunately, it is not working with browser.registerDevicesForInput() neither with browser.registerDevicesForOutput()
I may have access to a different recorder, blackmagic mini ultra studio. Will be different with this recorder? Sorry but I am not really familiar with those devices.
Thank you very much once again.

I hope this would help.
//
Blackmagic DeckLink SDK May 2019 (SDK 11.2)
P.19 Section 2 - DeckLink API 2.2 Sandboxing support on macOS

com.apple.security.temporary-exception.mach-lookup.global-name
com.blackmagic-design.desktopvideo.DeckLinkHardwareXPCService


Some classes do not conform to CustomStringConvertible

They have the property description implemented, but since they do not conform to CustomStringConvertible, print(_:) won't print the description.
Additionally, Comment doesn't even have implemented description.

Resolved by #9.


optimize MockDirInvocation setObjectAttachmentIfAbsent method code（#11526）

What is the purpose of the change
#11526 11526
Brief changelog
optimize MockDirInvocation setObjectAttachmentIfAbsent method code
Verifying this change

Checklist

[x] Make sure there is a GitHub_issue field for the change (usually before you start working on it). Trivial changes like typos do not require a GitHub issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
[ ] Each commit in the pull request should have a meaningful subject line and body.
[ ] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[ ] Check if is necessary to patch to Dubbo 3 if you are work on Dubbo 2.7
[ ] Write necessary unit-test to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add sample in dubbo samples project.
[ ] Add some description to dubbo-website project if you are requesting to add a feature.
[ ] GitHub Actions works fine on your own branch.
[ ] If this contribution is large, please follow the Software Donation Guide.

please check it.


Feature: Lock on secrets

Feature request:
In the Doppler interface, you can place locks on secrets, it would be nice to set locks on secrets from the Terraform provider to ensure removing/changing a resource doesn't cause accidental removal.
Example
resource "doppler_secret" "db_password" {
  project = "backend"
  config = "dev"
  name = "DB_PASSWORD"
  value = random_password.db_password.result

  lock = true
}

To be able to remove the resource the lock = true needs to be changed to false

Update: Locks are not present on secrets directly, they need to be done on branch configs.

Hey @a-nldisr! Thanks for writing in about this. We've gotten feedback from other users that it would be handy to mark certain secrets as "Terraform managed" so that they can't be modified outside of Terraform. Is this what you're aiming to do?

...it would be nice to set locks on secrets from the Terraform provider to ensure removing/changing a resource doesn't cause accidental removal.

Can you expand on this a bit? I'm not sure if there's a way we could design the provider such that removing or changing a resource doesn't remove the corresponding object in Doppler. Even using locks at the config level, you would still be able to remove the config by unlocking it first.

Hi @nmanoogian! Comments would be greatly appreciated, but would like to use the lock:

In general when you use this in cloud resources, you need to first remove the lock and afterwards you can update or delete the secret. We have a few secrets we want to place only in Doppler and nowhere else, and it would be costly if these would be lost due to a terraform mistake.

Ah, I see! Thank you for walking me through that. The strategy of needing to update the resource twice to perform a deletion makes sense. I'll pass this along to our product team!


Delete libpipeline.rb and man-db.rb

Moving libpipeline to Homebrew/homebrew-core
See Homebrew/homebrew-core#36629

Could you please update this PR to also remove man-db?

libpipeline is now a source in man-db

Good to go once PR https://github.com/Homebrew/homebrew-core/pull/36629 is merged. Thanks, Maxim.

Once man-db is merged into Linuxbrew/core, we can merge this PR.
I'm not sure why CI is failing.


Installation error

When I install the software running "python setup.py install", the error occurs:
Traceback`(most recent call last):
File "/data/01/user157/software/fixchr/setup.py", line 18, in <module>
  long_description=open('README.rst').read(),
FileNotFoundError: [Errno 2] No such file or directory: 'README.rst'

I can not find the file "README.rst". Could you give me any suggestions?

I modify the "README.rst" to "README.md" in the setup.py. It successfuly! I run the "./fixchr -h" ,  but I found it is similar to chroder". Maybe it will have the result that is the same as chroder?


Doc: Add mermaid graph of app architecture

This patch adds app architecture using mermaid graph.

reference : https://google-developer-training.github.io/android-developer-advanced-course-concepts/unit-6-working-with-architecture-components/lesson-14-architecture-components/14-1-c-architecture-components/14-1-c-architecture-components.html
This is a temporary diagram using the above reference.
Could I update it to match nns-android?
The quality of the diagram is not that pretty 🤔

reference : https://google-developer-training.github.io/android-developer-advanced-course-concepts/unit-6-working-with-architecture-components/lesson-14-architecture-components/14-1-c-architecture-components/14-1-c-architecture-components.html
This is a temporary diagram using the above reference. Could I update it to match nns-android? The quality of the diagram is not that pretty 🤔

@niley7464 It looks pretty but is not that informable:) It is not mandatory, I guess. If you want to include it next time, it would be OK (maybe...).


[SPARK-7319][SQL] Improve the output from DataFrame.show()

Can one of the admins verify this patch?

Please include a before and after example of the output and a description of what you changed (in the PR description).

testData.select($"*").show(5)
Before:
key value
1   1
2   2
3   3
4   4
5   5
After:
+----+-----+
|key|value|
|    1|      1|
|    2|      2|
|    3|      3|
|    4|      4|
|    5|      5|
+----+------+

@kaka1992 Thanks a lot for being so helpful. I have two requests:

Can you add a line after the header, exactly like what I wrote in the JIRA ticket?
Can you read this coding style guide and clean up the code? https://github.com/databricks/scala-style-guide  In general, it would be great to have the style match exactly rest of the code. Thanks.

This is looking pretty good now. I think you would need to fix some Python tests as well, as they were expecting the output from show.

@rxin Please test this PR.

Jenkins, test this please.

Merged build triggered.

Merged build started.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/31724/
Test FAILed.

Merged build finished. Test FAILed.

Jenkins, retest this please.

Merged build triggered.

Merged build started.

Test build #31728 has started for   PR 5865 at commit a1338f6.

Test build #31728 has finished for   PR 5865 at commit a1338f6.

This patch fails to build.
This patch merges cleanly.
This patch adds no public classes.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/31728/
Test FAILed.

Merged build finished. Test FAILed.

@rxin error: oro#oro;2.0.8!oro.jar origin location must be absolute. What's wrong with building?

Jenkins, retest this please.

Merged build triggered.

Merged build started.

Test build #31731 has started for   PR 5865 at commit a1338f6.

Test build #31731 has finished for   PR 5865 at commit a1338f6.

This patch fails SparkR unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/31731/
Test FAILed.

@rxin Fixed showDF test in R.

Jenkins, ok to test.

Merged build triggered.

Merged build started.

Test build #31764 has started for   PR 5865 at commit c79204b.

SparkR changes look good

Test build #31764 has finished for   PR 5865 at commit c79204b.

This patch passes all tests.
This patch merges cleanly.
This patch adds the following public classes (experimental):
abstract class ShuffleHandle(val shuffleId: Int) extends Serializable
  *   class SomethingNotSerializable
      logDebug(s" + cloning the object $obj of class $
class SaslEncryption
 static class EncryptedMessage extends AbstractReferenceCounted implements FileRegion
class SaslRpcHandler extends RpcHandler
public class SaslServerBootstrap implements TransportServerBootstrap
public class SparkSaslClient implements SaslEncryptionBackend
public class SparkSaslServer implements SaslEncryptionBackend
public class ByteArrayWritableChannel implements WritableByteChannel

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/31764/
Test PASSed.

Merged build finished. Test PASSed.

Thanks a lot for doing this. I'm merging this in master.


RFC: Deprecate Object access in 3.7

In 3.7 we've renamed Object to SS_Object, and Object is only used if PHP 7.1 or lower is installed. This let us run SS3 on PHP 7.2. 🎉
However, if you're currently running a site on PHP 7.1 and you're looking to upgrade to PHP 7.2, it can be hard to know if it will break.
It would be helpful if any reference to the Object class triggered a deprecation warning. This would let 3.7 users better understand whether or not their sites were going to break when they upgrade to PHP 7.2.
From memory, access to the Object class is by far the most likely change that would cause problems with this upgrade.
Ordinarily a deprecation would happen in a minor release, but given that PHP 7.1 EOLs in a year, 3.7 is supported for another 10 months after that, and we don't want a 3.8, this might be worthwhile.

I wonder if we can provide an upgrade path to SS4 with the methods people use on Object other than simply extending Object, that'd provide for a much safer deprecation

The upgrader right now as a way of saying "replace this class/method with this other one". But it doesn't quite have the ability of saying "instead of extending this class, use this trait".
I just had a look, and we don't currently warn about SS_Object ... so if you upgrade from SS3.6, you'll get a warning about Object, but if you upgrade from 3.7 the upgrader will fall on its face. This will fix it https://github.com/silverstripe/silverstripe-framework/pull/8561

Unfortunately, Silverstripe CMS 3 has entered limited support in June 2018. This means we'll only be fixing critical bugs and security issues for Silverstripe CMS 3 going forward.
You can read the Silverstripe CMS Roadmap for more information on our support commitments.


Facing issue where the print works only first time

I have implemented the PDF js on one of my projects but it only works first time. If I cancel the print, it doesn't work until I refresh the page.
Seems like there is a bug in the library itself. Could you please update the code so that we can resolve it on our end.

When opening an issue, you need to provide all of the information requested in https://github.com/mozilla/pdf.js/blob/master/.github/ISSUE_TEMPLATE.md in order the issue to be actionable/valid; as-is this issue will be closed as INCOMPLETE.
Furthermore, please see https://github.com/mozilla/pdf.js/blob/master/.github/CONTRIBUTING.md (emphasis mine):

If you are developing a custom solution, first check the examples at https://github.com/mozilla/pdf.js#learning and search existing issues. If this does not help, please prepare a short well-documented example that demonstrates the problem and make it accessible online on your website, JS Bin, GitHub, etc. before opening a new issue or contacting us on the IRC channel -- keep in mind that just code snippets won't help us troubleshoot the problem.


Add script to download and unzip documentation build artifacts

Fixes #3582.

This is awesome. I was thinking about this last night and wondered if there was a simple CLI way to download and unpack assets,  and yes there is!

Can you add a quick line in the readme about 'if you need the API docs run X'

running the download script updates the playground.html file. I assume we don't want to check this change in?

Also, extra bonus for pulling in the playground too!

Everything works great except for the modification to the playground.html file. Do we need to .gitignore that file? Or can we add this script without modifying the file?

I addressed this by updating the script to add git update-index --assume-unchanged layouts/page/playground.html

Can you add a quick line in the readme about 'if you need the API docs run X'

Added.


BQ's final PPP

Codecov Report

Merging #222 (65e408a) into master (a4311c2) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #222   +/-   ##
=========================================
  Coverage     72.30%   72.30%
  Complexity      580      580
=========================================
  Files            94       94
  Lines          1903     1903
  Branches        205      205
=========================================
  Hits           1376     1376
  Misses          449      449
  Partials         78       78

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 a4311c2...65e408a. Read the comment docs.


Add Evaluator to the pipeline

This is verified to work on local and Vertex AI environments.

Closes #30

There are a few changes here and there, but it's truly amazing to see how this turns out.
Also, did you test this pipeline with two models having varying amount of accuracies?

I am going to add more comments based on your questions!
and, I have not tested with the two models scenario yet. we run the training for a couple of epochs, so the trained model could not achieve the baseline accuracy. with more epochs, we can get a good model, then change things (i.e. hyperparameters) will let us compare two models.
I just checked that if everything is going fine without any errors. Gonna try it, but I guess that should be done in a separate PR for adjusting the metric values carefully.

@sayakpaul
addressed your comments :)


[ch8313] jwt verification and fixing minor issues

Sorry guys for the noise. For some reason github defaults creating the PR to your repo and not our fork.


Chores Due After X Days - Working Like Every X NOT After X

System Health details
System Information

version
core-2024.10.2

installation_type
Home Assistant OS

dev
false

hassio
true

docker
true

user
root

virtualenv
false

python_version
3.12.4

os_name
Linux

os_version
6.6.54-haos

arch
x86_64

timezone
America/Chicago

config_dir
/config

Home Assistant Community Store

GitHub API
ok

GitHub Content
ok

GitHub Web
ok

HACS Data
ok

GitHub API Calls Remaining
4994

Installed Version
2.0.1

Stage
running

Available Repositories
1514

Downloaded Repositories
37

Home Assistant Cloud

logged_in
false

can_reach_cert_server
ok

can_reach_cloud_auth
ok

can_reach_cloud
ok

Home Assistant Supervisor

host_os
Home Assistant OS 13.2

update_channel
stable

supervisor_version
supervisor-2024.10.2

agent_version
1.6.0

docker_version
27.2.0

disk_total
45.6 GB

disk_used
31.2 GB

healthy
true

supported
true

host_connectivity
true

supervisor_connectivity
true

ntp_synchronized
true

virtualization
kvm

board
ova

supervisor_api
ok

version_api
ok

installed_addons
Node-RED (18.1.1), Home Assistant Google Drive Backup (0.112.1), Whisper (2.2.0), Piper (1.5.2), ESPHome (2024.10.0), Mosquitto broker (6.4.1), Zigbee2MQTT (1.40.2-1), Govee to MQTT Bridge (2024.07.13-82ddc6e9), Samba share (12.3.2), Portainer (2.22.0-3), Frigate (Full Access) (0.14.1), MQTT Explorer (browser-1.0.3), openWakeWord (1.10.0)

Dashboards

dashboards
6

resources
25

views
22

mode
storage

Recorder

oldest_recorder_run
October 10, 2024 at 5:30 AM

current_recorder_run
October 18, 2024 at 7:06 AM

estimated_db_size
407.10 MiB

database_engine
sqlite

database_version
3.45.3

Sonoff

version
3.8.1 (ffa7e22)

cloud_online
0 / 1

local_online
0 / 0

Spotify

api_endpoint_reachable
ok

Checklist

[X] I have enabled debug logging for my installation.
[X] I have filled out the issue template to the best of my ability.
[X] This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
[X] This issue is not a duplicate issue of currently previous issues..

Describe the issue
Chores set to be due AFTER X days are not working correctly.
(I have not yet tested chores set for after x weeks/months/etc. only the after x days options.)
When a chore is set to be due after X days, the next due date after completion is not set to be due X days after completion, but instead X days after the previous due date. Essentially working exactly the same as if it was configured for every X days.
Example:
Chore due after 7 days:

Initial due date of 10/14/2024.
Completed on 10/18/2024.

This should have an expected new due date of:

10/25/2024

(Completed on 18 +7 days after =25).

However, the chore instead is showing a new due date of:

10/21/2024

(previous due date 14 + 7 = 21).

Reproduction steps

Create a new chore.

Set chore as AFTER X Days
Set interval to 7 (number does not appear to matter)
Set initial due date to any day of choice - My date was 10/14/24

Complete newly created chore.

I used a auto entry card on the dashboard with the action to complete the chore.
After completing chore, the due date will update.

Review new due date

In all my testing the due date is not set 7 days after the COMPLETED date, but instead 7 days from the previous DUE date.

This shows the due dates not working correctly for the 'after' feature.
Chore Configuration:

Chore After Creation:

Chore After Completion:
Expected due date to be 10/25 (as 18+7=25), but instead shows due 10/21 (original due date of 14+7=22)

Debug logs
2024-10-18 09:03:43.506 DEBUG (MainThread) [custom_components.chore_helper] Setting After 7 Days (after-n-days) from ConfigFlow
2024-10-18 09:03:43.506 DEBUG (MainThread) [custom_components.chore_helper] (After 7 Days) Calling update
2024-10-18 09:03:43.507 DEBUG (MainThread) [custom_components.chore_helper] (After 7 Days) Dates loaded, firing a chore_helper_loaded event
2024-10-18 09:03:43.507 DEBUG (MainThread) [custom_components.chore_helper] (After 7 Days) Looking for next chore date
2024-10-18 09:03:43.507 DEBUG (MainThread) [custom_components.chore_helper] (After 7 Days) next_due_date (2024-10-15), today (2024-10-18)
2024-10-18 09:03:43.507 DEBUG (MainThread) [custom_components.chore_helper] (After 7 Days) Found next chore date: 2024-10-15, that is in -3 days
2024-10-18 09:04:20.359 DEBUG (MainThread) [custom_components.chore_helper] called complete for sensor.after_7_days
2024-10-18 09:04:20.359 DEBUG (MainThread) [custom_components.chore_helper] (After 7 Days) Looking for next chore date
2024-10-18 09:04:20.359 DEBUG (MainThread) [custom_components.chore_helper] (After 7 Days) next_due_date (2024-10-22), today (2024-10-18)
2024-10-18 09:04:20.359 DEBUG (MainThread) [custom_components.chore_helper] (After 7 Days) Found next chore date: 2024-10-22, that is in 4 days

Diagnostics dump
Was unable to retrieve any diagnostic dump for the chore helpers.

I believe this has been occurring for a while now (potentially a month or more), but had not tested/dove into it to be sure until today.
I have several chores set to after X days, today when completing several, I noticed they were all set to incorrect next due dates. Began doing further testing after this discovery.
One chore I have is due after 2 days. I often complete this chore one day over due, then it frequently shows me due in one day instead of 2. This had been ongoing for some time, but had never bothered me enough to look into it further. Unfortunately, because of that, I'm not sure exactly when this started.

Also experiancing this. After completing the chore it acts like 'Every', i then go check the settings and it is set up properly, click submit though and it will refresh to show correctly...


Rewrite Dockerfile to use multi-stage build and Alpine 3.7

Generally looks like a good update. I feel like it's possible to remove some of the additional modules loaded by Apache.

Yeah, it's definitely possible. I kept the default modules on httpd.conf from the Alpine's package.

This is interesting. On a quick test here I managed to get a container with ~12MB in size. What you think about merging this one @csanders-git?

This looks good to me, are you planing on changing anything else otherwise i'll merge and build.

Cool.
I was planning to look at the other branches and see if there's room for improvement there, but for this branch I think we're good to go.

There is and I invite you to do so - thanks for the contribution.

Also feel free to make a contributors file and add yourself.


[SC-871] Patch OffchainOracle to avoid overflows

Codecov Report
Patch coverage: 82.85% and project coverage change: +0.38 :tada:

Comparison is base (f00bc55) 77.36% compared to head (67f6bbe) 77.74%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #68      +/-   ##
==========================================
+ Coverage   77.36%   77.74%   +0.38%
==========================================
  Files          26       26
  Lines         698      728      +30
  Branches      152      159       +7
==========================================
+ Hits          540      566      +26
- Misses        158      162       +4

Impacted Files
Coverage Δ

contracts/OffchainOracle.sol
78.84% <82.85%> (+1.31%)
:arrow_up:

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


[Bug] Method not found: 'Void Azure.AI.OpenAI.AzureOpenAIClientOptions.set_ApplicationId(System.String)

Context / Scenario
Following upgrading to 0.76.240930.3, we started to see errors when we ran our application:
[BE]       Error processing document
[BE]       System.MissingMethodException: Method not found: 'Void Azure.AI.OpenAI.AzureOpenAIClientOptions.set_ApplicationId(System.String)'.
[BE]          at Microsoft.KernelMemory.AI.AzureOpenAI.Internals.AzureOpenAIClientBuilder.Build(AzureOpenAIConfig config, HttpClient httpClient, ILoggerFactory loggerFactory)
[BE]          at Microsoft.KernelMemory.AI.AzureOpenAI.AzureOpenAITextEmbeddingGenerator..ctor(AzureOpenAIConfig config, ITextTokenizer textTokenizer, ILoggerFactory loggerFactory, HttpClient httpClient)
[BE]          at Microsoft.KernelMemory.KernelMemoryBuilderExtensions.WithAzureOpenAITextEmbeddingGeneration(IKernelMemoryBuilder builder, AzureOpenAIConfig config, ITextTokenizer textTokenizer, ILoggerFactory loggerFactory, Boolean onlyForRetrieval, HttpClient httpClient)

Possible cause
After some further investigation it seems to be related to Azure.AI.OpenAI.  It may not be directly a KM issue at all.  KM works with:
    <PackageReference Include="Azure.AI.OpenAI" Version="2.0.0-beta.5" />

It doesn't with
    <PackageReference Include="Azure.AI.OpenAI" Version="2.0.0-beta.6" />

or
    <PackageReference Include="Azure.AI.OpenAI" Version="2.0.0" />

It looks like it the issue there might be related to a property name change; ApplicationId -> UserAgentApplicationId:
-        Core.TelemetryDetails telemetryDetails = new(typeof(AzureOpenAIClient).Assembly, options?.ApplicationId);
+        Core.TelemetryDetails telemetryDetails = new(typeof(AzureOpenAIClient).Assembly, options?.UserAgentApplicationId);

Before: https://github.com/Azure/azure-sdk-for-net/blob/f5b4dfdd191e90df616209dd4d9d434a769dc8e0/sdk/openai/Azure.AI.OpenAI/src/Custom/AzureOpenAIClient.cs#L302
After: https://github.com/Azure/azure-sdk-for-net/blob/c5bc53adb7006da46c9e5cbe1092f6e1e074b76d/sdk/openai/Azure.AI.OpenAI/src/Custom/AzureOpenAIClient.cs#L306
So if you pin to beta-5 it's fine - but ideally it would be great to fix this in KM I guess?
Potential fix?
Would the fixes be required here?

https://github.com/microsoft/kernel-memory/blob/ffd90fad246b0a9c2bb84a71f46c55073d485fb1/extensions/OpenAI/OpenAI/Internals/OpenAIClientBuilder.cs#L22
https://github.com/microsoft/kernel-memory/blob/ffd90fad246b0a9c2bb84a71f46c55073d485fb1/extensions/AzureOpenAI/Internals/AzureOpenAIClientBuilder.cs#L29

What happened?
The error above happens when we try to use the following code (which worked with previous versions of KM):
        _memory = new KernelMemoryBuilder()
            .WithAzureOpenAITextEmbeddingGeneration(new AzureOpenAIConfig
            {
                APIType = AzureOpenAIConfig.APITypes.EmbeddingGeneration,
                Auth = AzureOpenAIConfig.AuthTypes.AzureIdentity,
                Endpoint = $"https://{openAIClientParametersEmbeddings.CognitiveServicesAccountName}.openai.azure.com/",
                Deployment = openAIClientParametersEmbeddings.DeploymentName
            })

Importance
I cannot use Kernel Memory with<EMAIL_ADDRESS>Platform, Language, Versions
.NET 8, Kernel Memory 0.76.240930.3
Other thoughts
I'm also wondering if I should avoid directly referencing Azure.AI.OpenAI as a package reference as it's a transitive dependency of https://www.nuget.org/packages/Microsoft.SemanticKernel/#dependencies-body-tab

That’s an unfortunate side effect of using serverless mode (and beta libraries). This is why we recommend running KM as a service - to keep KM’s internal dependencies separate from your app’s dependencies.
If your code references KM serverless classes and explicitly uses Azure.AI.OpenAI, it’s important to align your app with the same version KM is using to prevent breaking changes, especially since the Azure OpenAI library is still in beta. The same applies to any other libraries KM depends on, if different versions are used in your solution.
For reference:

KM currently uses Semantic Kernel 1.21.1
SK 1.21.1 internally uses Azure.AI.OpenAI 2.0.0-beta.5


Get children count on Firebase database without downloading all the children

Use case
Will be able to get children count on Firebase database without downloading all the children

Proposal
I don't know , probably need to add a children count variable in Firebase Database and increment it as in when a new child is added

@sarat12us
This issue has been moved to https://github.com/FirebaseExtended/flutterfire/issues/1069. Any further collaboration will be done there.


Front-end design

Edit our current front-end with the new color palette & fonts.

Login-in
Register
Swipe

Styling done, will work on the swiping feature now.

@mikehov
Can you add a logout button? We need one ;)

I will :)


ENH/API: overhaul simulated devices

This replaces #682

My opinion: C is so small, it is easily overlooked.  Even newbies will come across this code so be more clear than C.

C, as far as I recall, came from our original whiteboarding sessions and regrettably made it into actual code. Cpt or full Component all the way, in my opinion.

The bluesky tests are passing with two small changes in PR #1258.
The suitcase-csv tests are passing with these changes to ophyd.

Looks like the base version of Python for venv on Travis is 2.7, which causes all failures.

Thanks for pushing on this PR, @jklynch! The tests are passing now. Let's give our west-coast colleagues a chance to review it before it gets merged.


Remove swiss emergency number if a defi is reported outside CH.

A german OSM user has reported that in 58 Defis in DE is the wrong emergency:phone number is reported. Since we always thought the app is for swiss only, we have many german users. For the use outside CH should we not set a emergency:phone nuimber.

Can we add geofencing for this OSM Tag?

Discussion here: https://www.openstreetmap.org/changeset/147333502

https://github.com/OpenBracketsCH/defikarte.ch/issues/55#issue-2632096459

Fixed on backend.


Version Numbering

Recommendation: We should use the Semantic Versioning method of tagging release versions, mostly summed up thusly:

Given a version number MAJOR.MINOR.PATCH, increment the:

MAJOR version when you make incompatible API changes,
MINOR version when you add functionality in a backwards-compatible manner, and
PATCH version when you make backwards-compatible bug fixes.

So patch version for bug fixes, minor version bump for feature additions, major for significant changes that may break how people currently use cash (removing ajax, etc.).
Agreed?

@shshaw ... minor is for public feature additions, correct?
Adding tests / npm scripts would not be a minor bump, correct?

I believe you are correct.
On Sun, Apr 17, 2016 at 2:55 AM Simon Goellner<EMAIL_ADDRESS>wrote:

@shshaw https://github.com/shshaw ... minor is for public feature
additions, correct?
Adding tests / npm scripts would not be a minor bump, correct?
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/kenwheeler/cash/issues/97#issuecomment-210971949

Looks like everyone's on board. I'll close this down, but we can talk about it more if need be.


[Event Hubs Client] Track Two (AmqpMessageConverter Fix)

Summary
The focus of these changes is to fix a misused variable which, in a specific exception case, could trigger a null reference error that would mask the actual exception.  Also included is an enhancement for doc comments to make the ownership and semantics of the ReadOnlyMemory in EventData clear to those consuming it.
Last Upstream Rebase
Thursday,  December 12, 1:56pm (EST)
Related and Follow-Up Issues

Event Hubs Client Library for .NET - January Milestone (#9040)
Fix potential null dereference in the AmqpMessageConverter (#9052)

I'm happy with the change, but do wonder if "immutable" is a better term than "non-volatile" (we do have the Immutable collections library in .NET, so maybe this term is more familiar).
One quick thing I noticed that could interact with this (and just wanted to check if it is an issue or not) is the code here:
https://github.com/Azure/azure-sdk-for-net/blob/d697332b828dd86849ec730e1065d2a64883252e/sdk/eventhub/Azure.Messaging.EventHubs/src/Amqp/AmqpMessageConverter.cs#L657-L659
I assume that the array backing the array segment is not part of some larger pool in the Amqp machinery (and hence the logical transfer of ownership is safe here)?

Correct.   That array is allocated as part of underlying AMQP message for which ownership is transferred as a whole.  There is no pooling or resource sharing.  This particular bit of code was also part of the track one library, so it's been proven in production for an extended period.


RIOT could not get any value in production

we are using riot for production cache migration in AWS elastic cache.
Total GB: 63GB
Total Number of keys: 363M
set type call per minute: 800K per minute
Environment: Elastic cache 2.8+
Riot-redis-version 2.3.6
After Copying we 360M keys
we got Listening to keyspace 100% ??? 78951367/78951367 (4:15:26 / 0:00:00) Could not get value

./riot-redis -S -h  -p 6379 replicate -h  -p 6379 --live
And re ran with

tweaked with ./riot-redis -h -p 6379 replicate -h  -p 6379 --live --threads=2 --flush-interval=1000 --event-queue=10000

There are two questions

are we missing out on any parameters/values for tweaking?
Is there a way to run only listening without the scanning process?

@jruaux

there are more options available to tune the replication process in the latest release (2.5.0). Try running with --info and --no-progress.
currently you cannot run only the live portion of the replication process. What's the use case for it?


Avoid logging complete configuration in test

HeadersTest currently logs the complete in memory representation of config in console. This PR disables the logging of config as its not required
Description

Related issue and scope

[ ] I opened an issue to propose and discuss this change (#????)

My changes affect the following components

[ ] API
[ ] Controller
[ ] Message Bus (e.g., Kafka)
[ ] Loadbalancer
[ ] Invoker
[ ] Intrinsic actions (e.g., sequences, conductors)
[ ] Data stores (e.g., CouchDB)
[x] Tests
[ ] Deployment
[ ] CLI
[ ] General tooling
[ ] Documentation

Types of changes

[x] Bug fix (generally a non-breaking change which closes an issue).
[ ] Enhancement or new feature (adds new functionality).
[ ] Breaking change (a bug fix or enhancement which changes existing behavior).

Checklist:

[x] I signed an Apache CLA.
[x] I reviewed the style guides and followed the recommendations (Travis CI will check :).
[ ] I added tests to cover my changes.
[ ] My changes require further changes to the documentation.
[ ] I updated the documentation where necessary.

Codecov Report

Merging #3768 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff           @@
##           master   #3768   +/-   ##
======================================
  Coverage    75.4%   75.4%
======================================
  Files         132     132
  Lines        6172    6172
  Branches      393     393
======================================
  Hits         4654    4654
  Misses       1518    1518

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 1d79fa3...14bc3f9. Read the comment docs.


[Informative] VoiceOver + Safari browser bug

For reference, if it ever comes up https://bugs.webkit.org/show_bug.cgi?id=201887#c2

Published in the docs: https://edenspiekermann.github.io/a11y-dialog/#known-issues


DinD image using Docker binary

At ~29MB this is smaller than the current images while providing the latest version of Docker. It's also simple to modify in case you want to run a specific version of Docker.
No devicemapper storage driver of course, but some people won't care. There is a warning which notes why it's not available when the image starts.

LGTM, thanks!


Cleanup an API hook not implemented in the backend.

@shawngao5 PTAL

How is this issue now? Is it still available?

This was re-done independently in #3645


STAR-1660: Fix and prevent direct memory leaks in dtests

There are a couple of things here:

unsafeFree method in BufferPool did not do what it was probably expected to do - that is, the direct buffer was not released properly because when it is allocated in allocateDirectAligned the method actually returns a slice of the original buffer, while the only reference to the original buffer is in attachment field of the returned buffer. It was mitigated by using a new method to clean, which can release the parent buffer by recursively go through the attachment hierarchy
for in-jvm dtests, releasing of all buffers in buffer pools was added as the very last step of instance shutdown; it fixes memory leaking between the subsequent instance restarts; in production run, we just stop the JVM and the buffers are lost, but in case of those dtest we need to deal with that explicitly
added also some sentinel to detect leaks in in-jvm dtests

@JeremiahDJordan I've removed that part related to the Cassandra ticket you pointed out. Are the rest of the changes ok?

Given we are moving towards removing jdk 8 support in oss trunk I think we should just leave the ugly reflection stuff in place rather than getting rid of it now.

Fixed


Steer pyr demo

Demonstrates the use of steer pyr by (1) using it as a front end for a conv net classifier on FashionMNIST and (2) comparing the eigendistortions w/ a baseline classifier that doesn't use a steer pyr frontend.

Codecov Report

Merging #119 (23ae52d) into master (37758e1) will decrease coverage by 53.92%.
The diff coverage is 10.93%.

@@             Coverage Diff             @@
##           master     #119       +/-   ##
===========================================
- Coverage   75.42%   21.50%   -53.93%
===========================================
  Files          33       33
  Lines        2629     2567       -62
  Branches      526      516       -10
===========================================
- Hits         1983      552     -1431
- Misses        505     1960     +1455
+ Partials      141       55       -86

Impacted Files
Coverage Δ

plenoptic/tools/signal.py
16.66% <ø> (-34.07%)
:arrow_down:

...e/canonical_computations/steerable_pyramid_freq.py
6.64% <6.77%> (-82.96%)
:arrow_down:

plenoptic/tools/display.py
7.48% <50.00%> (-59.06%)
:arrow_down:

plenoptic/tools/data.py
46.82% <66.66%> (-26.26%)
:arrow_down:

plenoptic/synthesize/mad_competition.py
9.97% <0.00%> (-75.88%)
:arrow_down:

plenoptic/synthesize/eigendistortion.py
17.56% <0.00%> (-72.98%)
:arrow_down:

plenoptic/metric/model_metric.py
28.57% <0.00%> (-71.43%)
:arrow_down:

plenoptic/metric/perceptual_distance.py
15.09% <0.00%> (-70.76%)
:arrow_down:

plenoptic/synthesize/autodiff.py
20.00% <0.00%> (-66.67%)
:arrow_down:

...simulate/canonical_computations/non_linearities.py
20.51% <0.00%> (-64.11%)
:arrow_down:

... and 12 more

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 37758e1...23ae52d. Read the comment docs.

converted to PR prematurely. closing for now

When the dust settles, the only significant change coming from this branch should be the Demo_Steerable_Pyramid.ipynb notebook. That should be relatively stable to the one appearing in this PR, so feel free to glance at the notebook if curious but ignore everything else.

Codecov Report

Merging #119 (93f2dd5) into main (720b10c) will decrease coverage by 62.42%.
The diff coverage is 0.00%.

:exclamation: Current head 93f2dd5 differs from pull request most recent head 20388da. Consider uploading reports for the commit 20388da to get more accurate results

@@             Coverage Diff             @@
##             main     #119       +/-   ##
===========================================
- Coverage   78.39%   15.97%   -62.43%
===========================================
  Files          33       33
  Lines        2971     2968        -3
  Branches      593      593
===========================================
- Hits         2329      474     -1855
- Misses        465     2486     +2021
+ Partials      177        8      -169

Impacted Files
Coverage Δ

...e/canonical_computations/steerable_pyramid_freq.py
7.25% <0.00%> (-79.20%)
:arrow_down:

plenoptic/tools/data.py
31.66% <ø> (-39.17%)
:arrow_down:

plenoptic/tools/display.py
8.20% <0.00%> (-61.72%)
:arrow_down:

plenoptic/tools/straightness.py
11.11% <0.00%> (-82.23%)
:arrow_down:

plenoptic/synthesize/eigendistortion.py
17.33% <0.00%> (-77.34%)
:arrow_down:

...enoptic/simulate/canonical_computations/filters.py
20.00% <0.00%> (-77.15%)
:arrow_down:

...simulate/canonical_computations/non_linearities.py
17.64% <0.00%> (-76.48%)
:arrow_down:

plenoptic/synthesize/mad_competition.py
9.97% <0.00%> (-76.34%)
:arrow_down:

plenoptic/metric/model_metric.py
28.57% <0.00%> (-71.43%)
:arrow_down:

plenoptic/simulate/models/naive.py
23.14% <0.00%> (-70.43%)
:arrow_down:

... and 16 more

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 720b10c...20388da. Read the comment docs.

I just looked at the steerable pyramid notebook. Let me know if you have trouble merging main into this and whether I should look at any other files

Questions:

Was there a particular reason we opted for a frequency space implementation (boundary conditions are nicer etc.)? In "1.1: Visualizing wavelets" it would be nice to mention if so.
For the steerability demo: is this sufficient/interesting? would it be more compelling i.e. to steer to an intermediate orientation and then show that if you initialize a pyramid that includes the steered-to-orientation you can recover the same coefficients.

I've gone through and edited the text here, take another look at it and tell me what you think. @nikparth can you also take a look at this?

I think the final section, on probing the effect of using the steerable pyramid as a frontend, is a great idea, but I think we need some more text at the end to explain. I tried adding some, but it still feels like we ran out of steam while writing it and are just saying "whelp, you make sense of it" . I also think need a bit more detail about what the networks are being trained to do, some framing, etc.
I'm tempted to actually split that whole section off into a separate notebook, so we have two notebooks: steerable pyramid basics and steerable pyramid-as-model component. I could add something about classic visual models there too. Thoughts?
Re: your question 1. I think it's because that was the only one we really want people to use: it handles any order and reconstruction is exact. @nikparth do you remember if there was another reason.
Re: question 2. I think this is fine for now, but agree that steering an intermediate representation would be more compelling. Can you add info to #204 ? Add all the notes you have, any code, etc, so that you or someone else can pick it up later.


creosote fails on non-UTF8 files

What happened?
I expect creosote to support all files, but it fails on non-UTF8 files. Specifically one using coding: cp1252.
Reproduction steps

Run pip install xlrd==0.7.1
Run creosote --verbose -p .

Relevant log output
❯ creosote --verbose -p .
Creosote version: 3.0.1
Command: creosote --verbose -p .
Default configuration (may have loaded pyproject.toml): Config(format='default', paths=['src'], sections=['project.dependencies'], exclude_deps=[], deps_file='pyproject.toml', venvs=['/Users/bramp/personal/which_filament/importer/.venv'], features=[])
Arguments: Namespace(verbose=True, format='default', paths=['.'], sections=['project.dependencies'], exclude_deps=[], deps_file='pyproject.toml', venvs=['/Users/bramp/personal/which_filament/importer/.venv'], features=[])
Parsing fetch.py
... (snip) ...
Parsing .venv/bin/pdf2txt.py
Parsing .venv/bin/dumppdf.py
Parsing .venv/bin/runxlrd.py
Traceback (most recent call last):
  File "/Users/bramp/personal/which_filament/importer/.venv/bin/creosote", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/Users/bramp/personal/which_filament/importer/.venv/lib/python3.12/site-packages/creosote/cli.py", line 25, in main
    imports = parsers.get_module_names_from_code(args.paths)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/bramp/personal/which_filament/importer/.venv/lib/python3.12/site-packages/creosote/parsers.py", line 220, in get_module_names_from_code
    for import_info in get_module_info_from_python_file(path=str(resolved_path)):
  File "/Users/bramp/personal/which_filament/importer/.venv/lib/python3.12/site-packages/creosote/parsers.py", line 189, in get_module_info_from_python_file
    root = ast.parse(fh.read(), path)
                     ^^^^^^^^^
  File "<frozen codecs>", line 322, in decode
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa9 in position 41: invalid start byte

The file in question is here: https://github.com/python-excel/xlrd/blob/0.7.1/scripts/runxlrd.py and it's getting hung up on the © copyright symbol.

Hey @bramp 👋  and thanks for the report!
I see two possible solutions:
Ignore errors
We can tell Python to ignore or replace invalid characters when reading the file. This might result in loss of data, but it will allow Creosote to continue running, and likely not choke on imports, which is what's important during this AST parsing:
with open(path, encoding="utf-8", errors="ignore") as fh:
    root = ast.parse(fh.read(), path)

Replace errors
And as an alternative, we could replace invalid characters with the Unicode replacement character (U+FFFD):
with open(path, encoding="utf-8", errors="replace") as fh:
    root = ast.parse(fh.read(), path)

PR #209
I whipped up a PR where I went for the second option. It would be helpful if you could try this out for me on your files. You can install creosote from git, like this for example:
# Creosote build from PR https://github.com/fredrikaverpil/creosote/issues/209
$ pipx install --suffix=@209 --force git+https://github.com/fredrikaverpil/creosote.git@refs/pull/209/head
$ creosote@209 --venv .venv ...
$ pipx uninstall creosote@209

Maybe I spoke too soon, seems like there are other issues here. This seems to be Python 2.x which is not supported by Creosote:
❯ pip install xlrd==0.7.1
Collecting xlrd==0.7.1
  Downloading xlrd-0.7.1.zip (125 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 125.4/125.4 kB 3.7 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: xlrd
  Building wheel for xlrd (setup.py) ... done
  Created wheel for xlrd: filename=xlrd-0.7.1-py3-none-any.whl size=117959 sha256=c4f80c8d5abf30b826eb7354d6569e6b91ad3870560df9739fa2c77fe0eba20e
  Stored in directory: /Users/fredrik/Library/Caches/pip/wheels/82/5b/79/a6610cd31788f61b35af4028b07f825a705b048ce47d0746ad
Successfully built xlrd
Installing collected packages: xlrd
Successfully installed xlrd-0.7.1

❯ creosote --verbose -p .
Creosote version: 3.0.1
Command: creosote --verbose -p .
Default configuration (may have loaded pyproject.toml): Config(format='default', paths=['src'], sections=['project.dependencies'], exclude_deps=[], deps_file='pyproject.toml', venvs=['/Users/fredrik/code/public/creosote/.venv'], features=[])
Arguments: Namespace(deps_file='pyproject.toml', exclude_deps=[], features=[], format='default', paths=['.'], sections=['project.dependencies'], venvs=['/Users/fredrik/code/public/creosote/.venv'], verbose=True)
Parsing tests/test_config_loading.py
Parsing tests/conftest.py
Parsing tests/test_dependency_reader.py
Parsing tests/__init__.py
Parsing tests/test_integration.py
Parsing tests/test_custom_append_action.py
Parsing tests/fixtures/integration.py
Parsing .venv/bin/activate_this.py
Parsing .venv/bin/runxlrd.py
Traceback (most recent call last):
  File "/Users/fredrik/code/public/creosote/.venv/bin/creosote", line 8, in <module>
    sys.exit(main())
  File "/Users/fredrik/code/public/creosote/src/creosote/cli.py", line 25, in main
    imports = parsers.get_module_names_from_code(args.paths)
  File "/Users/fredrik/code/public/creosote/src/creosote/parsers.py", line 220, in get_module_names_from_code
    for import_info in get_module_info_from_python_file(path=str(resolved_path)):
  File "/Users/fredrik/code/public/creosote/src/creosote/parsers.py", line 189, in get_module_info_from_python_file
    root = ast.parse(fh.read(), path)
  File "/Users/fredrik/.pkgx/python.org/v3.8.18/lib/python3.8/ast.py", line 47, in parse
    return compile(source, filename, mode, flags,
  File ".venv/bin/runxlrd.py", line 54
    print "cell %s%d: type=%d, data: %r, xfx: %s" \
          ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("cell %s%d: type=%d, data: %r, xfx: %s" \)?

I pushed a quick fix for that second problem too. Let me know how this works for you. 😄

I agree, replace seems reasonable.
I don't use pipx (but I just learnt what that is, and might in future), instead I did:
pip uninstall creosote
pip install git+https://github.com/fredrikaverpil/creosote.git@fix-unicodedecodeerror

and re-ran my test, and it indeed works.


Use print() function in both Python 2 and Python 3

print() is a function in Python 3.

Thanks - closing this PR as we are doing a major code rewrite which will take into account this.


Icon request: BoardGameGeek / RPGGeek Logos

Unlikely to be included in the font, since those logos are trademarks and are likely to change at the drop of a hat.


Event callback

Hi,
Any callback for scrollIntoView end event ? Why ?  You can bind once scrollstop before triggering scrollIntoView and that should act like a callback, fired once scrollIntoView has completed

Hmm okey I thought that this event is fired only by user interaction (like the doc mentions it). I will try it. Thanks


seems wrong with network.Bridge initializer

I just record issue I found, after I got through all of this book, I will submit pr for it.
seems the struct initializer in code-6.5 are wrong.
in branch code-6.5 network/bridge.go
br := &netlink.Bridge{la}
addr := &netlink.Addr{ipNet}
will cause "too few values in struct initializer"

Cause of go netlink library modify the struct field. PR is welcome.


change the temperature of the hot water

can there be an update so that I can adjust the hot water in the app to the desired temperature? the only thing I can now is to turn the hot water on and off. but I would like to have it at 35c during the day.

Closed in favor of #31.

Closed in favor of #31.


surface_matching sample core dump in the case of no match results

opencv_contrib/modules/surface_matching/samples/ppf_load_match.cpp
A trivial problem - but one none-the-less (leading to unnecessary time spent) is that the result vector resulting from the match method on PPF3Detector may be of length(size) 0. This possibility is not taken into account in the sample code that follows.
I'll fork, fix, and, create a pull request.

Hi,
Awesome! Thanks a lot!
On 22 Jun 2015 21:30, "buzziam"<EMAIL_ADDRESS>wrote:

opencv_contrib/modules/surface_matching/samples/ppf_load_match.cpp
A trivial problem - but one none-the-less (leading to unnecessary time
spent) is that the result vector resulting from the match method on
PPF3Detector may be of length(size) 0. This possibility is not taken into
account in the sample code that follows.
I'll fork, fix, and, create a pull request.
—
Reply to this email directly or view it on GitHub
https://github.com/Itseez/opencv_contrib/issues/278.

hello - no prob.

drats - ulong should be size_t for other platforms - working...

As far as I can see, the fix is merged and this can be closed down.

Yes. Let me put a reference of it here for the record #279

:+1: then you can also close it down :P

I would if I could :)
@vpisarev please assist us by closing this issue


BiomedParseData ?

Great work by the authors for open sourcing this part of the project, really aspiring!, we look forward to test such models at inference stage recreating the published metrics, setting up the stage towards utilizing in everyday work.
It would be more great if the dataset mentioned in a the paper "BiomedParseData can be accessed at https://aka.ms/biomedparse-release" could also be alternatively accessed via hugging face.

Please check out our dataset on HuggingFace here: https://huggingface.co/datasets/microsoft/BiomedParseData

Hello, your work is a great contribution to the community. I noticed that only part of the data is open-sourced, such as ISIC-2018 and AMOS2022 processed datasets, but I couldn't find them. Could you please let me know where I can access these processed datasets? Thank you!

@theodore-zhao

Please find the datasets here: https://huggingface.co/datasets/microsoft/BiomedParseData We are adding more to this repo. Amos2022 is currently there. Thanks!


Compile error using XCode 9.3 beta

Error message: "Binary operator '+=(::)' cannot be applied to operands of type ...
At line# 136 in file StringStyle.swift
Br,

Thanks for the report, @mobilinked! I'm not yet sure on whether this is a Swift 4.1 bug. I've filed it at https://bugs.swift.org/browse/SR-6915, and we'll see what the Swift team says. If it's expected behavior, I should be able to put together a fix. If you'd like to hack a local fix for now, you should be able to work around the issue with  as [FontFeatureProvider] at the end of the lines in that file that are throwing that error. I'm guessing that fix will also improve compile times, so I may add it anyway.

Thanks much.
How about just to make it be simple as
if let numberCase = numberCase {
     featureProviders.append(numberCase)
}

The code is not that beautiful, but safe.
Br,

Yep, I’ll probably change it to something like that. Just waiting on confirmation that it is desired behavior, since I don’t want to make any changes if it turns out to be a compiler bug.

Reopening until it’s either fixed in a later beta, or I change it in BonMot.

Sounds like it is a regression: https://bugs.swift.org/browse/SR-6915?focusedCommentId=32322&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-32322
On the off chance that it doesn't get fixed, we can still do a little cleanup here to make sure this compiles, especially during the beta for Xcode 9.3. @mobilinked any chance you'd be interested in submitting a PR?


fix(pfFilter): unsafe:javascript:void(0) redirect when clearing filters

fixes #751
Use #0 instead for greater browser compatibility
also solves the second half of this thing: https://github.com/ManageIQ/manageiq-ui-service/issues/1456

This will change back button behavior (you have to click back twice now).

@spadgett down to modify the value changed! but its gotta change, safari is not a fan

href="" would fix both problems, but IIRC that breaks test in this repo.
Can you prevent default on the event when the link is clicked?

Hmm...we also use javascript:void() for pfEmptyState because in OpenShift we didn't want to redirect:  https://github.com/patternfly/angular-patternfly/pull/703

Ok I had another idea... docs say href (alone) is valid...
link 1 (link, don't reload)

and tests are happy...
Thoughts? 🤔
https://docs.angularjs.org/api/ng/directive/ngHref

Can you check if that breaks keyboard / screenreader accessibility of the
link?
On Mon, Jul 23, 2018 at 2:22 PM Allen Wight<EMAIL_ADDRESS>wrote:

Ok I had another idea... docs say href (alone) is valid...
link 1 (link, don't
reload)
and tests are happy...
Thoughts? 🤔
https://docs.angularjs.org/api/ng/directive/ngHref
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
https://github.com/patternfly/angular-patternfly/pull/752#issuecomment-407154273,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABHPm6YGK5FxkUPjACwR0VZMXcRpK69Vks5uJhR4gaJpZM4VbNfv
.

false alarm, gotta sort out https://github.com/patternfly/angular-patternfly/blob/bada308131135398987793798ed850911180892c/src/filters/filter-panel/filter-panel-results.html#L16 first

@AllenBW, I just tried your latest changes, broke unit tests:
PhantomJS 2.1.1 (Linux 0.0.0) ERROR
  Some of your tests did a full page reload!
PhantomJS 2.1.1 (Linux 0.0.0): Executed 136 of 393 ERROR (1.721 secs / 0 secs)

@dtaylor113 see above comment, yah, href only works if there's an ngclick, reworking tests to be happy

@dtaylor113 @spadgett, ok new idea, what if we did not use links, rather apply the button role to a span (it'll still do the pointer thing, work with the ng-click and everything passes)

ok new idea, what if we did not use links, rather apply the button role to a span (it'll still do the pointer thing, work with the ng-click and everything passes)

It's not accessible even adding the button role.
I'm not sure why calling preventDefault on $event in the on click handler wouldn't work?

Why not
My action

callback (e) {
  e.preventDefault();
  // ...
}

It's not accessible even adding the button role.

?

span with role="button" is not keyboard or screenreader accessible.

sadly <button class="btn btn-link"> would change the visual appearance 😭

I was hoping for a slightly less invasive fix, but whatever gets in soonest will be just 🍑y for meeeeee
@spadgett @dtaylor113 @jeff-phillips-18 👉 this should now be g2g

LGTM, thanks @AllenBW :-)

@AllenBW will merge today, just giving @spadgett a chance to weigh in.

works for me :)


⚠ Bofrost.at has degraded performance

In ebf6b09, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1518 ms

Resolved: Bofrost.at performance has improved in e74fd9e after 6 minutes.


Accepts all commands in duplicate and output multiple results in return

After the cloudflare outage today on July 17 2020, Sidekick has been accepting every command in duplicate, outputting double results in return. I.e. a single /r 1d100 command results in two separate 1d100 rolls by the bot. I tried kicking and re-inviting the bot, but that did not solve the issue. I quit and restarted discord, nothing. It happens to every person on my server and in every channel it is in.
I have no idea how to fix this on my end.

BTW, never heard of kicking and reinviting the bot to fix anything.