subversionClient: 1.10.2 -> 1.10.3

Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/subversion-client/versions.
meta.description for subversionClient is: '"A version control system intended to be a compelling replacement for CVS in the open source community"'.

Checks done (click to expand)

built on NixOS
/nix/store/pgil68d8ynljv1grpp39as4rwm852q6r-subversion-1.10.3/bin/svn passed the binary check.
/nix/store/pgil68d8ynljv1grpp39as4rwm852q6r-subversion-1.10.3/bin/svnadmin passed the binary check.
/nix/store/pgil68d8ynljv1grpp39as4rwm852q6r-subversion-1.10.3/bin/svnbench passed the binary check.
/nix/store/pgil68d8ynljv1grpp39as4rwm852q6r-subversion-1.10.3/bin/svndumpfilter passed the binary check.
/nix/store/pgil68d8ynljv1grpp39as4rwm852q6r-subversion-1.10.3/bin/svnfsfs passed the binary check.
/nix/store/pgil68d8ynljv1grpp39as4rwm852q6r-subversion-1.10.3/bin/svnlook passed the binary check.
/nix/store/pgil68d8ynljv1grpp39as4rwm852q6r-subversion-1.10.3/bin/svnmucc passed the binary check.
/nix/store/pgil68d8ynljv1grpp39as4rwm852q6r-subversion-1.10.3/bin/svnrdump passed the binary check.
/nix/store/pgil68d8ynljv1grpp39as4rwm852q6r-subversion-1.10.3/bin/svnserve passed the binary check.
/nix/store/pgil68d8ynljv1grpp39as4rwm852q6r-subversion-1.10.3/bin/svnsync passed the binary check.
/nix/store/pgil68d8ynljv1grpp39as4rwm852q6r-subversion-1.10.3/bin/svnversion passed the binary check.
11 of 11 passed binary check by having a zero exit code.
0 of 11 passed binary check by having the new version present in output.
found 1.10.3 with grep in /nix/store/pgil68d8ynljv1grpp39as4rwm852q6r-subversion-1.10.3
directory tree listing: https://gist.github.com/9ea0dae17c6868ab3b132d334e7b6bb0
du listing: https://gist.github.com/0695b9f3ef18fb912d3fb4bad035cb1f

Instructions to test this update (click to expand)

One-time optional setup to skip building using Cachix:
nix-shell -p cachix --run 'cachix use r-ryantm'

Test this update by entering a nix shell, seeing what is inside the
result, and if applicable, running some binaries:
nix-shell --pure -I nixpkgs=https://github.com/r-ryantm/nixpkgs/archive/268fcffb021c9ef1dc3b80436d36924905eab017.tar.gz -p subversionClient
ls -la /nix/store/pgil68d8ynljv1grpp39as4rwm852q6r-subversion-1.10.3

cc @edolstra @lovek323 for testing.

Success on x86_64-linux (full log)
Attempted: subversionClient
Partial log (click to expand)
shrinking RPATHs of ELF executables and libraries in /nix/store/1z44l2dk2gvfmf3cwjjg4aydkr1y1bh1-subversion-1.10.3-dev
strip is /nix/store/vcc4svb8gy29g4pam2zja6llkbcwsyiq-binutils-2.30/bin/strip
patching script interpreter paths in /nix/store/1z44l2dk2gvfmf3cwjjg4aydkr1y1bh1-subversion-1.10.3-dev
checking for references to /build in /nix/store/1z44l2dk2gvfmf3cwjjg4aydkr1y1bh1-subversion-1.10.3-dev...
shrinking RPATHs of ELF executables and libraries in /nix/store/06vji2c45vqvs02qzradlap9fywx6qni-subversion-1.10.3-man
gzipping man pages under /nix/store/06vji2c45vqvs02qzradlap9fywx6qni-subversion-1.10.3-man/share/man/
strip is /nix/store/vcc4svb8gy29g4pam2zja6llkbcwsyiq-binutils-2.30/bin/strip
patching script interpreter paths in /nix/store/06vji2c45vqvs02qzradlap9fywx6qni-subversion-1.10.3-man
checking for references to /build in /nix/store/06vji2c45vqvs02qzradlap9fywx6qni-subversion-1.10.3-man...
/nix/store/pgil68d8ynljv1grpp39as4rwm852q6r-subversion-1.10.3

Success on x86_64-darwin (full log)
Attempted: subversionClient
Partial log (click to expand)
Patching '/nix/store/zz4104mp4p27f8blllckdgj2j7ac2a7k-subversion-1.10.3-dev/share/pkgconfig/libsvn_wc.pc' includedir to output /nix/store/zz4104mp4p27f8blllckdgj2j7ac2a7k-subversion-1.10.3-dev
strip is /nix/store/53nysl8bqwxihwzs1pgwka20nf8mbvlp-cctools-binutils-darwin/bin/strip
stripping (with command strip and flags -S) in /nix/store/19l9xlgb0iixh09b5zpjh8wbrxvhwq6v-subversion-1.10.3/lib  /nix/store/19l9xlgb0iixh09b5zpjh8wbrxvhwq6v-subversion-1.10.3/bin
patching script interpreter paths in /nix/store/19l9xlgb0iixh09b5zpjh8wbrxvhwq6v-subversion-1.10.3
strip is /nix/store/53nysl8bqwxihwzs1pgwka20nf8mbvlp-cctools-binutils-darwin/bin/strip
patching script interpreter paths in /nix/store/zz4104mp4p27f8blllckdgj2j7ac2a7k-subversion-1.10.3-dev
gzipping man pages under /nix/store/pr5x42bn6nqq93nzang5w61vfkn2wqch-subversion-1.10.3-man/share/man/
strip is /nix/store/53nysl8bqwxihwzs1pgwka20nf8mbvlp-cctools-binutils-darwin/bin/strip
patching script interpreter paths in /nix/store/pr5x42bn6nqq93nzang5w61vfkn2wqch-subversion-1.10.3-man
/nix/store/19l9xlgb0iixh09b5zpjh8wbrxvhwq6v-subversion-1.10.3

Success on aarch64-linux (full log)
Attempted: subversionClient
Partial log (click to expand)
shrinking RPATHs of ELF executables and libraries in /nix/store/1yxq6wzqvrx0m378zvr4hf9068f7c0ah-subversion-1.10.3-dev
strip is /nix/store/p9akxn2sfy4wkhqdqa3li97pc6jaz3r1-binutils-2.30/bin/strip
patching script interpreter paths in /nix/store/1yxq6wzqvrx0m378zvr4hf9068f7c0ah-subversion-1.10.3-dev
checking for references to /build in /nix/store/1yxq6wzqvrx0m378zvr4hf9068f7c0ah-subversion-1.10.3-dev...
shrinking RPATHs of ELF executables and libraries in /nix/store/wjkg4saw49lr07v4y9qhzn955wi6ssx1-subversion-1.10.3-man
gzipping man pages under /nix/store/wjkg4saw49lr07v4y9qhzn955wi6ssx1-subversion-1.10.3-man/share/man/
strip is /nix/store/p9akxn2sfy4wkhqdqa3li97pc6jaz3r1-binutils-2.30/bin/strip
patching script interpreter paths in /nix/store/wjkg4saw49lr07v4y9qhzn955wi6ssx1-subversion-1.10.3-man
checking for references to /build in /nix/store/wjkg4saw49lr07v4y9qhzn955wi6ssx1-subversion-1.10.3-man...
/nix/store/0drv5w1kfvrfp2jhqlh94dmbwazs1g3h-subversion-1.10.3


Add close functionality

@RobHumphris would you mind recreating your pull request from NeDB for closing functionality here?
for context, I'm looking to continue the NeDB project, and add previously contentious functionality, starting with closing functionality.

Unfortunately I am no longer with the organisation that own the repo the pull request was from, and don't want to risk creating any issues with them.
It should be possible to cherry pick the changes as they all seem fairly self-contained.
Sorry that I can't be more help.

No problem! My first thought was to cherry pick, but I figured as I go through old PRs, I'd reach out, see if people would still want their names attached to the PRs if possible.
Thanks for the update, I'll go ahead with the merge.

We went into production with those changes running on an IoT gateway, and didn't run into any problems from then on.
Good luck supporting the project, it was a really good implementation that seemed to get out of hand for the developer.


snip_expand: add option to prevent jump into snippet.

This can be useful when luasnip is used as part of a bigger workflow and the mode shouldn't change.
Example:
ls.snip_expand(
    ls.parser.parse_snippet("testtest", "works$1works"),
    { skip_snippet = true })

works for me! 🚀
the only thing I'm unsure about is the option name, I'm not sure skip_snippet is obvious.

I added the callback for expanding, you can now use something like this:
ls.snip_expand(parse("", "asdf$1asdf"), {
	jump_into_func = function(snip)
		-- callback has to return the new current node.
		return snip.insert_nodes[0]
	end })

(name is debatable of course :P)


[RS-1209] Webhooks processor deployment in the operator.

This PR is to deploy webhooks-processor alongside with intrussion-detection-controller (same pod deployment).

@bartolini FYI I squashed your commits since they seemed mostly dev commits rather than distinct bits of functionality.


The question about the teachers' checkpoint

Excuse me, are these ckpts pretrained by ImageNet? I trained the wideresnet's teacher model with a pretrained ckpt solely on cifar10 initially and found it started at a accuracy of 50%, so I guess the ckpts aren't pretrained on the datasets of cifar10/100. Is that right?

Dear WangzcBruce, May I know which exact pretrained weights you are using? I only provide the teacher weights on CIFAR10 with WideResNet28-2 and 28-10. If those are enough for your own experiments, you can actually train the teacher on your data sets. And make sure your are loading it correctly with mmcls, since mmcls wrap the network architecture with a classifier object.


Passed data not returned

Extra data passed when initiating a payment is not returned when confirming the payment

Any extra data passed with prefix 'merchant_' is returned in payment confirmation. See http://docs.khalti.com/checkout/web/#configuration for more detail


Heuristics for slot-filling measures & currencies

If the dialog agent asks for a currency or measure and the user provides a number, we should heuristically convert it.
Potentially, this could include a translatable annotation #_[default_unit] associated with the parameter indicating the default unit to use (which would be locale-dependent).

This issue was transferred from almond-dialog-agent. It should be implemented in terms of templates: we change the templates such that filters and imprecise answers can use numbers where measurements are expected, and generate the right measurement code in the neural network.


WIP: propose the document level ownership

Motivations

solve the problem of data exchange between accounts

Would you like to implement this feature? [y/n]

Solution

Discussion Kick off
goal: record level permission management
@Jing Chen
@TaiZe Wang
architecture - data model:
@TaiZe Wang
@Jing Chen

primary key generator (logic, size limit, order),
index key generator
consider supporting aggregation by address
additional schema: txid
implementation
@Jing Chen
unified address design
@TaiZe Wang
key optimization (future work)

1. Create Document Workflow
sequenceDiagram
    Client->>+Node: 1.1 CreateDocumentId(document)
    Node->>+Node: 1.2 GenerateDocumentId()
    Node->>+DocumentImpl:1.3 SubmitMutation(WriteDocument, documentId, document)
    Node-->>-Client: 1.4 Response(status, msg)
    DocumentImpl->>+KVStore: 2.1 InsertKV(documentId, txid, document)
    KVStore-->>-DocumentImpl: 2.2 Response(status, msg)
    DocumentImpl-->>-DocumentImpl: 2.3 GenerateIndexId(db, collection, index, key, documentId)
    DocumentImpl->>+KVStore: 2.4 InsertKV(indexId, txid, documentId)
    KVStore-->>-DocumentImpl: 2.5 Response(status, msg)

Discussion
@imotai
1. What is the relationship between collection and documents? 1:N or N:M?
Regarding to the rpc proto definition mentioned here, one document might be under multiple collections? Will we define and implement collection in the same way?
2.

Discussion
@imotai
1. What is the relationship between collection and documents? 1:N or N:M?
Regarding to the rpc proto definition mentioned here, one document might be under multiple collections? Will we define and implement collection in the same way?
2. Will we support Project, Namespace, Collection Group, in db3.
I find those concepts are used as defined in the google firestore.

1:n
db3 just support database , collection and document

RPC Interface
DB3 will design and implement a set of APIs which are similar to google firestore so that the developers who are familiar to firestore can transfer to DB3 easily.
Reference:

https://github.com/googleapis/googleapis/tree/master/google/firestore
https://github.com/googleapis/googleapis/blob/master/google/firestore/admin/v1/firestore_admin.proto

DB3 Admin API
This API provides several administrative services for DB3 store.
P0

API
Description

GetDatabase
Gets information about a database.

ListDatabases
List all the databases in the project.

CreateIndex
Creates a composite index. This returns a db.longrunninbg.Operation (similar to google.longrunning.Operation) which may be used to track the status of the creation. The metadata for the operation will be the type IndexOperationMetadata

ListIndexes
Lists composite indexes.

GetIndex
Gets a composite index.

DeleteIndex
Deletes a composite index.

GetField
Gets the metadata and configuration for a Field.

ListFields
Lists the field configuration and metadata for this database.

P1:

API
Description

UpdateDatabase
Updates a database.

UpdateField
Updates a field configuration. Currently, field updates apply only to single field index configuration.

ExportDocuments
Exports a copy of all or a subset of documents from DB3 store

ImportDocuments
Imports documents into DB3 store. Existing documents with the same name are overwritten.

DB3 Document Op API
P0: API

API
Description

GetDocument
Gets a single document.

ListDocuments
List documents

UpdateDocument
Updates or inserts a document.

DeleteDocument
Delete a document

CreateDocument
Creates a new document.

P1: Document API

API
Description

BatchGetDocuments
Gets multiple documents. Documents returned by this method are not guaranteed to be returned in the same order that they were requested.

ListCollectionIds
List documents

RunQuery
Runs a query.

RunAggregationQuery
Return the number of documents in table given a filter. SELECT COUNT(*) FROM ( SELECT * FROM k where a = true );

PartitionQuery
Partitions a query by returning partition cursors that can be used to run the query in parallel.

DB3  Entity Proto

Entity
Description

Database
Gets multiple documents. Documents returned by this method are not guaranteed to be returned in the same order that they were requested.

Field
Represents a single field in the database. Fields are grouped by their "Collection Group", which represent all collections in the database with the same id.

Index
indexes enable simple and complex queries against documents in a database.

Document
A db3 document. Must not exceed 1 MiB - 4 bytes.

Milestone and resource plan

Milestore
Task
Owner
Status

Design POC
Document Operation  workflow design
@cj
In Progress

Design POC
DB3 admin opertation workflow design
@wtz
In Progress

Feature Implementation
Entity Proto implement
@cj @wtz

Feature Implementation
RPC proto implement

Feature Implementation
DB3 Admin Op Implementation
@cj @wtz

Feature Implementation
DB document op implementation
@cj

QA
Unit test & integartion test
@cj

QA
Benchmark
@cj

JS SDK API
Implement JS SDK for db3 admin and document operation
@zhaojun

Implementation

[ ] cmd to create database and create/list collection, etc. https://github.com/dbpunk-labs/db3/pull/297
[ ] cmd to create document
[ ] cmd to get a document
[ ] cmd to query document with index
[ ] cmd to list documents under a collection

Discussion
@imotai
I wanna introduce CollectionID (16 bytes) as a part of IndexID instead of using colecction_name varchar()
|DbID(20)|CollectionId(16)|BlockID(16)|

Discussion
@imotai 🔔 👀 ♨ I wanna introduce CollectionID (16 bytes) as a part of IndexID instead of using colecction_name varchar().
IndexId = |DbID(20)|CollectionId(16)|BlockID(16)|

agree

@imotai
ID

ID Type
Size
Description

DbId
20
DbId := DB3Address

TxId
32
transaction id

AccountId
20
AccountId := DB3Address

BlockID
8
Current block height

MutationID
4
Index of mutation in the current block.

PutEntryIdx
4
Index of document in current database mutation

PutEntryID
16
PutEntryID := BlockID + MutationID + PutEntryIdx

CollectionID
16
CollectionID := PutEntryID

DocumentID
16
DocumenID := PutEntryID

DocumentEntryKey
32
DocumentKeyID := CollectionID + DocumenID

IndexFiledID
2
Index of the index filed in the collection

IndexEntryKey
KeyBytes + 34
IndexId :=  CollectionID + IndexFiledID + KeyBytes +  DocumentID

Order
Reference

https://www.mongodb.com/docs/manual/reference/bson-type-comparison-order/


[improve][ci] Add ml for CI semantic check.

Motivation
As some patches(like #18078 ) are only for managed-ledger, so add this label.
Documentation

[ ] doc
[ ] doc-required
[x] doc-not-needed
[ ] doc-complete

I prefer using storage instead of ml.

Codecov Report

Merging #18082 (38e8f72) into master (6c65ca0) will increase coverage by 35.83%.
The diff coverage is 50.00%.

@@              Coverage Diff              @@
##             master   #18082       +/-   ##
=============================================
+ Coverage     34.91%   70.74%   +35.83%
+ Complexity     5707      437     -5270
=============================================
  Files           607       26      -581
  Lines         53396     2246    -51150
  Branches       5712      245     -5467
=============================================
- Hits          18644     1589    -17055
+ Misses        32119      484    -31635
+ Partials       2633      173     -2460

Flag
Coverage Δ

unittests
70.74% <50.00%> (+35.83%)
:arrow_up:

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

Impacted Files
Coverage Δ

...apache/pulsar/proxy/server/DirectProxyHandler.java
63.63% <50.00%> (ø)

...pulsar/broker/admin/impl/PersistentTopicsBase.java

.../org/apache/pulsar/broker/admin/v2/Namespaces.java

...broker/delayed/InMemoryDelayedDeliveryTracker.java

...rg/apache/pulsar/broker/service/BrokerService.java

.../service/SystemTopicBasedTopicPoliciesService.java

.../pulsar/broker/stats/BrokerOperabilityMetrics.java

...g/apache/pulsar/compaction/CompactedTopicImpl.java

...r/stats/prometheus/AggregatedReplicationStats.java

...r/loadbalance/impl/GenericBrokerHostUsageImpl.java

... and 572 more

@lhotari could you answer the question above? Doesn't storage scope already cover ml added here?
If it's the case, we should revert this patch.

@lhotari could you answer the question above? Doesn't storage scope already cover ml added here?
If it's the case, we should revert this patch.

We'd better define these by modules.  storage convers ml, but not accurate.
In the scope, broker covers admin and txn.

@Technoboy- then what kind of changes should go into storage? Or we can just replace it with ml?
Besides, ml is easy to be read as "machine learning" while we have the comment and it's a learned knowledge for dedicated developers :)


Find widget in Release Notes only highlights first typed character

Issue Type: Bug

Open Release Notes from the Help menu.
Open its Find in Page widget (Ctrl/Cmd+F)
Type v then s

Occurrences of the first character are highlighted correctly, but :bug: the highlighting doesn't change when I type the second character. It only updates when I press Enter, which also jumps me to the first occurrence of the character pair.

VS Code version: Code 1.55.2 (3c4e3df9e89829dce27b7b5c24508306b151f30d, 2021-04-13T09:35:57.887Z)
OS version: Windows_NT x64 10.0.19042

pinging @mjbvz for webview and @deepak1556 since I have a hunch this could be an upstream Electron issue

Looks like duplicate of #120158

Thanks @IllusionMH. Closing as duplicate.


Add files via upload

I have added more functionalities to credit system and proper the analysis

Great Work

Nice Work ❤


feat: generate types for useRuntimeConfig like nuxt

🔗 Linked issue
#1706
❓ Type of change

[ ] 📖 Documentation (updates to the documentation, readme, or JSdoc annotations)
[ ] 🐞 Bug fix (a non-breaking change that fixes an issue)
[x] 👌 Enhancement (improving an existing functionality like performance)
[ ] ✨ New feature (a non-breaking change that adds functionality)
[ ] 🧹 Chore (updates to the build process or auxiliary tools and libraries)
[ ] ⚠ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description
I have add untyped as a dependency and now nitro can generate types for useRuntimeConfig() just like Nuxt does.
It would be helpful for users to have types for useRuntimeConfig() which helps a lot while using nitro standalone.
For now I have utilized nitro-config.d.ts to keep the types in, please let me know If you would want to change the file.
Fixes #1706
📝 Checklist

[x] I have linked an issue or discussion.
[ ] I have updated the documentation accordingly.

It would maybe be nice to allow this to be disabled, in case there's an issue with types conflicting between auto-generated nuxt + nitro types.

It would maybe be nice to allow this to be disabled, in case there's an issue with types conflicting between auto-generated nuxt + nitro types.

I was thinking about that, but what condition do I check against to disable it?

You would add a nitro option:
https://github.com/unjs/nitro/blob/d12aae10550ef8d6612da01f6065c43b02780f12/src/options.ts#L121-L128

in case there's an issue with types conflicting between auto-generated nuxt + nitro types.

We can disable when framework usage is detected. What inconsistency can happen?

Might be nice to add a type test to the fixture to verify that these types do in fact type the runtimeConfig. 🙏

Ok, I will add tests too

I was looking into test the types but I don't see a good way to do so, any suggestions?


Add AccessPolicies status

This adds the printer column "AccessPolicies" and gives us feedback if the access policy configuration is valid

Summary by CodeRabbit

New Features

Added a new "AccessPolicies" column to the ApplicationList for enhanced visibility of access control configurations.
Introduced accessPolicies field in multiple resource definitions, indicating the validity of access policies.

Bug Fixes

Updated application and SKIP job status logic to accurately reflect access policy validity as either READY or INVALIDCONFIG.

Tests

Enhanced test configurations to include accessPolicies status, improving monitoring and validation of access policies across different scenarios.

Have you thought about using conditions to show the status of AccessPolicies. Not sure if it's possible to add a printcolumn from conditions becuase they are in a list though. What happens if no AccessPolicies are defined?

Yeah,  but I couldn't figure out how. AccessPolicies status basically just takes the result of the condition and displays it. If none are defined then it gets the status "Ready"


[image_picker] On iOS,  camera overlay is clickable through, user can interact with widgets behind the overlay

Steps to Reproduce
plugins/image_picker: on iOS when you take a picture from camera, you can click the picture bottom.
if there was a TextField widget in the bottom under the overlay, then you can't do anything more

+1

+1

Hi @suhaotian  @RemmoYu
Are you still experiencing this issue?
If yes, Can you please provide your flutter doctor -v with the latest stable and flutter run --verbose logs, and a minimal complete reproducible code sample
Thank you

I still have this issue, test with flutter stable version 1.20.4

@RemmoYu
, Can you please provide your flutter doctor -v with the latest stable andflutter run --verbose logs, and a minimal complete reproducible code sample
Thank you

➜  ~ flutter doctor -v
[✓] Flutter (Channel stable, 1.20.4, on Mac OS X 10.15.7 19H2, locale
zh-Hans-CN)
• Flutter version 1.20.4 at /Users/remmo/flutter
• Framework revision fba99f6cf9 (13 days ago), 2020-09-14 15:32:52 -0700
• Engine revision d1bc06f032
• Dart version 2.9.2
• Pub download mirror https://pub.flutter-io.cn
• Flutter download mirror https://storage.flutter-io.cn
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.1)
• Android SDK at /Users/remmo/Library/Android/sdk
• Platform android-30, build-tools 30.0.1
• Java binary at: /Applications/Android
Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build
1.8.0_242-release-1644-b3-6222593)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 12.0.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.0.1, Build version 12A7300
• CocoaPods version 1.9.3
[✓] Android Studio (version 4.0)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 49.0.2
• Dart plugin version 193.7547
• Java version OpenJDK Runtime Environment (build
1.8.0_242-release-1644-b3-6222593)
[✓] VS Code (version 1.49.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.14.1
[✓] Connected device (1 available)
• 余小雨的iPhone (mobile) • 00008030-001E202C2E11802E • ios • iOS 14.0
• No issues found!
Please refer to the sample code in https://github.com/RemmoYu/image_picker_demo

Steps to reproduce

launch code sample on iOS
Tap on textfield, bring up the keyboard
While the keyboard is open, click take a photo
Take a pic, click use photo and it returns back to the home page
Try clicking on textfield again, the keyboard won'topen  (you can only select or paste text in the textfield)

Recording
recording.MP4.zip
Code Sample and doctor -v

code sample
import 'package:flutter/material.dart';
import 'package:image_picker/image_picker.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
        visualDensity: VisualDensity.adaptivePlatformDensity,
      ),
      home: HomePage(),
    );
  }
}

class HomePage extends StatefulWidget {
  @override
  _HomePageState createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.white,
      appBar: AppBar(
        title: Text("DEMO"),
      ),
      body: SingleChildScrollView(
        child: Column(
          children: [
            FlatButton(
              child: Text("take photo"),
              onPressed: _takePhotoAction,
            ),
            Container(
              padding: const EdgeInsets.symmetric(horizontal: 15),
              margin: const EdgeInsets.all(20),
              child: TextField(
                maxLines: 20,
                style: TextStyle(
                  color: Color(0xff333333),
                  fontSize: 14,
                ),
                decoration: InputDecoration(
                  border: InputBorder.none,
                  hintText: "Input text",
                ),
              ),
              decoration: BoxDecoration(
                color: Colors.green,
                borderRadius: BorderRadius.circular(6.0),
              ),
            )
          ],
        ),
      ),
    );
  }

  void _takePhotoAction() async {
    final picker = ImagePicker();
    try {
      await picker.getImage(
        source: ImageSource.camera,
      );
    } catch (error) {
      print(error);
    }
  }
}

flutter doctor -v
[✓] Flutter (Channel master, 1.22.0-10.0.pre.405, on Mac OS X 10.15.7 19H2
    x86_64, locale en-GB)
    • Flutter version 1.22.0-10.0.pre.405 at
      /Users/tahatesser/Code/flutter_master
    • Framework revision 9d7bdb5903 (8 hours ago), 2020-09-28 22:46:21 -0700
    • Engine revision 438685dad0
    • Dart version 2.11.0 (build 2.11.0-174.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/tahatesser/Code/sdk
    • Platform android-30, build-tools 30.0.2
    • ANDROID_HOME = /Users/tahatesser/Code/sdk
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.0.1, Build version 12A7300
    • CocoaPods version 1.9.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 49.0.2
    • Dart plugin version 193.7547
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)

[✓] VS Code (version 1.49.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.14.1

[✓] Connected device (4 available)
    • Taha’s iPhone (mobile) • 00008020-001059882212002E • ios            • iOS
      14.0.1
    • macOS (desktop)        • macos                     • darwin-x64     • Mac
      OS X 10.15.7 19H2 x86_64
    • Web Server (web)       • web-server                • web-javascript •
      Flutter Tools
    • Chrome (web)           • chrome                    • web-javascript •
      Google Chrome 85.0.4183.121

• No issues found!

Hi @TahaTesser  I thank you are describing a different issue from the original one.  the issue we faced is the keyboard covered the picture take from camera.
Steps to reproduce

Click "take photo" button
Take a picture, click use photo and it returns back to the home page, don't try to click "use photo" or "retake",  just try to tap the textfield (yes, it's invisible, but just try that)
The keyboard will bring up and cover the picture, then you can do nothing but close the application.

Hi  @RemmoYu
That's correct, I encountered another issue, I will investigate that and file a new issue for it
Final steps to reproduce

Launch the app, tap take a photo,
2.Take a picture, click use photo and it returns back to the home page, don't try to click "use photo" or "retake", just try to tap the textfield (yes, it's invisible, but just try that)
The keyboard will bring up and cover the picture, then you can do nothing but close the application.

Follow your steps, I can reproduce the issue

code sample
import 'package:flutter/material.dart';
import 'package:image_picker/image_picker.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
        visualDensity: VisualDensity.adaptivePlatformDensity,
      ),
      home: HomePage(),
    );
  }
}

class HomePage extends StatefulWidget {
  @override
  _HomePageState createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.white,
      appBar: AppBar(
        title: Text("DEMO"),
      ),
      body: Column(
        children: [
          FlatButton(
            child: Text("take photo"),
            onPressed: _takePhotoAction,
          ),
          Container(
            padding: const EdgeInsets.symmetric(horizontal: 15),
            margin: const EdgeInsets.all(20),
            child: TextField(
              maxLines: 20,
              style: TextStyle(
                color: Color(0xff333333),
                fontSize: 14,
              ),
              decoration: InputDecoration(
                border: InputBorder.none,
                hintText: "Input text",
              ),
            ),
            decoration: BoxDecoration(
              color: Colors.green,
              borderRadius: BorderRadius.circular(6.0),
            ),
          )
        ],
      ),
    );
  }

  void _takePhotoAction() async {
    final picker = ImagePicker();
    try {
      await picker.getImage(
        source: ImageSource.camera,
      );
    } catch (error) {
      print(error);
    }
  }
}

flutter doctor -v
[✓] Flutter (Channel master, 1.22.0-10.0.pre.428, on Mac OS X 10.15.7 19H2
    x86_64, locale en-GB)
    • Flutter version 1.22.0-10.0.pre.428 at
      /Users/tahatesser/Code/flutter_master
    • Framework revision a06f385145 (11 hours ago), 2020-09-29 21:37:04 -0400
    • Engine revision d18c3ea75c
    • Dart version 2.11.0 (build 2.11.0-178.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/tahatesser/Code/sdk
    • Platform android-30, build-tools 30.0.2
    • ANDROID_HOME = /Users/tahatesser/Code/sdk
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.0.1, Build version 12A7300
    • CocoaPods version 1.9.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 50.0.1
    • Dart plugin version 193.7547
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)

[✓] VS Code (version 1.49.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.15.0

[✓] Connected device (4 available)
    • Taha’s iPhone (mobile) • 00008020-001059882212002E • ios            • iOS
      14.0.1
    • macOS (desktop)        • macos                     • darwin-x64     • Mac
      OS X 10.15.7 19H2 x86_64
    • Web Server (web)       • web-server                • web-javascript •
      Flutter Tools
    • Chrome (web)           • chrome                    • web-javascript •
      Google Chrome 85.0.4183.121

• No issues found!

+1

My own investigation into this - see: #69913
Steps to Reproduce

Use image_picker: ^0.6.7+11 on a real iOS device (you need the camera)
Take a photo
Don't close the preview screen (where it says Retake / Use Photo)
You can now interact with app widgets, even though the preview is visible

Demo
Below are two recordings demonstrating the issue. It was a customers iPhone 8, we've had similar reports on all iOS devices.
I can't replicate this on the simulator since it requires a camera. Nor do I have access to an iPhone at the moment.
Video 1 - Typing through the preview
Demonstration of interacting with Widgets below the camera preview.
I manage to fill out a text input while the camera preview is still open.
https://www.youtube.com/watch?v=JddPDSKlEgk
Video 2 - Two Camera Instances
Here I create two camera instances by the same method - interacting with the widgets below the preview.
In this state it's not possible to return to the App as the first camera instance cannot be closed.
https://youtu.be/nGTTdfLhhGA

Any updates on a fix for this?

@jmealo I have a flutter-centric workaround that shoves a dialog between the camera and underlying app to act as a way to capture gestures:
// In my main function
try {
  openIOSBlockingModal(
    context: context,
    source: source,
  );
  PickedFile pickedFile = await _picker.getImage(source: source);
} catch(e) {
  ...
}

// TODO: Remove this workaround when this issue is resolved:
// https://github.com/flutter/flutter/issues/39218
bool _modalIsOpen = false;
void openIOSBlockingModal({
  BuildContext context,
  ImageSource source,
}) {
  String platform = Platform.operatingSystem;
  if (!_modalIsOpen && source == ImageSource.camera && platform == 'ios') {
    _modalIsOpen = true;
    showGeneralDialog(
      context: context,
      pageBuilder: (
        BuildContext buildContext,
        Animation<double> animation,
        Animation<double> secondaryAnimation,
      ) {
        return Material(
          type: MaterialType.transparency,
          child: Stack(
            children: [
              Align(
                alignment: Alignment.topRight,
                child: Padding(
                  padding: EdgeInsets.all(16),
                  child: IconButton(
                    icon: Icon(
                      Icons.cancel,
                      size: 42,
                      color: Colors.black.withOpacity(0.3),
                    ),
                    onPressed: () {
                      closeIOSBlockingModal(
                        context: context,
                      );
                    },
                  ),
                ),
              ),
              Align(
                alignment: Alignment.center,
                child: Text('Selecting Image'),
              ),
            ],
          ),
        );
      },
      barrierDismissible: false,
      barrierLabel: MaterialLocalizations.of(context).modalBarrierDismissLabel,
      barrierColor: Colors.white.withOpacity(0.7),
      transitionDuration: Duration.zero,
    );
  }
}

void closeIOSBlockingModal({
  BuildContext context,
}) {
  if (_modalIsOpen) {
    Navigator.of(context, rootNavigator: true).pop();
    _modalIsOpen = false;
  }
}

@jmealo I have a flutter-centric workaround that shoves a dialog between the camera and underlying app to act as a way to capture gestures:
// In my main function
try {
  openIOSBlockingModal(
    context: context,
    source: source,
  );
  PickedFile pickedFile = await _picker.getImage(source: source);
} catch(e) {
  ...
}

// TODO: Remove this workaround when this issue is resolved:
// https://github.com/flutter/flutter/issues/39218
bool _modalIsOpen = false;
void openIOSBlockingModal({
  BuildContext context,
  ImageSource source,
}) {
  String platform = Platform.operatingSystem;
  if (!_modalIsOpen && source == ImageSource.camera && platform == 'ios') {
    _modalIsOpen = true;
    showGeneralDialog(
      context: context,
      pageBuilder: (
        BuildContext buildContext,
        Animation<double> animation,
        Animation<double> secondaryAnimation,
      ) {
        return Material(
          type: MaterialType.transparency,
          child: Stack(
            children: [
              Align(
                alignment: Alignment.topRight,
                child: Padding(
                  padding: EdgeInsets.all(16),
                  child: IconButton(
                    icon: Icon(
                      Icons.cancel,
                      size: 42,
                      color: Colors.black.withOpacity(0.3),
                    ),
                    onPressed: () {
                      closeIOSBlockingModal(
                        context: context,
                      );
                    },
                  ),
                ),
              ),
              Align(
                alignment: Alignment.center,
                child: Text('Selecting Image'),
              ),
            ],
          ),
        );
      },
      barrierDismissible: false,
      barrierLabel: MaterialLocalizations.of(context).modalBarrierDismissLabel,
      barrierColor: Colors.white.withOpacity(0.7),
      transitionDuration: Duration.zero,
    );
  }
}

void closeIOSBlockingModal({
  BuildContext context,
}) {
  if (_modalIsOpen) {
    Navigator.of(context, rootNavigator: true).pop();
    _modalIsOpen = false;
  }
}

Hi everyone, this problem still exists 0.7.0-nullsafety

flutter doctor -v
[✓] Flutter (Channel stable, 1.22.6, on macOS 11.2 20D64 darwin-x64, locale en-GB)
    • Flutter version 1.22.6 at /Users/tahatesser/Code/flutter_stable
    • Framework revision 9b2d32b605 (3 weeks ago), 2021-01-22 14:36:39 -0800
    • Engine revision 2f0af37152
    • Dart version 2.10.5
[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, set ANDROID_SDK_ROOT to that location.
      You may also want to add it to your PATH environment variable.
[!] Xcode - develop for iOS and macOS (Xcode 12.4)
    • Xcode at /Volumes/Extreme/Xcode.app/Contents/Developer
    • Xcode 12.4, Build version 12D4e
    ✗ CocoaPods not installed.
        CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/platform-plugins
      To install:
        sudo gem install cocoapods
[!] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
[✓] VS Code (version 1.53.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.19.0
[✓] Connected device (1 available)
    • Taha’s iPhone (mobile) • 00008020-001059882212002E • ios • iOS 14.4
! Doctor found issues in 3 categories.

[✓] Flutter (Channel master, 1.26.0-18.0.pre.215, on macOS 11.2 20D64 darwin-x64, locale en-GB)
    • Flutter version 1.26.0-18.0.pre.215 at /Users/tahatesser/Code/flutter_master
    • Framework revision f3c10bd23a (6 hours ago), 2021-02-08 21:52:03 -0800
    • Engine revision b04955656c
    • Dart version 2.13.0 (build 2.13.0-0.0.dev)
[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.
[!] Xcode - develop for iOS and macOS
    • Xcode at /Volumes/Extreme/Xcode.app/Contents/Developer
    • Xcode 12.4, Build version 12D4e
    ✗ CocoaPods not installed.
        CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/platform-plugins
      To install see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.
[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 4.1)
    • 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 1.8.0_242-release-1644-b3-6915495)
[✓] VS Code (version 1.53.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.19.0
[✓] Connected device (3 available)
    • Taha’s iPhone (mobile) • 00008020-001059882212002E • ios            • iOS 14.4
    • macOS (desktop)        • macos                     • darwin-x64     • macOS 11.2 20D64 darwin-x64
    • Chrome (web)           • chrome                    • web-javascript • Google Chrome 88.0.4324.150
! Doctor found issues in 2 categories.

Thank you

Closing as duplicate of https://github.com/flutter/flutter/issues/28335


Decode with postgres: hr bound for fields

fixes #3185
// sqlx = { git = "https://github.com/launchbadge/sqlx", features = ["postgres"] }
use sqlx::Type;
#[derive(Type)]
struct Foo {
    a: u32,
}

expands to the following impl for Decode
impl<'r> Decode<'r, Postgres> for Foo
where
    i32: Decode<'r, Postgres>,
    i32: Type<Postgres>,
{
    fn decode(
        value: Postgres::PgValueRef<'r>,
    ) -> Result<Self, Box<dyn Error + 'static + Send + Sync>> {
        let mut decoder = PgRecordDecoder::new(value)?;
        let a = decoder.try_decode::<i32>()?;
        Ok(Foo { a })
    }
}

decoder.try_decode has the following bound:
https://github.com/launchbadge/sqlx/blob/03926dec15b3838f57269ee177e63e4bdf0b1150/sqlx-postgres/src/types/record.rs#L97
The where-bound only provides Decode for a concrete lifetime 'r however. This previously compiled because the compiler eagerly rejected the where-bound and used the more general impl. This behavior has changed in https://github.com/rust-lang/rust/pull/119820.

It would have already been broken before https://github.com/rust-lang/rust/pull/119820 if the type of a were generic, e.g.
struct Foo<T> {
    a: T,
}

However, this currently results in an unrelated error as the expansion does not add the generic arguments to Foo, resulting in
error[E0107]: missing generics for struct `Foo`
 --> src/main.rs:3:8
  |
3 | struct Foo<T> {
  |        ^^^ expected 1 generic argument
  |
note: struct defined here, with 1 generic parameter: `T`
 --> src/main.rs:3:8
  |
3 | struct Foo<T> {
  |        ^^^ -
help: add missing generic argument
  |
3 | struct Foo<T><T> {
  |           +++

I first tried to change try_decode to not require a higher-ranked bound, requiring T: Decode<'r, Postgres> instead. However, we need the higher ranked bound as T::decode is called with a local buffer:
https://github.com/launchbadge/sqlx/blob/03926dec15b3838f57269ee177e63e4bdf0b1150/sqlx-postgres/src/types/record.rs#L184-L201
I therefore ended up changing the derive to require a higher ranked bound instead. I tested this locally but did not add a test for this as I didn't immediately understand your test suite :sweat_smile:

We're delaying this breaking change by one version, so it will take another 8 weeks until sqlx will break on stable: https://github.com/rust-lang/rust/pull/125629
I would really sqlx to work around this breakage to minimize the impact on downstream crates. If there are concerns or issues with the approach in this PR or you'd like more clarity about the decision making behind the breakage, please reach out to me. I am available either in this issue directly, via zulip (https://rust-lang.zulipchat.com), or via email (rust@lcnr.de). We can also talk about this in sync if desired.
Explicitly pinging @abonander as you're the main maintainer of sqlx from what I can tell.

Superceded by #2940


Add example of configuring Jupyter notebook to use BigQuery connector

For some reason github isn't rendering this in my repo...

ACK we should do that too.


BFM Dump Support

This patch adds support for dumping the debug ring
from the VMM. While attempting to add support for this code
a lot of mods were made to cleanup the C++ environment as
GCC adds symbols to shared libraries once things like
inheritance are used.
Also added support for static libraries for the unit tests.
This will enable the use of HippoMocks for mocking up C
functions (as shared libraries cannot be used in this case).
Finally sevral unit tests were either added or cleaned up
in this patch, with further changes still to come
Signed-off-by: Rian Quinn<EMAIL_ADDRESS>

Break up your pull requests!


API error trying to add Facebook Marketing source

Environment

Deploy method: docker-compose.yml
Jitsu version:  for instance 1.37.5
OS: Ubuntu 20.04 server
Cloud Provider: Hetzner
Docker Params (if deployed with docker): none

Description
Facebook source get API error.
Steps to reproduce
Go to Sources -> Add source -> Facebok Marketing and then complete form fields.
Expected behavior
Source added without errors.
 Please update to the latest version: v13.0. (code: 2635; error_subcode: 0, error_user_title: , error_user_msg: ) (#400)

Hi @lpadula
Thank you for reporting that.
Fixed in 1.40.0


Create Institution Obsolete Data List

The Institutions require which Data elements will be obsolete for MVP.

[ ] Create the first draft knowing that there will be last min updates likely prior to Release
[x] Connect with Harry or Schwenker for Current Data sent to institutions.

Completed as part of draft institution files


🐛 DatePicker bug in Example

Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:

Go to 'Setting' and select the locale "zh" or "zh_Hant", then return back to the Home page.
Click on 'DatePicker' in the left column.
Scroll to 'the last year' or 'the first year' of the range.
See error，the month column wont srcoll, and some of the text is duplicate.

Screenshots
If applicable, add screenshots to help explain your problem.

I updated to the latest version 4.8.0, but the problem still exists. Could it be because my operating system is Win11 23H2? Or could it be because I'm using the latest version of Flutter SDK 3.16? I also noticed that when I switch the app to English, the problem persists.


Stats API to retrieve nw stats from libnetwork

Container networking statistics are no longer
retrievable from libcontainer after the introduction
of libnetwork. This change adds the missing code
for docker daemon to retireve the nw stats from
Endpoint.

Closes #14027
Signed-off-by: Alessandro Boch<EMAIL_ADDRESS>

LGTM

LGTM

Cherry picked into #14264


ModelExpression equivalent of m => m: Better support asp-for="@Model"

How to use label tag helper in the following scenario in a display template? asp-for="@Model" leads to invalid label text ("Model").
@Html.LabelFor(m => m, new { @class = "control-label col-md-2" })

In a display template (e.g. @Html.DisplayFor(m => m.UserName):

 results in Model
@Html.LabelFor(m => m) results in UserName

I'm able to reproduce this as well. Haven't debugged what is going South but it does look strange, especially given the for attribute has the correct value.

FYI problem relates to how the ModelMetadata for the property is found. In the @Html.LabelFor(m => m) case, PropertyName is "UserName". But in the  case, PropertyName is "Model". Looking a bit deeper...

:ok: the issue here is that ExpressionMetadataProvider.FromLambdaExpression() correctly handles m => m and other identity expressions (ExpressionType.Parameter) but does not understand that m => {generated class}.Model needs special handling. That is, @Html.LabelFor(m => Model) hits exactly the same naming issue.
Unfortunately tag helpers do not support lambda identity expressions and always hit this issue if the @Model "fallback" is used. We probably didn't see this before because (a) the ModelMetadata.PropertyName property isn't used extensively in HTML generation and (b) @Model.UserName, @Model[i].UserName, and other lambda RHS that start with @Model work fine.
One caveat on (a): strings generated for client-side validation rules can be messed up when PropertyName is incorrect e.g. data-val-required="The Model field is required.".

And, no, I don't know of an RC1 workaround other than to use HTML helpers for this case.

release: 7a1ac03
also merged into dev

So we can, or we cannot, use asp-for tag helpers in Display/Edit templates?
Because it's now almost 2018 and these asp-for's are not working in my template.


"java.io.IOException: Class not found" is thrown with Spark partitions

When running the following script:
import org.apache.spark.{SparkContext, SparkConf}
import org.apache.spark.sql.SQLContext

val conf = new SparkConf().setMaster("local[*]").setAppName("bxm")
val sc = new SparkContext(conf)
val sqlContext = new SQLContext(sc)

val df = sqlContext.read.json("data.json")

df.foreachPartition{records =>
  records.foreach(record => println("fake db write"))
}

I get this error:
java.io.IOException: Class not found
  org.apache.xbean.asm5.ClassReader.a(null:-1)
  org.apache.xbean.asm5.ClassReader.<init>(null:-1)
  org.apache.spark.util.ClosureCleaner$.getClassReader(ClosureCleaner.scala:40)
  org.apache.spark.util.ClosureCleaner$.getInnerClosureClasses(ClosureCleaner.scala:81)
  org.apache.spark.util.ClosureCleaner$.org$apache$spark$util$ClosureCleaner$$clean(ClosureCleaner.scala:187)
  org.apache.spark.util.ClosureCleaner$.clean(ClosureCleaner.scala:122)
  org.apache.spark.SparkContext.clean(SparkContext.scala:2055)
  org.apache.spark.rdd.RDD$$anonfun$foreachPartition$1.apply(RDD.scala:919)
  org.apache.spark.rdd.RDD$$anonfun$foreachPartition$1.apply(RDD.scala:918)
  org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:150)
  org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:111)
  org.apache.spark.rdd.RDD.withScope(RDD.scala:316)
  org.apache.spark.rdd.RDD.foreachPartition(RDD.scala:918)
  org.apache.spark.sql.DataFrame$$anonfun$foreachPartition$1.apply$mcV$sp(DataFrame.scala:1483)
  org.apache.spark.sql.DataFrame$$anonfun$foreachPartition$1.apply(DataFrame.scala:1483)
  org.apache.spark.sql.DataFrame$$anonfun$foreachPartition$1.apply(DataFrame.scala:1483)
  org.apache.spark.sql.execution.SQLExecution$.withNewExecutionId(SQLExecution.scala:56)
  org.apache.spark.sql.DataFrame.withNewExecutionId(DataFrame.scala:2125)
  org.apache.spark.sql.DataFrame.foreachPartition(DataFrame.scala:1482)
  cmd6$.<init>(Main.scala:142)
  cmd6$.<clinit>(Main.scala:-1)

I don't get this error when running within the standard repl.
I'm using the following versions of the spark libs:
"org.apache.spark" %% "spark-core" % "1.6.0",
"org.apache.spark" %% "spark-sql" % "1.6.0"

and ammonite 0.5.7.
Any ideas? Is this a known issue?

I've never used spark before, my understanding is that it doesn't work.
But we should make it work. I don't know anything about Spark. Can you provide a self-contained example with all relevant setup, data-files (e.g. what's data.json?) etc. included so I have something to work with? If you give me that I'm pretty confident I'll be able to make it work...

Cheers! I have created a repo here which you can use to reproduce the bug.

@lihaoyi - Spark has it's own Scala REPL called Spark Shell. Spark is used for distributed parallel computing (MapReduce, Hadoop File System). The spark REPL is based on the standard Scala REPL, but I would like Ammonite shell to be able to be used. https://github.com/apache/spark

@lihaoyi in short, the issue here is that ammonite's compiled class bytecode is inaccessible from the ammonite shell's classloader.
Long version:
Spark shell uses the standard scala.tools.nsc.Interpreter way to instantiate the shell, and uses ClosureCleaner to serialise closures.
The way spark does this is by:

Getting the name of the anonymous class cls using cls.getName and tweaking it
Getting the class byte code using cls.getResourceAsStream(tweakedName + ".class")

When I set a breakpoint in ClosureCleaner.getClassReader, I see that the anonymous class (containing the records => ... closure in the issue comment (https://github.com/lihaoyi/Ammonite/issues/382#issue-151843542) is unable to fetch its own resource when using ammonite shell, but it works fine with scala's standalone nsc.Interpreter shell.

I was able to solve this issue.  Turns out there're a few steps to do, as the root-cause is also due to a peculiarity of Spark.

Change Ammonite's SpecialClassLoader to override URLCLassLoader's getResourceAsStream(name) so it returns the anonymous, REPL-defined closures.  Spark uses this in its ClosureSerializer.  While this step solves the task serialization problem (i.e., rdd.map(x => x+1) will now compile properly), it does not execute, because the spark executor does not have access to the x => x+1 closure defined in the REPL.  This leads us to step (2):

Change Ammonite to save the class bytecodes in SpecialClassLoader.newFileDict to a disk at a temporary directory, and serve this directory using a HttpServer.

Set Spark's spark.repl.class.uri setting when initialising SparkConf (this setting has changed across Spark versions) to point to the HTTP server's URI.

Steps (2) and (3) ensure that once spark serialises the tasks and sends them to executors, the executor can also load these REPL-defined classes using its URLClassLoader.  This is exactly what Spark does in spark-repl package.
I think (1) and (2) are a useful change to Ammonite, so I can send a PR if you feel it's a nice to have.  Step (3) is very specific to Spark, so I can send out a gist so others can benefit from it.

FYI, that's the kind of things I did here: https://github.com/alexarchambault/ammonium

@alexarchambault Thanks for the link!  I did take a look at it.  Do you have some examples on how I can initiate the Repl just like Ammonite?  i.e., I just want to drop this into my code:
    ammonite.repl.Main.run()

Is it possible to do this in Ammonium?  A gist example would be great.

Something like

depend on "com.github.alexarchambault.ammonium" % "shell" % "0.4.0-M6" cross CrossVersion.full,
call ammonite.Ammonite.main(Array()),
should do the job.

If you plan to use some of the code around from the shell / jobs run from it, there should be some extra things to do though.

Plus follow https://github.com/alexarchambault/ammonium#spark to setup spark from the shell.

Feel free to send a PR jvimal!
alexarchambault I wouldn't mind a PR from you either (on this or other
topics), if you promise to be patient with me understanding and merging it
=P
On Monday, 16 May 2016, Alexandre Archambault<EMAIL_ADDRESS>wrote:

Plus follow https://github.com/alexarchambault/ammonium#spark to setup
spark from the shell.
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/lihaoyi/Ammonite/issues/382#issuecomment-219469137

I can try if time allows. Some of the changes were quite wide-ranging though... hence my hesitation (plus I wasn't really knowing what I was doing when I initially wrote them :-), so that made them a bit hard to explain / justify).

What @jvimal proposes is a first step in the right direction, some extra work was needed too (I could have a look at it another time).

is this issue solved?
I am using the latest amm version (0.7.6), and I still get the same error.
See this example https://github.com/lihaoyi/Ammonite/issues/463

@dportabella nope.  This needs more work for integration tests, which I did not have time to do.  You can see #389 for more info and context.

Here is a very light touch  integration: https://github.com/SparklineData/snapshell
Basically we replace Spark's ILoop with an Ammonite Repl, but let leave spark.repl.Main mostly in charge. Note, this comes from the perspective of snap-shell being a drop in replacement for spark-shell(all spark-submit options work).

This seems to work as of https://github.com/lihaoyi/Ammonite/commit/662859f84f5a77efca3e7e4d3074626570a992cf, and has been added to the test suite:
import $ivy.{
  `org.apache.spark::spark-core:2.1.0`,
  `org.apache.spark::spark-sql:2.1.0`
}
import ammonite.ops._
import org.apache.spark.{SparkContext, SparkConf}
import org.apache.spark.sql.SQLContext

val conf = new SparkConf().setMaster("local[*]").setAppName("bxm")
val sc = new SparkContext(conf)
val sqlContext = new SQLContext(sc)

val df = sqlContext.read.json(
  "integration/src/test/resources/ammonite/integration/basic/Spark2.json"
)

df.foreachPartition{records =>
  records.foreach{
    record => println("fake db write")
  }
}

Notably, a small change makes it hang:
import $ivy.{
  `org.apache.spark::spark-core:2.1.0`,
  `org.apache.spark::spark-sql:2.1.0`
}
import ammonite.ops._
import org.apache.spark.{SparkContext, SparkConf}
import org.apache.spark.sql.SQLContext

val conf = new SparkConf().setMaster("local[*]").setAppName("bxm")
val sc = new SparkContext(conf)
val sqlContext = new SQLContext(sc)

val df = sqlContext.read.json(
  "integration/src/test/resources/ammonite/integration/basic/Spark2.json"
)

var i = 0
df.foreachPartition{records =>
  records.foreach{
    record => i += 1; println("fake db write " + i)
  }
}

It's not clear how/why that is hanging; any spark experts around?

http://www.lihaoyi.com/Ammonite/#0.9.0 is out

It is even possible to submit jobs via yarn..
interp.load.cp(ammonite.ops.Path("/etc/hive/conf"))

import $ivy.{
        `org.apache.spark::spark-core:2.2.0`,
        `org.apache.spark::spark-sql:2.2.0`,
        `org.apache.spark::spark-yarn:2.2.0`
}
import org.apache.spark.{SparkContext, SparkConf}
import org.apache.spark.sql.SQLContext

val conf = new SparkConf().setMaster("yarn-client").setAppName("timvwamm")
val sc = new SparkContext(conf)
val sqlContext = new SQLContext(sc)
val rdd = sc.textFile("hdfs://nameservice1/blah/blah/part-0000.gz")
println(s"count is " +  rdd.count())

sc.stop()

I published  ammonite-spark, which makes plenty of other spark things work (spark serializing stuff from the Ammonite session should work fine - when mapping on RDDs or defining UDFs, all the dependencies are passed to the spark session, etc.)

Hi everyone. I too am facing a similar issue. Were you guys able to solve this? If yes, can you please help me with the same?
Traceback (most recent call last):
File "testcase1.py", line 46, in
print("Number of records: " + str(df_data.count()))
File "/anaconda3/lib/python3.6/site-packages/pyspark/sql/dataframe.py", line 455, in count
return int(self._jdf.count())
File "/anaconda3/lib/python3.6/site-packages/py4j/java_gateway.py", line 1257, in call
answer, self.gateway_client, self.target_id, self.name)
File "/anaconda3/lib/python3.6/site-packages/pyspark/sql/utils.py", line 63, in deco
return f(*a, **kw)
File "/anaconda3/lib/python3.6/site-packages/py4j/protocol.py", line 328, in get_return_value
format(target_id, ".", name), value)
py4j.protocol.Py4JJavaError: An error occurred while calling o35.count.
: java.lang.IllegalArgumentException
at org.apache.xbean.asm5.ClassReader.(Unknown Source)
at org.apache.xbean.asm5.ClassReader.(Unknown Source)
at org.apache.xbean.asm5.ClassReader.(Unknown Source)
at org.apache.spark.util.ClosureCleaner$.getClassReader(ClosureCleaner.scala:46)
at org.apache.spark.util.FieldAccessFinder$$anon$3$$anonfun$visitMethodInsn$2.apply(ClosureCleaner.scala:449)
at org.apache.spark.util.FieldAccessFinder$$anon$3$$anonfun$visitMethodInsn$2.apply(ClosureCleaner.scala:432)
at scala.collection.TraversableLike$WithFilter$$anonfun$foreach$1.apply(TraversableLike.scala:733)
at scala.collection.mutable.HashMap$$anon$1$$anonfun$foreach$2.apply(HashMap.scala:103)
at scala.collection.mutable.HashMap$$anon$1$$anonfun$foreach$2.apply(HashMap.scala:103)
at scala.collection.mutable.HashTable$class.foreachEntry(HashTable.scala:230)
at scala.collection.mutable.HashMap.foreachEntry(HashMap.scala:40)
at scala.collection.mutable.HashMap$$anon$1.foreach(HashMap.scala:103)
at scala.collection.TraversableLike$WithFilter.foreach(TraversableLike.scala:732)
at org.apache.spark.util.FieldAccessFinder$$anon$3.visitMethodInsn(ClosureCleaner.scala:432)
at org.apache.xbean.asm5.ClassReader.a(Unknown Source)
at org.apache.xbean.asm5.ClassReader.b(Unknown Source)
at org.apache.xbean.asm5.ClassReader.accept(Unknown Source)
at org.apache.xbean.asm5.ClassReader.accept(Unknown Source)
at org.apache.spark.util.ClosureCleaner$$anonfun$org$apache$spark$util$ClosureCleaner$$clean$14.apply(ClosureCleaner.scala:262)
at org.apache.spark.util.ClosureCleaner$$anonfun$org$apache$spark$util$ClosureCleaner$$clean$14.apply(ClosureCleaner.scala:261)
at scala.collection.immutable.List.foreach(List.scala:381)
at org.apache.spark.util.ClosureCleaner$.org$apache$spark$util$ClosureCleaner$$clean(ClosureCleaner.scala:261)
at org.apache.spark.util.ClosureCleaner$.clean(ClosureCleaner.scala:159)
at org.apache.spark.SparkContext.clean(SparkContext.scala:2299)
at org.apache.spark.SparkContext.runJob(SparkContext.scala:2073)
at org.apache.spark.SparkContext.runJob(SparkContext.scala:2099)
at org.apache.spark.rdd.RDD$$anonfun$collect$1.apply(RDD.scala:939)
at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:151)
at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:112)
at org.apache.spark.rdd.RDD.withScope(RDD.scala:363)
at org.apache.spark.rdd.RDD.collect(RDD.scala:938)
at org.apache.spark.sql.execution.SparkPlan.executeCollect(SparkPlan.scala:297)
at org.apache.spark.sql.Dataset$$anonfun$count$1.apply(Dataset.scala:2770)
at org.apache.spark.sql.Dataset$$anonfun$count$1.apply(Dataset.scala:2769)
at org.apache.spark.sql.Dataset$$anonfun$52.apply(Dataset.scala:3254)
at org.apache.spark.sql.execution.SQLExecution$.withNewExecutionId(SQLExecution.scala:77)
at org.apache.spark.sql.Dataset.withAction(Dataset.scala:3253)
at org.apache.spark.sql.Dataset.count(Dataset.scala:2769)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at py4j.reflection.MethodInvoker.invoke(MethodInvoker.java:244)
at py4j.reflection.ReflectionEngine.invoke(ReflectionEngine.java:357)
at py4j.Gateway.invoke(Gateway.java:282)
at py4j.commands.AbstractCommand.invokeMethod(AbstractCommand.java:132)
at py4j.commands.CallCommand.execute(CallCommand.java:79)
at py4j.GatewayConnection.run(GatewayConnection.java:238)
at java.base/java.lang.Thread.run(Thread.java:844)


Test of gicp and ndt on Kitti Odometry dataset

Hello, Koide. Thanks very much for your awesome work and contribution to the society.
I've tested ndt_omp, gicp_omp and also fast vgicp on KITTI Odometry dataset with only the scan-to-scan matching and uniform motion based initial guess after tuning the parameters. I'd like to share the result here.
Method  ATE (%)     ARE(0.01deg/m)     TPF(ms)
gicp_omp      1.12                      0.17           273
voxel_gicp      1.09                     0.32                128
ndt_omp       3.75                      0.86                172
The rotation accuracy of gicp_omp is quite well (top 10 on KITTI leaderboard).
I'd like to involve these algorithms in my project as baseline front-end methods, thank you a lot.

Hi @YuePanEdward ,
Thanks for letting me know the result :+1:

Hello @YuePanEdward .
I am very interested in these results.
Could you please tell me how to set the parameters in kitti ？

Hello @YuePanEdward .
I am very interested in these results.
Could you please tell me how to set the parameters in kitti ？

hello, i used gicp and gicp-omp(8 threads) and found they take about the same time, why?


Create a local repository automatically when mirroring

When mirroring from Git to Central Dogma, Central Dogma does not mirror when the target local repository does not exist. Instead, it could create an empty repository when it does not exist. /cc @huydx

@yyuunn0044 You might be also interested in this PR. 😉

This issue would not need to be addressed since the mirror UI forces users to select a repository from the existing ones.


suggestion for header / front page

What if we do the colored P R G in a grey color and "dept of chem eng" text in orange? might pop a bit better....

@anotherjoshsmith is this done?

I haven’t made the change. I tried a couple iterations I didn’t like as much as what’s there. I can tweak it this week.


Question: Is ProteinBertModel a Devlin 2018 BERT trained on Pfam?

Hi, I got a little bit confused. Maybe you already mentioned it and I didn't find it.
As far as I understand the pre-trained ProteinBertModel (Transformer) is from huggingface, so it is the model described by Devlin 2018.
In your paper Evaluating Protein Transfer Learning with TAPE however the Transformer is a model as described by Vaswani 2017.
So, you trained the Devlin 2018-Transformer again on Pfam as you did before for the Vaswani 2017-Transformer?
Best
Marc

We trained a Transformer Encoder using masked language modeling. The architecture is of the encoder (as well as the decoder, which we do not use) is from Vaswani et al, and the idea to pair that architecture with masked language modeling is from Devlin et al.
We found it more clear to just cite the architecture rather than BERT for a few reasons. Two major ones -

There is more to BERT than just the Transformer encoder + masked language modeling.They introduce an "is next task" (using  and  tokens), which we did not end up reporting in the TAPE paper.
Our choice of hyperparameters used in the paper differs from that of BERT-base, which would've made calling our model "BERT" confusing.

But just to be clear, the Transformer architecture is the same in both papers up to hyperparameter choices (and perhaps some details of positional encoding or other minutiae).
Does this answer your question? Let us know if you have further questions.

Hi, thanks for the quick answer. Yes, that's what I wanted to know.
I was thinking that - intuitively - training with the Cloze task would make the transformer take the whole sequence into account. If it would have been trained like in Vaswani et al I would consider presenting both directions of an amino acid sequence (C->N and N->C).

Hi, thanks for the quick answer. Yes, that's what I wanted to know.
I was thinking that - intuitively - training with the Cloze task would make the transformer take the whole sequence into account. If it would have been trained like in Vaswani et al I would consider presenting both directions of an amino acid sequence (C->N and N->C).


Add translation notification banner

Fixes

Fixes #419 by @zackkrida
Description

This PR adds a banner inviting contributors to add translations for locales where fewer than 90% of strings are translated.
The translated percentages for locales are scraped from the HTML page instead of the API due to lack of CORS header on the wp.org site.
It uses the previously created NotificationBanner component, but refactors it to be more flexible through using slots for any actions. The Notification Vuex store is also removed.
This PR replaces a 18n-sync mixin with a similar composable, and adds two more composables: use-storage and use-event-listener, mainly based on the Vueuse library code.
To add the correct link to the translation banner, I had to use a full locales list instead of the valid-locales.json list of locales that have at least one translated string. To make the use of both lists together easier, I refactored the locales list to use camelCase property names instead of the snake_case that was previously used.
Screenshots
I've used the banner color that was used previously on CC Search. @panchovm , what is the best color and position for this banner? Should it be full-width as now, or have the same maximum width as the header?

Testing Instructions

from Zack: You can also test this in a hacky way by editing the onMounted hook of use-i18n-sync with the following code:
localeMsgHandler({
data: { type: 'localeSet', value: { locale: 'ar' } },
})

Update Nuxt locale files using npm run i18n:create-locales-list and then npm run i18n:get-translations.
Run the Nuxt app using npm run dev.
Run the Openverse WordPress theme (instructions in the theme Readme).
Open the theme Customizer and set the embed URL to http://localhost:8443
Change the WP theme locale on http://localhost:8888/wp-admin/options-general.php options page. Note the icon next to the language select, it will help to change the language back from an unfamiliar one.
Reload the WP Openverse site, or open it anew by going to http://localhost:8888. You should see the Translation Banner below the header, with a correct link to the translation project on translate.wordpress.org. Note: for some reason, if I try to refresh 'http://localhost:8888/openverse', it doesn't work. Only going to the top page at 'http://localhost:8888' works.
If you dismiss the banner, you should see the language code in the dismissed locales list in the localStorage. The localStorage saves the dismissed banner locale code so that if the user changes the locale, they are encourage to help with the new locale, too :)

This PR still doesn't update the translated status, which should be done regularly.
Checklist

[x] My pull request has a descriptive title (not a vague title like Update index.md).
[x] My pull request targets the default branch of the repository (main) or a parent feature branch.
[x] My commit messages follow best practices.
[x] My code follows the established code style of the repository.
[ ] I added or updated tests for the changes I made (if applicable).
[ ] I added or updated documentation (if applicable).
[x] I tried running the project locally and verified that there are no visible errors.

Developer Certificate of Origin

Developer Certificate of Origin
Developer Certificate of Origin
Version 1.1

Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
1 Letterman Drive
Suite D4700
San Francisco, CA, 94129

Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.

Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
    have the right to submit it under the open source license
    indicated in the file; or

(b) The contribution is based upon previous work that, to the best
    of my knowledge, is covered under an appropriate open source
    license and I have the right under that license to submit that
    work with modifications, whether created in whole or in part
    by me, under the same open source license (unless I am
    permitted to submit under a different license), as indicated
    in the file; or

(c) The contribution was provided directly to me by some other
    person who certified (a), (b) or (c) and I have not modified
    it.

(d) I understand and agree that this project and the contribution
    are public and that a record of the contribution (including all
    personal information I submit with it, including my sign-off) is
    maintained indefinitely and may be redistributed consistent with
    this project or the open source license(s) involved.

Looks really good so far, thanks @obulat! Please add testing instructions when you can. My only other question—I think we could calculate the translation percentage by comparing the # of string keys in each {locale}.json file to the main en.json file. It would be nice to not rely on scraping for the percentages. I am open to the scraping if there's a benefit though.

For the transitional style and the redesign, I think we should follow the current notification style and place it above the Openverse header. I was looking for uses on WP.org and just found this in Learn section.

I will task myself to create a mockup for the redesign version.

My brain dump of the process:
Changes to locale json files
There are two lists of locales:

locales-list.json contains all of the GlotPress locales, even several that are not present on translate.wp.org.
valid-locales.json contains only the locales that have at least one translated string.

locales-list.json keys are slug, because those are the codes used for translation URL. (is this a good enough reason? Why not wpLocale?
This list is created in update-locale-list.js by scraping the GlotPress GitHub file with a list of locales. I want to update this list to 1. delete the locales that are not available on translate.wp.org, 2. add translation percentage.
The scraping/update of the list of locales available on translate.wp.org should not happen often. Once a year?
However, this list needs to be regularly updated with the translated status.
So the process can be:
Setup or yearly update

update-locale-list can be called with a script that gets a list of locales by scraping GlotPress, and then filtering it, removing locales that are not available in translate.wp.org.

Weekly? update of translations and translation statuses

Call update-translation-status to update translated property in the locales-list.json. 2. i18n:get-translations updates the valid-locales list that also include the translated property with percent translated, as well as the actual .po - .json language files.
valid-locales are used when setting up the Nuxt i18n.locales list. This way, the translated property is available on i18n.locale or i18n.localeProperties.

I've refactored some i18n scripts to improve fetching the locale data and updating it.

When setting up the app, you need to run npm run i18n:create-locales-list. This will fetch the list of locales and data associated with each locale from GlotPress. There are more locales in this list than what is available on translate.wordpress.org, so then the script parses the list from translate.wordpress.org, removes locales that are not found there, and also adds the status of translations to the list.

Next, you will need to run npm run i18n:get-translations. This will load the translated .po files from translate.wordpress.org, convert them to .json files that are usable in Vue i18n. It will also create two files: valid-locales.json for locales that have at least one translated string, and that will be loaded in Vue, and untranslated-locales.json, which is used for retrieving language name, translation status and the slug to create a link to this language's page on translate.wordpress.org for the translation banner.

The second script will need to be run regularly.

By the way, I tested this quite simply by adding code to the onMounted call of use-i18n-sync to manually set the locale to Arabic:
  localeMsgHandler({
    data: { type: 'localeSet', value: { locale: 'ar' } },
  })

I tested the notification position below and above the Openverse header and it looks odd when divides the header and the filter area. Here is a screenshot of my point.

If we move it above, the broken layout gets solved.

I agree with @panchovm about moving it above

@panchovm ,
I have moved the banner above the header, and also tested what it looks like with the redirect banner on the homepage:

This is the current view with the filters open:

Looks great! I don't love the banner with the CC banner, but it's not terrible. Great work

Fixed a formatting issue, if CI passes I'll merge!


Problem with event.getMember

Hello, I try to make a bot, but I have a problem and I think it's a bug of JDA.
    @Override     public void onMessageReactionRemove(MessageReactionRemoveEvent event) {         if(event.getUser().isBot()) return;         boolean nil = (event.getMember() == null);         System.out.println(nil);    }
This code return me true so event.getMember() is null but in the next code event.getMember() != null so can you explain me why the first code return me null and the second not null thanks you
    @Override     public void onMessageReactionAdd(MessageReactionAddEvent event) {         if(event.getUser().isBot()) return;         boolean nil = (event.getMember() == null);         System.out.println(nil);     }

Please use the issue templates next time since they exist for a reason.
Additionally use code blocks next time as inline code is horrible to read when it looks like that.
To your issue: MessageReactionAddEvent is not just for reactions being added on Discord servers, but also on DMs, which do not have Members, so event.getMember() can return both null and not null (the actual Member)
If you want to use the event only for Guilds, use the GuildMessageReactionAddEvent and for private chat the PrivateMessageReactionAddEvent
This is in no way a bug (as far as I can tell) and you should join the JDA Discord for faster support: https://discord.gg/0hMr4ce0tIk3pSjp

I tried with GuildMessageReactionRemoveEvent and event.getMember() return null again and normally it must return a result not null

I'm pretty sure the Member is not cached by JDA because of the CacheFlag or Intents so you get null. Because for that reason you are supposed to tell us how you build your JDA instance with the issue template. Set the MemberCacheFlag to ALL and add the needed intents and see if that still happens.

 this.bot = JDABuilder.createDefault(Utils.BOT_TOKEN)
                .setMemberCachePolicy(MemberCachePolicy.ALL)
                .setEnabledIntents(GatewayIntent.GUILD_MEMBERS, GatewayIntent.GUILD_VOICE_STATES, GatewayIntent.GUILD_EMOJIS, GatewayIntent.GUILD_MESSAGES, GatewayIntent.GUILD_MESSAGE_REACTIONS)
                .build();

So I set the MemberCacheFlag to ALL and I added the needed intents but it still doesn't work I tried with MessageReactionRemoveEvent and GuildMessageReactionRemoveEvent but it doesn't change anything, event.getMember() always returns null.

Did you make sure to enable the Member intent in the developer Panel?
It is required to do this:
https://andre601.github.io/JDA-Wiki/usage/gatewayintents/#privileged-intents

You might need to set the ChunkingFilter to ALL too. We had a similar issue in the Discord server right now and this solved the problem.

Yes all of privileged intents are enabled, I've added the ChunkingFilter and it works, thank you very much.


[analyzer][Extension types] No error if the representation type is a bottom type

According to the extension types feature specification

A compile-time error occurs if the representation type of an extension type declaration is a bottom type.

But there is no such error in analyzer
extension type ET1(Never _) {} // No error

extension type ET2<T extends Never>(T _) {} // No error

Related CFE issue #53824
Tested on Dart SDK version: 3.3.0-edge.849459109a364f7f80ca82647ad088a4a6157ebc (be) (Sat Oct 21 02:18:48 2023 +0000) on "macos_x64"

@scheglov

I don't understand why you don't see errors here.
The change landed as 13791e4fee0833fb67018df155ca247bc2b6ae60.
I see it when try IntelliJ, and from cli.
scheglov@scheglov-macbookpro4:~/Source/Dart/sdk.git/sdk (master)$ /Users/scheglov/Source/Dart/sdk.git/sdk/xcodebuild/ReleaseARM64/dart-sdk/bin/dart analyze /Users/scheglov/dart/test/bin/test.dart
Analyzing test.dart...                 0.4s

  error • test.dart:1:20 • The representation type can't be a bottom type. Try specifying a different type. • extension_type_representation_type_bottom
  error • test.dart:3:37 • The representation type can't be a bottom type. Try specifying a different type. • extension_type_representation_type_bottom

2 issues found.
scheglov@scheglov-macbookpro4:~/Source/Dart/sdk.git/sdk (master)$ /Users/scheglov/Source/Dart/sdk.git/sdk/xcodebuild/ReleaseARM64/dart-sdk/bin/dart --version
Dart SDK version: 3.3.0-edge.d37620ed0301133324e153349ec1eb7c26a559c0 (be) (Mon Oct 23 16:45:47 2023 +0000) on "macos_arm64"

Retested on the freshly built SDK. No this issue in analyzer now. Probably I tested it on SDK without this change. Sorry for this. Closing as fixed


Save module dependencies not in conda/pip

Resolves #207
Seems to work when using prediction functions of both the following forms (where test_util.py is some module not in conda or pip that has a COEFFICIENT=<int> variable):
import test_util
func = lambda x : len(x) * test_util.COEFFICIENT

import test_util as tu
func = lambda x : len(x) * tu.COEFFICIENT

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

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

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

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

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

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

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

jenkins test this please

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

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

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

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

This redundantly includes the change in #248 -- I wanted to see if the other changes in this PR would pass tests on Jenkins. Should be ready for review.

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

jenkins test this please

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

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

test this please

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

jenkins test this please

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

jenkins test this please

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

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

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

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

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

There's now a different mechanism for importing modules from packages (import util.mock_module) and importing modules directly by having them in your path. That's why the integration test suites import the two modules in different ways.
In clipper_manager_tests.py, there's only one test that queries the python-container, test_deployed_and_linked_predict_function_queried_successfully. This test now makes use of both local module importing mechanisms. There isn't a separate tests for querying a python-container that uses these because the bulk of the interesting work being done by the deploy_predict_func feature is package management.
By contrast, the old pyspark-container tests remain intact and a new one has been added to test the local module importing. The deploy_pyspark_model feature needs to coordinate loading a pyspark model into the container, and testing that behavior independent of package management might clarify where bugs exist if/when they pop up.

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

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

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

Forgot to ping you earlier @dcrankshaw -- this is now ready for review again.

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

jenkins test this please

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


Enable vagrant box caching for GHA

If it can solve the http 429 error and make the CI quicker, why not.
(side note: I'm a little bit surprised that we never got the issue with zuul in the past.)


Transition configuration from Host::setAddress() -> Host::addAddress()

It's currently difficult to bind a host on multiple IP interfaces. In particular, this makes it impossible to listening for connections on both IPv4 and IPv6 interfaces using the same host name impossible. The virtual host selection routine should be modified and the Host configuration API updated to allow for binding on multiple address interfaces with the same name.

Solved via 869ca49. expose() now doesn't overwrite, but allows adding you multiple interfaces.


Warn if Cesium3DTile content.uri is empty, and load empty tile

Fixes https://github.com/CesiumGS/cesium/issues/7263.
If content.uri is empty, print a warning to the console, and load an empty tile

Thanks for the pull request @jjhembd!

:heavy_check_mark: Signed CLA found.

Reviewers, don't forget to make sure that:

[ ] Cesium Viewer works.
[ ] Works in 2D/CV.

Great, thanks @jjhembd!


Bump indent-string.

To match the version used by listr-update-renderer.

Linting is failing because of an unrelated issue.

Codecov Report

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

@@           Coverage Diff           @@
##           master      #88   +/-   ##
=======================================
  Coverage   96.29%   96.29%
=======================================
  Files           7        7
  Lines         189      189
=======================================
  Hits          182      182
  Misses          7        7

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 b295525...a9af6b0. Read the comment docs.

Sorry for the late reply. I totally missed this one. After looking at the code, I noticed indent-string is not used anymore. It's probably a leftover from the days when the renderers were still part of the core package. I'm going to remove it from the dependencies list.

Apparently we had some unused dependencies https://github.com/SamVerschueren/listr/commit/f5d0b0d8df9f338a059a12b09147c036b4b6fca9. Removed them and released a new version. Sorry for the delay on this one.

I can't believe I missed that.  Thank you for resolving this.


Add subnets to the resource list

Fixes #737
Loping through all the "main" resources and get all the subnets for each Vnet that has been found.
This function can be expand for other sub-resources that aren't been retrieved by the Rest-Api "Resources"

@microsoft-github-policy-service agree

I just want to test this and make sure there isn't a huge impact to performance


[Suggestion] Minecraft trailers visual effects mod

Ok so we all know that there is a mod that is almost that (effective) even tho its not really 100% based on MC trailers, but we also all know that effective is quilt only and sadly its creator doesnt allows ports anymore.
The idea behind a mod that adds MC's trailers visuals is to make the game feel more alive and dynamic. Here are some examples of visuals that would be great to have:
Visual wind on cold biomes
wavy camera screen when on a very hot biome or next to lava
water splash
cascade particles so we can feel the intensity when water falls
knockback particles when hit by something intense that knocks the entity out, like the goat dash, the trident, knockback sword, etc.
theres too many stuff to write here but you can see everything on: https://www.youtube.com/watch?v=RldSuJssVwQ

(just updated the comment because i posted it before i finish writing lol)

I personally think it is better to focus on one thing for a mod. Kitchen sink mods(mods that just add a bunch of random stuff for no reason) aren't really great user experiences 99% of the time(in my opinion). I prefer mods that focus on a specific thing, and do it really well. There are also multiple mods and resource packs that already add things from the trailers. Trying to do all of it in one mod would cause compatibility issues. However, taking one of your suggestions and turning it into a single, high effort mod isn't a bad idea.
On that note, however, I ask that you keep issues made on my repositories related to the project itself. This is to help make sure that I'm able to keep things organized. I would like to point out that I'm not upset, just a little something to keep in mind for the future 😃


Provide official snapshots artifacts for Javalin 5.x

Currently Javalin does not provide snapshot builds, so the only way to get one is to build it locally or use JitPack. JitPack is known for a few issues, in our case it's mostly:

Builds artifacts only for manual request
Modifies artifact identifier, for Javalin it's:
com.github.tipsy.javalin:javalin:{version/commit} not io.javalin:javalin:4.6.1

Proposed solution on Discord was about using a dedicated maven repository to publish snapshot builds automatically on top of the master branch. For now, it'll be https://maven.reposilite.com, in the future it might be removed or replaced by the official Javalin-only repository. Having official snapshot builds, we can successfully prototype plugins in standalone repositories from [https://github.com/javalin] organization + simplify this process for users that would like to try/adapt to a new major release.
Full discussion on Discord: https://discord.com/channels/804862058528505896/821821822500208691/987467530689974362

I guess this can be closed now, thanks @dzikoysk !

Is there any chance you could upload source jars for this too?

@Fuyukai sources & javadocs are now in the repository.

https://maven.reposilite.com/javadoc/snapshots/io/javalin/javalin/5.0.0-SNAPSHOT


Issue from website page Get Started: Download

From URL: https://daskeyboard.github.io/get-started/download.md
When trying to download I get this error:
"NoSuchKeyThe specified key does not exist.Das-Keyboard-Q-Setup-1.0.0-beta.43.exe2EEC2E15664058DEh87pyuxjIni6ev08pnlR655ojGoI2LBHdNJnAx2wGT5civMyWxiMfAempqgQiGnxf1YDR+RLYJM="

Me as well.

https://s3-us-west-2.amazonaws.com/q-software-releases/Das Keyboard Q Setup 1.0.0-beta.45.exe seemed to work for me

Thanks!


Fixed code style issues in lib/CryptoNoteProtocol

Fixed code style issues in lib/CryptoNoteProtocol folder. All issues are similart to those from PR #65 and PR #66.

@nnian please, merge this PR once you see that all tests are 🍏
🙂

@speqtr do you mean green ci only?

@Sw0rdf1sh1 yes, I meant only CI builds. Code-coverage values are always a little bit flaky, so we can ignore delta values like -0.02%.


Step 13 Create a firewall rule that allows remote access to the nginx node port:

ERROR: (gcloud.compute.firewall-rules.create) Firewall rules must be of the form PROTOCOL[:PORT[-PORT]]; received [tcp:].

gcloud compute firewall-rules create kubernetes-the-hard-way-allow-nginx-service
--allow=tcp:${NODE_PORT}
--network kubernetes-the-hard-way
I changed ${NODE_PORT} to the port that I received from command "kubectl get svc", but I still cannot run curl command
curl -I http://${EXTERNAL_IP}:${NODE_PORT} - connection refused.

But it works from my browser from remote PC)))


Rename docker-packet-ubuntu2004-armv8-* machines

New naming format is test-docker-... as per https://github.com/adoptium/infrastructure/blob/master/FAQ.md#dockerstatic-test-systems - we should look at renaming the existing ones (created before the naming convnention was finalised) to match the new format.

Related: #2666


StringUtils concat and join

Scope & Purpose
Added variadic concat and join functions to StringUtils.

[ ] :hankey: Bugfix (requires CHANGELOG entry)
[ ] :pizza: New feature (requires CHANGELOG entry, feature documentation and release notes)
[ ] :fire: Performance improvement
[X] :hammer: Refactoring/simplification
[ ] :book: CHANGELOG entry made

Backports:

[X] No backports required
[ ] Backports required for: (Please specify versions and link PRs)

Testing & Verification

[ ] This change is a trivial rework / code cleanup without any test coverage.
[ ] The behavior in this PR was manually tested
[ ] This change is already covered by existing tests, such as (please describe tests).
[X] This PR adds tests that were used to verify all changes:

[X] Added new C++ Unit tests
[ ] Added new integration tests (e.g. in shell_server / shell_server_aql)
[ ] Added new resilience tests (only if the feature is impacted by failovers)

[ ] There are tests in an external testing repository:
[ ] I ensured this code runs with ASan / TSan or other static verification tools

http://jenkins.arangodb.biz:8080/job/arangodb-matrix-pr/13728/

http://jenkins.arangodb.biz:8080/job/arangodb-matrix-pr/13728/

http://jenkins.arangodb.biz:8080/job/arangodb-matrix-pr/13735/

http://jenkins.arangodb.biz:8080/job/arangodb-matrix-pr/13735/

http://jenkins.arangodb.biz:8080/job/arangodb-matrix-pr/13737/

http://jenkins.arangodb.biz:8080/job/arangodb-matrix-pr/13737/

With this PR, is it possible to drop the previously existing implementations of join and concat?

With this PR, is it possible to drop the previously existing implementations of join and concat?

Depends on the usages. The new versions do not allow for a dynamic (at runtime) number of arguments, while the old ones do. If that's not needed, we can drop the old ones (and maybe drop the trailing T on the new ones). The call sites would have to be adapted, as they're not drop-in replacements. I can check the callers later this week, if there's any dynamic usage.

Depends on the usages. The new versions do not allow for a dynamic (at runtime) number of arguments, while the old ones do. If that's not needed, we can drop the old ones (and maybe drop the trailing T on the new ones). The call sites would have to be adapted, as they're not drop-in replacements. I can check the callers later this week, if there's any dynamic usage.

I've immediately found several dynamic usages, so the existing implementations cannot be dropped.

I've immediately found several dynamic usages, so the existing implementations cannot be dropped.

Ok, if you could check that would be nice! Thanks.

Ok, if you could check that would be nice! Thanks.

http://jenkins.arangodb.biz:8080/job/arangodb-matrix-pr/13752/

http://jenkins.arangodb.biz:8080/job/arangodb-matrix-pr/13752/

http://jenkins.arangodb.biz:8080/job/arangodb-matrix-pr/13755/

http://jenkins.arangodb.biz:8080/job/arangodb-matrix-pr/13755/


Find any functional differences between in-process mode and Kestrel for main request/response logic.

Though this may involve a bit of code duplication for now, the main control flow of the in-process mode matches Kestrel's HttpProtocol. We should find any function differences and fix them! 😄

This isn't a great bug, it's more like a personal check list


Implement messaging system between windows

This will be necessary for Beakermentions applications to communicate with the endpoint, which will be open in a new window or iframe (see issue in Beakermentions).

With recent commits Beakermentions Endpoint can now communicate with applications when it's inside a window or an <iframe>.