Result app doesn't run on ARM; Copied Tini binary is x86_64

Please provide the following information so we can assess the issue you're having
Description
The Dockerfile for the result app will not produce a working image on ARM platform. The base image node:10-slim has ARM builds. The final built image will run then exit instantly. There is an error that reveals an x86_64 binary is trying to run.
Steps to reproduce the issue, if relevant:

Use arm64 machine (m1 mac in this case)
Build & run vote, redis, worker, db; link vote to redis, link worker to redis and db
Cast a vote
Build & run example-voting-app/result, link to db

Describe the results you received:
The container starts and stop instantly. When you map a local port to port 80 on the container nothing will be there.
/lib64/ld-linux-x86-64.so.2: No such file or directory
Describe the results you expected:
result container runs and accepts traffic, reporting votes from db
Additional information you deem important (e.g. issue happens only occasionally):
[https://github.com/zabbix/zabbix-docker/issues/777](Similar issue) in another repo, describing fix.
Output of docker version:
Client:
 Cloud integration: 1.0.17
 Version:           20.10.7
 API version:       1.41
 Go version:        go1.16.4
 Git commit:        f0df350
 Built:             Wed Jun  2 11:56:23 2021
 OS/Arch:           darwin/arm64
 Context:           default
 Experimental:      true

Server: Docker Engine - Community
 Engine:
  Version:          20.10.7
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.13.15
  Git commit:       b0f5bc3
  Built:            Wed Jun  2 11:55:36 2021
  OS/Arch:          linux/arm64
  Experimental:     false
 containerd:
  Version:          1.4.6
  GitCommit:        d71fcd7d8303cbf684402823e425e9dd2e99285d
 runc:
  Version:          1.0.0-rc95
  GitCommit:        b9ee9c6314599f1b4a7f497e1f1f856fe433d3b7
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

Output of docker info:
Client:
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Build with BuildKit (Docker Inc., v0.5.1-docker)
  compose: Docker Compose (Docker Inc., v2.0.0-beta.6)
  scan: Docker Scan (Docker Inc., v0.8.0)

Server:
 Containers: 41
  Running: 37
  Paused: 0
  Stopped: 4
 Images: 23
 Server Version: 20.10.7
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 1
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: d71fcd7d8303cbf684402823e425e9dd2e99285d
 runc version: b9ee9c6314599f1b4a7f497e1f1f856fe433d3b7
 init version: de40ad0
 Security Options:
  seccomp
   Profile: default
 Kernel Version: 5.10.25-linuxkit
 Operating System: Docker Desktop
 OSType: linux
 Architecture: aarch64
 CPUs: 4
 Total Memory: 1.942GiB
 Name: docker-desktop
 ID: YAWB:FVN4:N54P:I3YR:WZAC:RTGI:35CF:EEWS:PCHI:TOF2:XLVZ:BQUU
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 HTTP Proxy: http.docker.internal:3128
 HTTPS Proxy: http.docker.internal:3128
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  <IP_ADDRESS>/8
 Live Restore Enabled: false

Additional environment details (AWS, Docker for Mac, Docker for Windows, VirtualBox, physical, etc.):
Docker Desktop for Mac
macOS 11.4
M1/arm64

I know the fix, This line:
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
Needs to become this:
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-arm64 /tini
I want to submit a pull request but I'm not sure about the preferred way to solve the issue. Since no logic is supported in Dockerfile, there needs to be two Dockerfiles -- one for x86_64 and one for ARM64. I don't think that's the optimal solution. More likely, include a shell script that pulls the right binary based on architecture and RUN it during build. Something like:
#!/bin/bash
arch=$(arch)
TINI_VERSION=v0.19.0
if [[ $arch == arm* || $arch =~ ^aarch ]]; then
        curl https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-arm64 /tini
elif [[ $arch == x86_64 ]]; then
        curl https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
fi

Maybe there is an even better solution, but those are what I came up with. Thoughts?

Will be fixed by https://github.com/dockersamples/example-voting-app/pull/268


Attribute width concatenates margin instead of summing up

Hi,
I'm generating a simple barcode and it displays correct in the browser.
But when I save the svg-element content as a file, I receive a nice grey horizontal line

As I inspected the file, I noticed the width attribute is set to 3161010
Out of curiosity, I inspected the html content in my browser and noticed the same for the attributes:

svg width
svg viewport
rectangle width

After changing the margin to 20, it turns out the last characters are just a copy of my margin

When I change the value in my save .svg file manually, I can open the .svg file and the barcode image appears correctly.

There might be a solution in parsing the value in shared.js:
function getTotalWidthOfEncodings(encodings) {
	var totalWidth = 0;
	for (var i = 0; i < encodings.length; i++) {
		//totalWidth += encodings[i].width;
               totalWidth += parseInt(encodings[i].width);
	}
	return totalWidth;
}

Kind regards,
Job

The reason was I used a string to pass the integer variable(s).
So after changing that, the attributes build correct (as well my .svg-file)


Access to dataset and model

Dear colleagues,
is there a way to get access?
Thanks

Hi,
Apologies for just seeing this. Please contact<EMAIL_ADDRESS>for inquiries on the dataset and model.


Striped tables

Closes #788
Tries to make it harder to accidentally click on the wrong thing (e.g. task instead of run link) by making the run link look like a button instead of a link like the others. I tried making the entire row clickable but then it gets confusing when you actually do want to go to the task or agent code and not open the page for the run.

Thanks! I didn't find where that was being set before, was expecting it to be in the CSS. Updated:


RainbowRio v2.0

This is our submission. We are from RIOS Lab, Tsinghua University. If our submission has any problems, feel free to contact us. Thanks!

@wmz-max can you create a folder for your notebook.

@msaligane Yes, Thanks!

Thanks but you have deleted the readme inside the VLSI folder.

Our readme is empty. All the content is in the notebook. so I deleted it. Is that ok ？ Thanks.

it will create merge issues. so please revert the readme inside VLSI

Sorry, I forgot that. I have reverted it. Is that ok? Thanks.

Thanks!


#2507  stack trace on undefined name

#2507  user error is shown only in cell output

Don't say "Error" twice.  put the main error on the 1st line so user does not have to open the error.

but these seem to be the wrong errors.  if there is an error in %% or ${} directive, then it should be printed clearly.  For example, instead of saying "null" it should say the bad name:

And in the 1st error originally reported where I put in ${sales[0]} but it was not defined, the error displayed was "named not defined: sales" that was good.  please leave that.  just git rid of the stack trace!  now I am getting a horrible SQL parsing error.

updated


add a mpvpaper ,please

Project description
MPVPaper is a wallpaper program for wlroots based wayland compositors, such as sway.
Metadata

homepage URL: https://github.com/GhostNaN/mpvpaper
source URL: https://github.com/GhostNaN/mpvpaper
license: GPLv3
platforms:  linux,

Blind-packaged here. Could you test if it works?

Blind-packaged here. Could you test if it works?

Thank you , I installed mpvpaper successfully, but I find wayfire could not use it as background program, so I cant make it run.

Blind-packaged here. Could you test if it works?

Works great with sway :+1:

init at https://github.com/NixOS/nixpkgs/pull/185745


Add node-selector annotation to namespace

Why this change?
When https://github.com/openshift/cluster-kube-apiserver-operator/pull/394 merges, all the pods running openshift cluster will have a defaultNodeSelector if it has been set by cluster-admin including pods running in openshift-* namespace. The main advantage of having that feature is in a multi-tenant environment, any new project created can be steered towards compute nodes(non-master nodes).
What should I do?
If you think, the pods in your namespace shouldn't have defaultNodeSelector set, please review this PR. If not feel free to close this. The annotation added as part of this PR lets all the pods created within your project to not have the defaultNodeSelector set.
/cc @deads2k @sjenning

/retest

/test e2e-aws-olm

/test e2e-aws-olm

/lgtm
we'll follow up with changes to the templates so that this won't get added to upstream releases

/retest


NUTCH-2400 Solr 6.6.0 compatibility

This issues addresses https://issues.apache.org/jira/browse/NUTCH-2400
I decided to create the PR with minimal changes e.g. create a diff against schema.xml rather than upload the managed-schema.

Any comments folks?


Need guideline in subclassing, etc

With current docs, I find it a bit difficult to navigate the code base when constructing custom datasets. For instance, it is not clear whether I need to deal with worker info when I try to create an IterableDataset that directly feeds a WDS iterator to DataLoader.
Also, I am unsure if it is possible to control sampling weight in shards (for purpose of data augmentation, dealing with extremely biased data set, etc). I can probably do it with a custom IterableDataset class, but I will have to experiment to see whether iterators need special treatment to avoid duplicate data.

FYI, experiment shows that if I use the WDS iterators directly, I don't need to handle the worker info myself:
{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "145548f5-8ac1-4518-a541-58c1beb11c45",
   "metadata": {},
   "outputs": [],
   "source": [
    "import torch\n",
    "import torch.utils.data as D\n",
    "\n",
    "import webdataset as wds\n",
    "\n",
    "import glob"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "3bb368a5-bfa9-4a59-9656-a59c5e37fd79",
   "metadata": {},
   "outputs": [],
   "source": [
    "writer = wds.ShardWriter(\"positive-%03d.tar\", maxcount=2)\n",
    "for i in range(10):\n",
    "    e = {\n",
    "        \"__key__\": str(i),\n",
    "        \"txt\": f\"P{i}\"\n",
    "    }\n",
    "    writer.write(e)\n",
    "\n",
    "writer.close()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "0abc9ce7-771f-4d40-9df0-5018cf01b322",
   "metadata": {},
   "outputs": [],
   "source": [
    "writer = wds.ShardWriter(\"negative-%03d.tar\", maxcount=2)\n",
    "for i in range(10):\n",
    "    e = {\n",
    "        \"__key__\": str(i),\n",
    "        \"txt\": f\"N{i}\"\n",
    "    }\n",
    "    writer.write(e)\n",
    "\n",
    "writer.close()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "7c7db0ad-be73-4fe0-8dba-404fb3d8e847",
   "metadata": {},
   "outputs": [],
   "source": [
    "class SamplerDataset(D.IterableDataset):\n",
    "    def __init__(self):\n",
    "        self.dataset_p = wds.WebDataset(glob.glob(\"positive-*.tar\"), shardshuffle=False)\n",
    "        self.dataset_n = wds.WebDataset(glob.glob(\"negative-*.tar\"), shardshuffle=False)\n",
    "    def __iter__(self):\n",
    "        p = True\n",
    "        p_done = False\n",
    "        n_done = False\n",
    "        p_iter = iter(self.dataset_p)\n",
    "        n_iter = iter(self.dataset_n)\n",
    "        while not p_done or not n_done:\n",
    "            if p and not p_done:\n",
    "                p = False\n",
    "                try:\n",
    "                    yield next(p_iter)\n",
    "                except StopIteration:\n",
    "                    p_done = True\n",
    "            elif not p and not n_done:\n",
    "                p = True\n",
    "                try:\n",
    "                    yield next(n_iter)\n",
    "                except StopIteration:\n",
    "                    n_done = True\n",
    "            elif not p_done:\n",
    "                try:\n",
    "                    yield next(p_iter)\n",
    "                except StopIteration:\n",
    "                    p_done = True\n",
    "            elif not n_done:\n",
    "                try:\n",
    "                    yield next(n_iter)\n",
    "                except StopIteration:\n",
    "                    n_done = True\n",
    "            else:\n",
    "                raise StopIteration"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "1adc360d-23e4-4958-9b1f-b34b62170d0a",
   "metadata": {},
   "outputs": [],
   "source": [
    "ds = SamplerDataset()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "339de1a6-6eca-4420-93fd-57bcae8a482f",
   "metadata": {},
   "outputs": [],
   "source": [
    "dl = D.DataLoader(ds, num_workers=2)\n",
    "len(list(dl))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "1277d91c-bf3f-4d46-aa72-d865492a4b8a",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.8"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}

I really had to trace the code base to do anything, so I suggest improving documentation. When WDS works, though, it is faster than all other methods I tried, at least on my computer.

Yes, the documentation certainly needs lots of improvements. Feedback and questions are helpful for prioritizing what to document, so thanks for taking the time.
The WebDataset function is really just a shorthand  for something that constructs a pipeline that yields something that's similar to a regular PyTorch dataset.
Although there are a bunch of options, all you really need for a WebDataset is:
dataset = ShardList(urls, shuffle=True).then(tar_file_expander).then(group_by_keys)

Afterwards, the usual dataset.shuffle(...).decode(...).to_tuple(...) just works.
If you want to sample your shards differently, just use:
class MyShardList(IterableDataset, Composable):
    def __iter__(self): ...
    def __len__(self): ...

dataset = MyShardList(urls).then(tar_file_expander).then(group_by_keys)

There will probably be a way of describing datasets and specifying resampling at the shard leve using a JSON file soon, since it comes up frequently.


Set up SAP HANA, express edition on Amazon Web Services (XS Advanced)

Tutorial URL: https://developers.sap.com/tutorials/hxe-xsa-aws-setup.html
Please specify the step you are referring to 9
When connecting via WebIDE to 'di-core-hdi' i get this error:
Error: Error returned from XSA: User "XSA_DEV" is not permitted to create a resource in space "SAP" of org "HANAExpress".

There is nothing in that step that I see that tells you to connect to di-core-hdi. Nor would there be any reason to connect to this HDI container instance.  As the error says this user isn't authorized to resources in the SAP space. You should instead be doing your work with the development user in the development space.


react-markdown doesn't render code blocks properly when streaming the response.

Describe the bug
react-markdown doesn't render code blocks properly when streaming the response.
To Reproduce
Steps to reproduce the behavior:

Ask the GPT to write some code

Expected behavior
The code block renderer should apply.
Screenshots
If applicable, add screenshots to help explain your problem.

This is due to line breaks missing in the stream.

Looking forward for the fix

Working on this as we speak. And then I'll add so you can chat with whatever data source you want.

@SergeWilfried https://github.com/homanp/langchain-ui/pull/81


'pathlib' is part of the Python 3.4 standard library

Using isort, it moves pathlib at the bottom of the third group (First party?), even though it has been part of the standard library since Python 3.4.
I'm using isort 4.2.2 with Python 3.5.1 x64 on Windows 10. I have no configuration file set up.
Here's isort's output:
import codecs
import fileinput
import multiprocessing
import os
import re
import sys
import textwrap
import uuid
import webbrowser
import zipfile
from datetime import date, datetime

import colorama
from colorama import Back, Fore, Style
from invoke import run, task

import minchin.text
import requests
import winshell
from bs4 import BeautifulSoup
from pathlib import Path

Thanks for reporting! This has now been resovled in Develop and will make it's way into the next release.


Share sheet and Safari extensions should  write directly to the local database

It might make sense to pull this back into v1 but, for the time being, it works OK as it is; putting into future.


Fix for dukluv compilation in FreeBSD and Linux

The dukluv binary was failing to compile in FreeBSD and (AFAIK) Linux. This was because libm was not being linked with; the fix is included.

I've noticed you do have libm linked in Linux, in duktape.cmake --- knowing that, a better option would probably be to fix that file, instead.


(Experimental) Extract fit parser from the tool itself

Maybe the tool itself should be just a wrapper around a library for FIT file parsing. Evaluate if this might be the better approach.

somehow did this


Doc: fix style

Current on the website:

I don't know how to build it. I hope the fix works.

Good catch!

I agree this is trivial.
@levitte - please confirm this is trivial

I agree that it's trivial

Merged
master:
52a75f4088f2b2c59721152d9ec6ecf4d17c7e43 Doc: fix style
3.2:
3edd0c17334a16251c0f6a51e206f95c3ba5e94c Doc: fix style
3.1:
161e4ff5477a34235e3a0b8b8dae10137f1e3f7c Doc: fix style
3.0:
650cac22ed95430d15cff9b0ade9edce6c4145aa Doc: fix style


Nested page render the default layout even set to another layout

I'm using unplugin-vue-router.

pages and layout structure:
src/pages
├── about.vue
├── index.vue
└── nested
    └── index.vue

src/layouts
├── alpha.vue
└── default.vue

about.vue and nested/index.vue are set to alpha layout. But they have different behavior.
reproduce repo: https://github.com/Discreater/double-layout

This is a side effect of unplug-vue-router.
You'll need to create a src/pages/nested.vue with its layout set to false to disable the top level layout.
See the unplugin-vue-router example.
I'm going to leave this issue open  in the hopes that we can find a solution but so far I've had no luck.

Another temporary solution without creating a new file is modifying routes before passing them to setupLayouts. Effectively doing the same thing.
const nestedRoute = routes.find((route) => route.path === '/nested')

if (nestedRoute) {
  nestedRoute.meta = nestedRoute.meta ?? {}
  nestedRoute.meta.layout = false
}

const routesWithLayouts = setupLayouts(routes)


N41: Pirate Annihilation

_Part of #1233 _

Unfortunately PRs from organizations do not allow edit by maintainers. Let me know if I should reopen it with my personal account.

@theredfish I think that would be a good idea, so that we can rebase/edit :)

Ok will do in a couple of hours ✌

Closed in favor of #1248 with the possibility to allow maintainers to edit.


Updated request headers.

Updated request headers. iRobot is now validating these.

Thank you very much.
I upgraded it, so I will close this.


How to "inject" context into namespace so that pylance is aware of those variables

I know this is a very odd scenario. Consider the code below:
import spot_name_functions as SNF
import Enumerations_Various as EV
import delay
import logger

SNF.set_Current_FMS_VSpeed_STATUS(EV.STATUS_NORM)
vista.wait(delay.max_delay())
actual = IAS_Approach_Climb_Speed_Is_Auto.getValue()
expected = True
logger.test(actual, '==', expected)

Notice that vista and  IAS_Approach_Climb_Speed_Is_Auto are clearly not imported (or defined) in this file; therefore pylance shows a squiggly line warning. However these two are special-objects that just works when the file is run in a proprietary software at my work. I like to use vscode to explore these files, debug them by attaching it to said proprietary software process and modify them if needed. I know the locations of the files in which these special-objects are defined.
Now my question is how can I inform pylance about these special objects so that I don't get the warning? (and hopefully get code-completion). I have the following constraints though:

I do not want to globally disable reportUndefinedVariable
The development of these files are also done with the same proprietary software therefore, I cannot add any additional code to these files just because I prefer to use vscode.

I have been ignoring these warnings but on any given file there might be over 100 occurrences of these and it stops me from knowing truly undefined variable when I edit extensively. I'm thinking of writing a custom vscode extension that runs a script when I open any python file and maybe interact with the language server and/or define these objects.  Is that even possible? If so, can you point me in the right direction on how I can achieve that? Is there a easier solution?

Pylance is built on top of Microsoft's open-source type checker called Pyright. Pyright has a facility for extending the "builtins" namespace. For details, refer to this documentation. The basic idea is to create a type stub called __builtins__.pyi in your project's root directory. Within this type stub file, you can define symbols (functions, variables, classes, etc.) that should be "injected" to all modules within your project.


feat(card): card action requires aria-labe

an aria-label is required for screen reader accessibility
BREAKING CHANGE: Card.Action requires an aria-label
resolves #466

cc @andylincoln


In Openstreet.org node location are being depicted with comma instead of dot

I am not sure if the issue if in ID or Openstreet.org as such, but when consulted the location of any node, the coordinates are depicted in angular values with comma instead of dots separation
https://www.openstreetmap.org/node/5004295529
-17,1092482, -66,7337189
Comma seems not to work in OSM when you look for a Coordinate, only period works (point)
Thanks

This sounds like https://github.com/openstreetmap/openstreetmap-website/issues/2732

This sounds like https://github.com/openstreetmap/openstreetmap-website/issues/2732

Looks like this is affecting iD (at least in the en locale). We use the sexagesimal library for parsing coordinates, so ideally we'd address this there.

Looks like this is affecting iD (at least in the en locale). We use the sexagesimal library for parsing coordinates, so ideally we'd address this there.

Seems that either in EN and SP, the coordinates are now depicted with period (dot) instead of comma like before, Seems to me that the issue is closed. Thanks Quincy

Seems that either in EN and SP, the coordinates are now depicted with period (dot) instead of comma like before, Seems to me that the issue is closed. Thanks Quincy

Seems that either in EN and SP, the coordinates are now depicted with period (dot) instead of comma like before

We didn't change anything on iD, so you're probably looking at some part of osm.org. I'm not sure about the display format, but the search issue is still present:

Comma seems not to work in OSM when you look for a Coordinate, only period works

Seems that either in EN and SP, the coordinates are now depicted with period (dot) instead of comma like before

We didn't change anything on iD, so you're probably looking at some part of osm.org. I'm not sure about the display format, but the search issue is still present:

Comma seems not to work in OSM when you look for a Coordinate, only period works


How to use Devise both in the site and in the Admin Pages

Hi,
I asked this question on SO. Can you help me about it? I'm so new to RoR and Devise and mixed up everything.
http://stackoverflow.com/questions/29697004/how-to-use-devise-both-in-the-site-and-in-the-admin-pages
Thanks

Please use the mailing list or StackOverflow for questions/help, where a wider community will be able to help you. We reserve the issues tracker for issues only.

And please don't repost the questions here. There are folks constantly checking those!


Make TurboModuleRegistry.get(...) enforcing by default, add getOrNull(..)

Summary
The Turbo Module guides often encourage the use of TurboModuleRegistry.get(...) and directly exporting that, however this will be cumbersome to use for any library users since they have to check for null before every call to that Turbo Module.
Example:

TurboModule exports itself:export default TurboModuleRegistry.get<Spec>('ExampleModule')

Library users use it:import Module from './ExampleTurboModuleSpec'

// instead of
const x = Module.add(5, 4)

// ...they now have to write
let x = 0
if (Module != null) x = Module.add(5, 4)
else // what else?

In my opinion, get(...) should return the module and throwing if it could not be loaded, whereas getOrNull(...) (or getOrUndefined(...) or tryGet(...)) can be used when fallback behaviour is okay (e.g. when falling back to a JS-based module for react-native-web.
But that should be explicit behaviour, not implied and overseen, such as in this example: https://github.com/talknagish/react-native-turbo-starter/blob/aaba7d8613a4bb943876718bd31d3bdd84805f5d/src/NativeTurboStarter.ts#L34-L35
This PR changes this behaviour:
Before
TurboModuleRegistry.get<Spec>('ExampleModule') // <-- returns Spec | undefined
TurboModuleRegistry.getEnforcing<Spec>('ExampleModule') // <-- returns Spec, throws if not found

After
TurboModuleRegistry.get<Spec>('ExampleModule') // <-- returns Spec, throws if not found
TurboModuleRegistry.getOrNull<Spec>('ExampleModule') // <-- returns Spec | undefined

Changelog

[General] [Changed] - Breaking change: Make TurboModuleRegistry.get(...) enforcing by default, add getOrNull(...)
Test Plan
A

Try to get a Turbo Module that doesn't exist
See if get(..) throws and getOrNull(...) doesn't.

B

See if RN still starts correctly with all changes updated

Hi @mrousavy, thanks for the PR. This is a good call, and it can really improve our users codebase.
I only have one concern here: although this makes it easier to write code, we need to write the TM specs in Flow or Typescript. The transpilers should help you remember that the type is optional and to check for it. That's not true when a function throws. I'm wondering whether we are removing a compile-time check, exposing users to the risk of runtime crashes. What do you think?
Also, could you have a look at the tests? I can see 9 pipelines out of 19 failing in CI.

Whoops - I accidentally had a double < in there. Fixed it, tests should be passing now!
I think the optional issue you mentioned in your comment is exactly what I'm trying to solve - if the library author expects the native module to be null (e.g. when running in a different environment such as Windows, or Web context, or older RN version) he uses getOrNull. When the user expects the module to be there, he uses .get(...) just like with the legacy bridge architecture (remember requireNativeComponent?)


Exceptions when  trying to benchmark sudoku-sat solver

I'm getting a crash when trying to run the benchmark or the analyzer after that. Installation and starting the server went fine before.
2019-06-05 00:02:08.061 | INFO     | reprobench.core.bootstrap.client:bootstrap_tasks:10 - Bootstrapping tasks...
2019-06-05 00:02:08.077 | INFO     | reprobench.core.bootstrap.client:bootstrap_tools:33 - Setting up tools...
2019-06-05 00:02:08.079 | INFO     | reprobench.core.bootstrap:cli:39 - Sending bootstrap event to server
Executing runs:   0%|                                                                                | 0/32 [00:00<?, ?it/s]2019-06-05 00:02:08.440 | INFO     | reprobench.core.worker:run:48 - Processing task: output/my_solver.MySudokuSolver/clasp/sudoku/table16-2.txt
2019-06-05 00:02:08.444 | INFO     | reprobench.core.worker:run:48 - Processing task: output/my_solver.MySudokuSolver/clasp/sudoku/table25-2.txt
2019-06-05 00:02:08.447 | INFO     | reprobench.core.worker:run:48 - Processing task: output/my_solver.MySudokuSolver/clasp/sudoku/table49-1.txt
2019-06-05 00:02:08.452 | INFO     | reprobench.core.worker:run:48 - Processing task: output/my_solver.MySudokuSolver/clasp/sudoku/table9-4.txt
2019-06-05 00:02:08.457 | INFO     | reprobench.core.worker:run:48 - Processing task: output/my_solver.MySudokuSolver/clasp/sudoku/table36-4.txt
2019-06-05 00:02:08.467 | INFO     | reprobench.core.worker:run:48 - Processing task: output/my_solver.MySudokuSolver/clasp/sudoku/table36-5.txt
2019-06-05 00:02:08.483 | INFO     | reprobench.core.worker:run:48 - Processing task: output/my_solver.MySudokuSolver/clasp/sudoku/table16-1.txt
2019-06-05 00:02:08.491 | INFO     | reprobench.core.worker:run:48 - Processing task: output/my_solver.MySudokuSolver/clasp/sudoku/table16-5.txt
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
  File "/usr/lib/python3.7/multiprocessing/pool.py", line 121, in worker
    result = (True, func(*args, **kwds))
  File "/home/rubydragon/Programming/sudokusat-example/env/lib/python3.7/site-packages/reprobench/managers/local/manager.py", line 34, in spawn_worker
    worker.run()
  File "/home/rubydragon/Programming/sudokusat-example/env/lib/python3.7/site-packages/reprobench/core/worker.py", line 60, in run
    step.execute(context, config)
  File "/home/rubydragon/Programming/sudokusat-example/env/lib/python3.7/site-packages/reprobench/executors/base.py", line 39, in execute
    tool(context).run(executor)
  File "/home/rubydragon/Programming/sudokusat-example/env/lib/python3.7/site-packages/reprobench/tools/executable.py", line 41, in run
    err_path=self.get_err_path(),
  File "/home/rubydragon/Programming/sudokusat-example/env/lib/python3.7/site-packages/reprobench/executors/psmon.py", line 84, in run
    stats = monitor.run()
  File "/home/rubydragon/Programming/sudokusat-example/env/lib/python3.7/site-packages/psmon/main.py", line 100, in run
    with Popen(*self.popenargs, preexec_fn=os.setpgrp, **self.kwargs) as process:
  File "/usr/lib/python3.7/subprocess.py", line 775, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.7/subprocess.py", line 1453, in _execute_child
    restore_signals, start_new_session, preexec_fn)
TypeError: expected str, bytes or os.PathLike object, not NoneType
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/rubydragon/Programming/sudokusat-example/env/bin/reprobench", line 10, in <module>
    sys.exit(cli())
  File "/home/rubydragon/Programming/sudokusat-example/env/lib/python3.7/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/home/rubydragon/Programming/sudokusat-example/env/lib/python3.7/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/home/rubydragon/Programming/sudokusat-example/env/lib/python3.7/site-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/rubydragon/Programming/sudokusat-example/env/lib/python3.7/site-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/rubydragon/Programming/sudokusat-example/env/lib/python3.7/site-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/rubydragon/Programming/sudokusat-example/env/lib/python3.7/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/home/rubydragon/Programming/sudokusat-example/env/lib/python3.7/site-packages/reprobench/console/decorators.py", line 37, in wrapper
    return func(server_address=server_address, *args, **kwargs)
  File "/home/rubydragon/Programming/sudokusat-example/env/lib/python3.7/site-packages/reprobench/console/decorators.py", line 27, in wrapper
    return func(*args, **kwargs)
  File "/home/rubydragon/Programming/sudokusat-example/env/lib/python3.7/site-packages/reprobench/managers/local/__init__.py", line 21, in cli
    manager.run()
  File "/home/rubydragon/Programming/sudokusat-example/env/lib/python3.7/site-packages/reprobench/managers/base.py", line 34, in run
    self.wait()
  File "/home/rubydragon/Programming/sudokusat-example/env/lib/python3.7/site-packages/reprobench/managers/local/manager.py", line 44, in wait
    for _ in self.pool_iterator:
  File "/usr/lib/python3.7/multiprocessing/pool.py", line 748, in next
    raise value
TypeError: expected str, bytes or os.PathLike object, not NoneType
2019-06-05 00:02:08.541 | INFO     | reprobench.core.worker:run:48 - Processing task: output/my_solver.MySudokuSolver/clasp/sudoku/table25-1.txt
2019-06-05 00:02:08.545 | INFO     | reprobench.core.worker:run:48 - Processing task: output/my_solver.MySudokuSolver/clasp/sudoku/table36-1.txt
2019-06-05 00:02:08.549 | INFO     | reprobench.core.worker:run:48 - Processing task: output/my_solver.MySudokuSolver/clasp/sudoku/table144-1.txt
2019-06-05 00:02:08.553 | INFO     | reprobench.core.worker:run:48 - Processing task: output/my_solver.MySudokuSolver/clasp/sudoku/table9-5.txt
2019-06-05 00:02:08.558 | INFO     | reprobench.core.worker:run:48 - Processing task: output/my_solver.MySudokuSolver/clasp/sudoku/table16-3.txt
2019-06-05 00:02:08.638 | INFO     | reprobench.managers.local.manager:exit:24 - Total time elapsed: 0.23797832299896982

Here the analyzer
$ reprobench analyze
Traceback (most recent call last):
  File "/home/rubydragon/Programming/sudokusat-example/env/bin/reprobench", line 10, in <module>
    sys.exit(cli())
  File "/home/rubydragon/Programming/sudokusat-example/env/lib/python3.7/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/home/rubydragon/Programming/sudokusat-example/env/lib/python3.7/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/home/rubydragon/Programming/sudokusat-example/env/lib/python3.7/site-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/rubydragon/Programming/sudokusat-example/env/lib/python3.7/site-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/rubydragon/Programming/sudokusat-example/env/lib/python3.7/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/home/rubydragon/Programming/sudokusat-example/env/lib/python3.7/site-packages/reprobench/console/decorators.py", line 27, in wrapper
    return func(*args, **kwargs)
  File "/home/rubydragon/Programming/sudokusat-example/env/lib/python3.7/site-packages/reprobench/core/analyzer.py", line 35, in cli
    analyzer.run()
  File "/home/rubydragon/Programming/sudokusat-example/env/lib/python3.7/site-packages/reprobench/core/analyzer.py", line 25, in run
    module.execute(context, config)
  File "/home/rubydragon/Programming/sudokusat-example/env/lib/python3.7/site-packages/reprobench/statistics/tables/base.py", line 29, in execute
    df = cls.get_dataframe(config)
  File "/home/rubydragon/Programming/sudokusat-example/env/lib/python3.7/site-packages/reprobench/statistics/tables/run.py", line 51, in get_dataframe
    tool_df = pd.read_sql(sql, db, params=params)
  File "/home/rubydragon/Programming/sudokusat-example/env/lib/python3.7/site-packages/pandas/io/sql.py", line 380, in read_sql
    chunksize=chunksize)
  File "/home/rubydragon/Programming/sudokusat-example/env/lib/python3.7/site-packages/pandas/io/sql.py", line 1469, in read_query
    columns = [col_desc[0] for col_desc in cursor.description]
apsw.ExecutionCompleteError: Can't get description for statements that have completed execution

I don't know what causes this.

Sorry for the bad error handling.
For the analyzer error, my guess is this is caused by pandas trying to extract empty result: https://github.com/rogerbinns/apsw/issues/160#issuecomment-108472685
As for the other error, my best guess is either the path (https://github.com/rkkautsar/sudokusat-example/blob/master/my_solver/init.py#L16) is not specified, or the task file is missing (may be moved or deleted?).
Can you try deleting the output folder first and retry it from scratch?

My init.py looks like this:
'''
import os
import subprocess
from pathlib import Path
from reprobench.tools.executable import ExecutableTool
from reprobench.utils import download_file
DIR = os.path.dirname(file)
class MySudokuSolver(ExecutableTool):
name = "My Sudoku Solver"
# TODO: change this to your solver executable
path = os.path.join(DIR, "Sudoku")

@classmethod
def setup(cls):
    super().setup()
    # # TODO: add setup as needed (compiling etc.)
    # # for example you can use subprocess to execute GNU Make:s
    # subprocess.run(["make"], cwd=DIR)
    subprocess.run(["make"])

def get_cmdline(self):
    # TODO: change how your solver is executed against a task.
    # - `self.path` is as defined above
    # - `self.task` contains the path for the sudoku instance
    # - `self.parameters` contains the parameter for the run,
    #   in this case this is the `solver` parameter, whose value
    #   is either `riss` or `glucose`.

    solver = self.parameters.get("Sudoku")
    return [self.path, self.task, solver]

@classmethod
def is_ready(cls):
    """This checks if your solver is ready.
    If it returns false, the `setup()` method is executed
    """

    if not super().is_ready():
        return False

    # TODO: maybe check if your solver has already been compiled
    #       by checking the target executable?
    return Path(cls.path).is_file()

'''
My executable is my_solver/Sudoku
I'm still not quite sure how reprobench expects my output though, maybe that is part of the issue? Right now when I'm solving table9-1.txt for example I'm outputting into the same directory a file table9-1.sol with nothing but the solved sudoku inside, formatted the same way as the input sudokus. At least that's what the example my_solver.sh did with the bsp-sudoku1.txt.
I also tried just deleting the output folder and running it again, but it changed nothing.

I think this line here:
solver = self.parameters.get("Sudoku")

is not like what you are thinking. As described in the comment, self.parameters is the parameter for the run, in the case of sudokusat example it is filled with the sat solvers like riss, glucose or clasp (as defined here: https://github.com/rkkautsar/sudokusat-example/blob/f5f4f05290116245c98abd6aa6d9653ec1abca55/benchmark.yml#L41-L43).
I think this is why this error is happening: TypeError: expected str, bytes or os.PathLike object, not NoneType. i.e. because there is no Solver parameter, in other word it is None.

Thanks, that was indeed the issue. I guess I misunderstood the comments there.


ADF test improvements

use xUnit PropertyData attribute to increase coverage for local registration methods

Hi @bgold09, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!

It looks like you're working at Microsoft (brgold). If you're full-time, we DON'T require a contribution license agreement.

If you are a vendor, or work for Microsoft Open Technologies, DO please sign the electronic contribution license agreement. It will take 2 minutes and there's no faxing! https://cla.azure.com.

TTYL, AZPRBOT;


Added patch method and test

Added "patch" method to FormOpen.php with corresponding test method "testRenderPatchFormOpen" to FormOpenTest.php

Awesome! Thank you!


feat: Remove the synchronized consumer

The synchronized consumer should not be part of Arroyo. It was previously
used only by Snuba's legacy subscriptions infrastructure. This is now
rebuilt using regular (non-synchronized) consumers for performance reasons.
Because of those performance reasons, this is not really a pattern we want to
encourage by providing it out of the box in this library.
arroyo.utils.synchronized is now arroyo.utils.commit. Importing from
arroyo.utils.synchronized is still temporarily supported and will be removed
in a future version of this library.

@fpacifici There's a couple of breaking changes coming soon (this and the follow up changes to https://github.com/getsentry/arroyo/pull/75). How about we combine them into a 1.0.0 release?


Refactoring

This is an effort to go over the code base and re-think some of the structure in a future proof way. We will also focus on test coverage for smaller subunits at the same time.
Topics

[ ] Server code/Flask @robinandeer
[ ] Models @moonso
[ ] GEMINI adapter @moonso
[ ] VCF adapter @moonso
[ ] SQL adapter @robinandeer
[ ] Utils @moonso
[ ] CLI + logging @robinandeer

Feel free to assign yourself or suggest a new topic!

If you're planning to do some kind of intense one-day kick-off hackathon, I'd love to attend :-)

I'm not complaining :dancer:

Flask structure, some inspiration:

[ ] https://github.com/masom/bluemonk/blob/master/bluemonk/views/helpdesk.py
[ ] https://github.com/mattupstate/overholt
[ ] https://github.com/mbr/flask-bootstrap/tree/master/sample_app :+1:
[ ] https://github.com/mbr/flask-debug
[ ] https://pythonhosted.org/Flask-Bootstrap/nav.html

Testing: I’ve noticed that you guys have created a file per function to test, at least in the utils module. That makes it difficult to know which functions are being tested in which submodules. Is that a pytest common practice? I would propose a file per module to test, within the file, a class per submodule. i.e for the utils module: tests/utils/test_utils.py (a bit redundant, could be tests/tests_utils.py):
class TestGetInfo():
    ”””All tests for the methods in get_info.py”””
   …

class TestPhenomizer():
    ”””All tests for the methods in phenomizer.py”””

More concrete example: https://github.com/guillermo-carrasco/puzzle/commit/c6dcbdab89e2dcd6797c8dbcc2b4613ab831d602

Looks great!

Refractor of CLI in #128


[TF][RELAY] Support for AddV2 in Relay Tensorflow frontend converter.

The AddV2 op is a stricter version of Add (it doesn't allow strings as inputs), so there should be no issue in mapping it to the add op.

@Huyuwei @FrozenGene

Thanks @fernand


r

Fixes Issue

Changes proposed

Check List (Check all the applicable boxes)

[x] My code follows the code style of this project.
[ ] My change requires changes to the documentation.
[ ] I have updated the documentation accordingly.
[x] All new and existing tests passed.
[x] This PR does not contain plagiarized content.
[x] The title of my pull request is a short description of the requested changes.

Screenshots

Note to reviewers

@Raghavendrabaheti I will close this Pull Request as given this PR and also the ones you have closed, it would be easier for you to start again.
I would suggest that you visit our QuickStart Guide in Docs and follow the steps: https://linkfree.io/docs/quickstart
You may also wish to join the EddieHub Discord and ask any questions there: https://discord.com/invite/jZQs6Wu


Standard macros reported as missing-unsafe

Hi there,
I'm using rust-analyzer (rust-analyzer 996300f4a 2021-08-23 dev) installed with the arch linux rust-analyzer package in Sublime Text 4 with the LSP package and an up to date nightly rust compiler (rustc 1.56.0-nightly (b03ccace5 2021-08-24)). Today, rust-analyzer started reporting this operation is unsafe and requires an unsafe function or block on the dbg!, eprintln! and println! (list probably not exhaustive) macros. Minimal example:
fn main() {
    dbg!(42);
}

I tried downgrading the arch package to last weeks rust-analyzer but that didn't change anything. But apparently, this has something to do with todays nightly because when using rustc 1.56.0-nightly (af140757b 2021-08-22) the issue disappears. However, running cargo check reports no issues.
I'm not quite sure, if this is the right place to report this issue, but since cargo check works fine regardless of the compiler version I thought I'd best start here. I'd be happy to provide additional information if necessary. Is there a way I can make rust-analyzer report the errors on the command line so I can exclude my editor as a potential error source?

Maybe rust-analyzer ignores #[allow_internal_unsafe]? It is used on format_args!() since https://github.com/rust-lang/rust/pull/83302.
https://github.com/rust-lang/rust/pull/83302/files#diff-7fdf8ef3b0e02b28e3caa4cc144046f9510df7c8a1f524124f4921601a3d7456R831


MicrosoftGraphOrgEntityProvider not respecting queryMode option

Expected Behavior
I expected to be able to use Microsoft Graph advanced queries when setting queryMode: advanced.
Actual Behavior
Backstage gave an error and users and groups where not ingested.
Steps to Reproduce

Install the plugin
yarn add --cwd packages/backend @backstage/plugin-catalog-backend-module-msgraph

Configure the microsoftGraphOrg in app-config.yaml.
catalog:
  providers:
    microsoftGraphOrg:
      default:
        tenantId: ${AZURE_TENANT_ID}
        queryMode: advanced
        user:
          filter: >
            accountEnabled eq true
            and userType eq 'member'
            and startsWith(officeLocation, 'REDACTED')
            and not startsWith(displayName, 'REDACTED')
        group:
          filter: >
            securityEnabled eq true
            and onPremisesSyncEnabled eq null
            and not (groupTypes/any(c:c+eq+'DynamicMembership'))
        rules:
          - allow: [User, Group]

Configure the catalog to use the provider in packages/backend/src/plugins/catalog.ts
builder.addEntityProvider(
  MicrosoftGraphOrgEntityProvider.fromConfig(env.config, {
    logger: env.logger,
    schedule: env.scheduler.createScheduledTaskRunner({
      frequency: { hours: 1 },
      timeout: { minutes: 50 },
      initialDelay: { seconds: 15}
    }),
  }),
);

Start backstage
yarn dev

Context

We are trying to build a catalog of users and groups. Azure AD contains a lot of users and groups that are not relevant to keep in backstage.
Stacktrace and error message:
[1] 2022-09-10T10:18:24.733Z catalog info Reading msgraph users and groups type=plugin class=MicrosoftGraphOrgEntityProvider taskId=MicrosoftGraphOrgEntityProvider:default:refresh taskInstanceId=27d61136-aae4-48e7-a52d-467fe08f76ca
[1] 2022-09-10T10:18:25.222Z catalog error Error while reading users from Microsoft Graph: Request_UnsupportedQuery - Unsupported Query. type=plugin class=MicrosoftGraphOrgEntityProvider taskId=MicrosoftGraphOrgEntityProvider:default:refresh taskInstanceId=27d61136-aae4-48e7-a52d-467fe08f76ca stack=Error: Error while reading users from Microsoft Graph: Request_UnsupportedQuery - Unsupported Query.
[1]     at MicrosoftGraphClient.handleError (/backstage/node_modules/@backstage/plugin-catalog-backend-module-msgraph/dist/index.cjs.js:191:11)
[1]     at processTicksAndRejections (node:internal/process/task_queues:96:5)
[1]     at async MicrosoftGraphClient.requestCollection (/backstage/node_modules/@backstage/plugin-catalog-backend-module-msgraph/dist/index.cjs.js:68:9)
[1]     at async MicrosoftGraphClient.getUsers (/backstage/node_modules/@backstage/plugin-catalog-backend-module-msgraph/dist/index.cjs.js:127:5)
[1]     at async readMicrosoftGraphUsers (/backstage/node_modules/@backstage/plugin-catalog-backend-module-msgraph/dist/index.cjs.js:440:20)
[1]     at async readMicrosoftGraphOrg (/backstage/node_modules/@backstage/plugin-catalog-backend-module-msgraph/dist/index.cjs.js:736:40)
[1]     at async MicrosoftGraphOrgEntityProvider.read (/backstage/node_modules/@backstage/plugin-catalog-backend-module-msgraph/dist/index.cjs.js:854:31)
[1]     at async TaskWorker.fn (/backstage/node_modules/@backstage/plugin-catalog-backend-module-msgraph/dist/index.cjs.js:896:13)
[1]     at async TaskWorker.runOnce (/backstage/node_modules/@backstage/backend-tasks/dist/index.cjs.js:289:7)
[1]     at async /backstage/node_modules/@backstage/backend-tasks/dist/index.cjs.js:242:31

Your Environment

Browser Information:

Output of yarn backstage-cli info:

yarn run v1.22.19
$ /Users/niels.hagen/code/work/backstage/backstage/node_modules/.bin/backstage-cli info
OS:   Darwin 21.6.0 - darwin/arm64
node: v16.17.0
yarn: 1.22.19
cli:  0.18.1 (installed)
backstage:  1.5.1

Dependencies:
  @backstage/app-defaults                          1.0.5
  @backstage/backend-common                        0.15.0
  @backstage/backend-plugin-api                    0.1.1
  @backstage/backend-tasks                         0.3.4
  @backstage/catalog-client                        1.0.4
  @backstage/catalog-model                         1.1.0
  @backstage/cli-common                            0.1.9
  @backstage/cli                                   0.18.1
  @backstage/config-loader                         1.1.3
  @backstage/config                                1.0.1
  @backstage/core-app-api                          1.0.5
  @backstage/core-components                       0.11.0
  @backstage/core-plugin-api                       1.0.5
  @backstage/errors                                1.1.0
  @backstage/integration-react                     1.1.3
  @backstage/integration                           1.3.0
  @backstage/plugin-api-docs                       0.8.8
  @backstage/plugin-app-backend                    0.3.35
  @backstage/plugin-auth-backend                   0.15.1
  @backstage/plugin-auth-node                      0.2.4
  @backstage/plugin-catalog-backend-module-msgraph 0.4.1
  @backstage/plugin-catalog-backend                1.3.1
  @backstage/plugin-catalog-common                 1.0.5
  @backstage/plugin-catalog-graph                  0.2.20
  @backstage/plugin-catalog-import                 0.8.11
  @backstage/plugin-catalog-node                   1.0.1
  @backstage/plugin-catalog-react                  1.1.3
  @backstage/plugin-catalog                        1.5.0
  @backstage/plugin-github-actions                 0.5.8
  @backstage/plugin-org                            0.5.8
  @backstage/plugin-permission-common              0.6.3
  @backstage/plugin-permission-node                0.6.4
  @backstage/plugin-permission-react               0.4.4
  @backstage/plugin-proxy-backend                  0.2.29
  @backstage/plugin-scaffolder-backend             1.5.1
  @backstage/plugin-scaffolder-common              1.1.2
  @backstage/plugin-scaffolder                     1.5.0
  @backstage/plugin-search-backend-module-pg       0.3.6
  @backstage/plugin-search-backend-node            1.0.1
  @backstage/plugin-search-backend                 1.0.1
  @backstage/plugin-search-common                  1.0.0
  @backstage/plugin-search-react                   1.0.1
  @backstage/plugin-search                         1.0.1
  @backstage/plugin-tech-radar                     0.5.15
  @backstage/plugin-techdocs-backend               1.2.1
  @backstage/plugin-techdocs-module-addons-contrib 1.0.3
  @backstage/plugin-techdocs-node                  1.3.0
  @backstage/plugin-techdocs-react                 1.0.3
  @backstage/plugin-techdocs                       1.3.1
  @backstage/plugin-user-settings                  0.4.7
  @backstage/release-manifests                     0.0.5
  @backstage/test-utils                            1.1.3
  @backstage/theme                                 0.2.16
  @backstage/types                                 1.0.0
  @backstage/version-bridge                        1.0.1
Done in 0.38s.

@pjungermann do you want to take a quick look at this :praY:

The code itself looked fine but I can confirm the bug. I found a regression at the new config structure provided by readProviderConfigs at config.ts. The legacy config structure as support by readMicrosoftGraphConfig contains it. The queryMode config option was missed.
It can be fixed easily. @nhhagen do you want to give it a try? see lines 176..183 at the legacy function which need to added to readProviderConfigs and queryMode added to the returned object similar like at line 213.
I could take care of it, too. I'm working on something else right now though and would rather complete that first.

@pjungermann I gave it a shot. Thanks for the guidance.


RakelD(LabelPowerset(base_clf)) or RakelD(base_clf)?

I am wondering whether I should put a LabelPowerset() function to wrap the base classifier. I see both cases here with RakelD and here with LabelSpacePartitioningClassifier.
As what I found earlier, RakelD, RakelO and  LabelSpacePartitioningClassifier cannot directly work with some classifiers (e.g. GaussianNB, MultinomialNB) here because these base classifiers only take y with one dimension. LabelPowerset is required.
However, I found they all directly work with DecisionTree and RandomForest because the fit and predict functions can take y with two dimensions [n_samples, n_outputs]. But I found the results are different depending on whether I put LabelPowerset around the tree classifier.

I honestly don't know about LabelSpacePartitioningClassifier, but from the doc it reads like it's another approach as just LP with a base classifier, hence the different performance.
As per the rakel paper:

A less common problem transformation method considers each different sub-
set of L as a single label. It so learns one single-label classifier
h:X → P(L), where P(L) is the powerset of L, containing all possible label subsets. We will
refer to this method as Label Powerset (LP) learning. LP has the advantage of
taking label correlations into account, but suffers from the large number of label
subsets, the majority of which are associated with very few examples.
This paper proposes an approach that constructs an ensemble of LP classi-
fiers. Each LP classifier is trained using a different small random subset of the
set of labels. The proposed approach, dubbed RAKEL (RAndom k-labELsets),
aims at taking into account label correlations and at the same time avoiding
the aforementioned problems of LP. Ensemble combination is accomplished by
thresholding the average zero-one decisions of each model per considered la-
bel. The paper investigates the issue of selecting appropriate parameters (subset
size, number of models, threshold) for RAKEL through an experimental study
on three domains concerning protein, image and document classification. Results
of performance comparison against the BR and LP methods are in favor of the
proposed approach.

A while ago the classifiers that work on label subspaces, such as rakel and others, where changed to a unified approach via  LabelSpacePartitioningClassifier, as far as I can see. I don't know about using it directly, but you're using it whilst using rakel-o/rakel-d.
I had a quick glance at the code and it seems the LabelPowerset, which ought to be part of rakel, was lost or deliberately cleared to allow more freedom. So from my understanding the rakel classifiers ought to be used with LabelPowerset(BaseClassifier()).

Closing in favor of #82.


enhancement - refactor global constants to unify variables across classes

problem is -
sample code has variables flying everywhere
FOUNDATION_EXPORT AWSRegionType const CognitoRegionType;
FOUNDATION_EXPORT NSString *const CognitoIdentityPoolId;
FOUNDATION_EXPORT NSString *const DeviceTokenKey;
FOUNDATION_EXPORT NSString *const CognitoDeviceTokenKey;
FOUNDATION_EXPORT NSString *const CognitoPushNotification;
FOUNDATION_EXPORT NSString *const DeveloperAuthAppName;
FOUNDATION_EXPORT NSString *const DeveloperAuthEndpoint;
FOUNDATION_EXPORT NSString *const DeveloperAuthProviderName;
it would be best to wrap into a struct of some sort - then when the code references these variables - they will be unified.
Cognito.clientId
Cognito.regionType
struct Cognito {
static let clientId:String = "test" // AWS -> ctest4 -> App Integration / App client settings
static let CognitoIdentityUserPoolAppClientSecret:String =  "" // not configured nor used - nor known - should be nil
static let AWSCognitoUserPoolsSignInProviderKey:String = "UserPool"

static let regionType: AWSRegionType = AWSRegionType.APSoutheast2
static let poolId = "ap-southeast-2"  // general settings / Pool Id
static let identityPoolId = "ap-southeast-2:1234"
static let identityPoolRegion: AWSRegionType = Cognito.regionType

}

probably better to read from the plist

@johndpope
Thank you for your feedback. I've added this request to our backlog and will wiyh work our team to get it prioritized.


Not pulling roles

Not sure what I've done, but the API isn't pulling discord roles and assigning perms as I installed it perfectly fine and if I give it to myself via steam and FiveM identifiers it ofc works

Ignore, I just did a stupid. Love the scripts.


Extract view and calc logic into their own .js files

Extract logic into calc.js to allow for easier expansion to future calling to RESTful API instead of internal logic, standalone Node running, including foo.test.js
Extract view.js all the UI logic, so future can be converted into Angular2 (maybe after writing React simplest-possible proof-of-concept)
Unsure if any remaining JS exists to be extracted that isn't calculation logic or the UI?

UMD wrapper for calculate function, so can use via require("./calc.js") inside new file calc.test.js
Had to move most of the functions into individual .props attached to the calculate function, so the baseline could be set it calc.js and then overridden in browser.js (loaded later, via defer).
Renamed view.js to browser.js, because yes it does seem that all non-calculation logic is basically browser-specific things.
After Node args reading (Issue #3), likely shouldn't require any other "special" functionality for the final step -- switching to fetching result via external API


Handlebars - if tags are broken when using helper with textarea

Description
Ran this on a legacy codebase and ran into this issue whenever textarea is used.
Input
The code looked like this before beautification:
{{textarea value=someContent}}

{{#if condition}}

{{helper "hello"}}{{helper "world"}}

{{/if}}

Expected Output
The code should have looked like this after beautification:
{{textarea value=someContent}}

{{#if condition}}

{{helper "hello"}}{{helper "world"}}

{{/if}}

Actual Output
The  code actually looked like this after beautification:
{{textarea value=tweetContent}}

{{#if conditioncondition

{{helper "hello"}}{{helper "world"}}

{{/if}}

Steps to Reproduce
Environment
OS: macOS
js-beautify: rc5
Settings
Example:
js-beautify -r -s=2 --wrap_line_length=150 --type=html --indent_handlebars fileName

Fixing ASAP.

Fixed in and released in 1.8.0-rc6.


Implement the close button for the leaf panels

logic of the functionality, along with the placement and dimensions of the icon are on this figma page and can be inspected here
The icon is taken from phosphor icons

included in #130


Allows special characters #,L,W,?

I need to run something like
"0 12 ? * 6#1"
# Every month on the first Friday of the Month, at noon

in the datetime. This is not supported by the current REGEX. So, I am sending a PR to add the support.
Thank you.
Reference: https://www.netiq.com/documentation/cloud-manager-2-5/ncm-reference/?page=/documentation/cloud-manager-2-5/ncm-reference/data/bexyssf.html

My mistake ? L W and # are Non-standard characters not supported by most crons. I am sorry to have sent this PR.

My mistake ? L W and # are Non-standard characters not supported by most crons. I am sorry to have sent this PR.


Change plek service content store uri

Description
This PR changes the plek service content store uri from [1] to [2]
This is becuase [1] returns GdsApi::HTTPUnauthorized response when
smartanswers tries to use the content store from heroku, but at the
moment [2] appears to grant access to the content store.
[1]  https://www-origin.integration.publishing.service.gov.uk/api/
[2]  https://www.gov.uk/api/

👍


⚠ Bofrost.fr has degraded performance

In 3bd1e8c, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 1019 ms

Resolved: Bofrost.fr performance has improved in cbb77b1.


wiki points to IP address instead of mirror

Describe the bug
The bug is that the compilation recipe for CentOS 7 suggests installing an RPM from a specific IP address:
yum install ftp://<IP_ADDRESS>/linux/fedora/linux/updates/23/x86_64/b/bison-3.0.4-3.fc23.x86_64.rpm
From a security standpoint this is very questionable.
Secondly, from Issue #907 it appears that the reliance on bison 3.0.4 might only be for users who wish to "change the parser". I don't know what that means but if it is not necessary for mod_sec to function then the first line, which already installs the repository-version of bison is much safer and the above line can be removed.
If 3.0.4 is required then maybe just say so and post a link to:
http://www.rpmfind.net/linux/rpm2html/search.php?query=bison

@picklesrein,
Thanks for your contribution. We updated the URLs due to this report and the fact that some of those packages are now considered "archive" and at a different URL (see README).
But please bear in mind that these compilation recipes are submitted by our community users such as the case for MacOSX recipe submitted at #1907. When feasible, we do test them before adding to community recipes, but users are recommended always to take precautions since the level of vetting of these recipes are different than, for instance vetting a pull request for changes to the actual ModSecurity code.
In this case I believe users shouldn’t be too concerned as the <IP_ADDRESS> IP address corresponds to fr2.rpmfind.net, an official CentOS RPM repository mirror.
Feel free to propose further improvements to the compilation recipes and we'll be happy to accept them.
Thanks!


feat: MFA (WebAuthn)

What kind of change does this PR introduce?
We introduce MFA (WebAuthn) to allow developers to enroll a WebAuthn factor. This includes YubiKeys, Chrome, Passkeys and most FIDO2 compliant authenticators.
Frontend bindings:
How it works
This is and additive change - there should be no impact on the existing flow unless one specifies {'factor_type': 'webauthn'} in the request body.
Key Details
TBD
Configuration
The feature is disabled by default and controlled by the ENROLL_ENABLED and VERIFY_ENABLED toggles
Integration with Hooks
TBD
Security Concerns
TBD

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

7 of 238 (2.94%)  changed or added relevant lines in 5 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.9%) to 57.138%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

internal/models/factor.go
0
16
0.0%

internal/models/challenge.go
0
20
0.0%

internal/models/user.go
0
21
0.0%

internal/conf/configuration.go
1
23
4.35%

internal/api/mfa.go
6
158
3.8%

Totals

Change from base Build<PHONE_NUMBER>2:
-0.9%

Covered Lines:
8821

Relevant Lines:
15438

💛  - Coveralls

Let's rename the title to WebAuthn, not FIDO2.

This PR is on pause for now, as we wish to re-discuss the interface and client library bindings among other things. Please circle back in a few weeks if you are a community member following this PR.

As per internal discussion we're going to close this PR and open a new PR with some tweaks


Update the GCF runtime versions.

Upgrade the GCF dependencies.
Fixes #642.
cc/ @meltsufin

Oops. doesn't build on master
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project spring-cloud-function-adapter-gcp: Compilation failure
[ERROR] /Users/ozhurakousky/dev/repo/spring-cloud-function/spring-cloud-function-adapters/spring-cloud-function-adapter-gcp/src/main/java/org/springframework/cloud/function/adapter/gcp/FunctionInvoker.java:[24,34] cannot access com.google.cloud.functions.Context
[ERROR]   bad class file: /Users/ozhurakousky/.m2/repository/com/google/cloud/functions/functions-framework-api/1.0.3/functions-framework-api-1.0.3.jar(com/google/cloud/functions/Context.class)
[ERROR]     class file has wrong version 55.0, should be 52.0
[ERROR]     Please remove or make sure it appears in the correct subdirectory of the classpath.
[ERROR]
[ERROR] -> [Help 1]
[ERROR]

Interesting. Seems like the Google Cloud Function framework is targeting java 11 and no longer supports Java 8. https://github.com/GoogleCloudPlatform/functions-framework-java/issues/55
However it looks like the Spring Cloud Function CI runs on Java 8.
Hmm. @meltsufin @olegz -- Any thoughts on how to proceed? If you would let us, I would be open to contributing to the project's travis CI config to making testing possible.

Right, I think the adapter for GCP can only target Java 11+ at this point.
@olegz What are our options to move forward?

@meltsufin Unfortunately we can't fully migrate to newer Java until bot does, so we need to be Java 8 compatible

I see. I will ask around more and do some more research to see how we can make this work. Right now the position on making GCF java11-only seems fairly firm: https://github.com/GoogleCloudPlatform/functions-framework-java/issues/55#issuecomment-684073317


[BUG] The "save" text on the button isn't shown after editing the profile

the "save" text on the button isn't shown after editing the profile
Reproduced on web-only (Safari, Chrome)
Environment: DEV and QA 1.40.1-1
Attachments:
https://app.birdeatsbug.com/workspaces/7ce1bd50-c755-4b2d-89b8-62a480984405/sessions/QY697MJkdOLPOPSTnMK9uXhvyCDXwYE4VaY0Rf-vuNaN

@roma-hladilka fixed.
https://app.birdeatsbug.com/sessions/XGPR7H0J2CmW0BoFq3d_1rW6JiL71NRc71Dg_QVV4fjd


add support for powershell

This pull request adds support for PowerShell.
Logo was derived and modified from the existing zsh.ascii file. I'm not totally in love with the ASCII art but can't quite pin down what could improve it.

:thinking: Perhaps you could use white text for the >_ to make it a bit more distinct from the zsh logo and closer to the PowerShell logo. What do you think?

@spenserblack I made some changes to powershell.ascii to add white for the >_ and switched up the characters being used (nothing really seemed to go well with # that was being used for the background). I think it looks a bit better now.

To be even closer to the original design, we may want to "lean" toward smth like that:

{0}         ########################
{0}        ####{1}###{0}#################
{0}       ######{1}###{0}###############
{0}      ########{1}###{0}#############
{0}     ##########{1}###{0}###########
{0}    #########{1}###{0}############
{0}   ########{1}###{0}#############
{0}  #######{1}###{0}##############
{0} ######{1}###{0}#####{1}######{0}####
{0}########################

What do you think @dxking ?

To be even closer to the original design, we may want to "lean" toward smth like that:

{0}         ########################
{0}        ####{1}####{0}################
{0}       ######{1}####{0}##############
{0}      ########{1}####{0}############
{0}     ##########{1}####{0}##########
{0}    #########{1}####{0}###########
{0}   ########{1}####{0}############
{0}  #######{1}####{0}#############
{0} ######{1}####{0}#####{1}######{0}###
{0}########################

What do you think @dxking ?

@o2sh Yeah, that looks great! I can get powershell.ascii updated with that design, thanks!

Updated to use your suggested ASCII art.


IDVA5-1502 add nav bar

Short description outlining key changes/additions

Updated the sign out bar to the common CH navigation bar
Updated the auth middleware to make a user log in before reaching the landing page
Updated verification api post call to include the logged in users CHS ID instead of hardcoded test value.

JIRA Ticket Number
IDVA5-1502

CI: No security warnings found


Bypass Commit Modal Config

Closes: https://github.com/near/near-discovery/issues/787

Implements new ENV variables to configure the new VM feature commitModalBypass: https://github.com/NearSocial/VM/pull/160
These ENV variables have been added to Vercel for all environments and examples added to 1Password and .env.example
For now, I've set up our ENV variables to bypass the modal on all components published by near, discom.testnet, and discom-dev.testnet.

Needing to wait until my VM PR is merged and released and update our dependencies to use the new VM version. After that, this will be good to merge.
UPDATE: We merged the VM PR into dev so that we can preview it here. I've temporarily pointed our package.json to the dev branch.

Opened up a release PR to publish VM 2.5.4: https://github.com/NearSocial/VM/pull/164

@charleslavon Got the official VM 2.5.4 version released and installed. The PR is ready for final testing and approval whenever we feel comfortable.


LaTeX formulae are not rendered

reported on Linux Mint

rebuilt binary and now everything seems to work fine on Ubuntu


APP-482: [C] cc32xx GPIO demo C client app

NOTE: This replaces #479
/cc @Slash32 @vadimol

@kaa-leeroy test this fully please

The PR becomes obsolete with #518 which is a re-based version of the same change.


'NoneType' object has no attribute 'context' when executing chalice deploy

While executing:
chalice deploy --no-autogen-policy --stage beta
I get this error: 'NoneType' object has no attribute 'context'
I have narrowed it down to a single line of code in my application.
def param_value(name):
    stage = app.current_request.context['stage']
    return stage_param_value(stage, name)

If I comment out the line that retrieves the stage from the current_request and replace it with
stage = 'beta'

then chalice deploy executes successfully.

Sorry, I should have mentioned earlier, I am using chalice 0.9. I have seen the same behavior in Python 2.7 and 3.6.

I believe what's happening is that the app.current_request.context['stage'] is pulled from the current inflight request, so if param_value() is called outside of a request (say as part of module initialization), then current_request will be set to None.  A few actions I see:

Look into a better error message when app.current_request is being accessed outside of a request
Expose the current stage we're deploying to via some other mechanism.  We know at deploy-time what the current stage is.  We could consider setting something like app.config.stage.
Look into better initialization hooks.  There's an issue about this: https://github.com/awslabs/chalice/issues/238, but because there's no official way of initializing a lambda function outside of module level execution, there's not a good way to separate app initialization code that you don't want run as part of a deploy (assuming that's the case here).

That makes sense for my problem. I like the second option, that would solve it nicely for me.


Removing unused scm methods for usernames and clone urls.

Resolves #827, #828, #829.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.07%) to 27.448%

Totals

Change from base Build<PHONE_NUMBER>:
0.07%

Covered Lines:
2983

Relevant Lines:
10868

💛  - Coveralls


RELEASE: v.0.1.0-alpha.42

Coverage remained the same at 100.0% when pulling 6d58a06d2442a595da126713667b4f81eed609d9 on dev into 7d6037b197581aa7a5d55545cbec906b92fb7fe7 on master.


Add rubico

By submitting this pull request, I promise I have read the contribution guidelines twice and ensured my submission follows it. I realize not doing so wastes the maintainers' time that they could have spent making the world better. 🖖
⬆⬆⬆⬆⬆⬆⬆⬆⬆⬆
rubico is a robust, highly optimized syntax for async agnostic functional programming in JavaScript. async agnostic for rubico means you can pass in synchronous functions or asynchronous functions to rubico methods with reasonable behavior. For example, rubico's map will return a synchronous value when used with the synchronous square, but returns a Promise when used with the asynchronous asyncSquare
const square = x => x ** 2

const asyncSquare = x => Promise.resolve(x ** 2)

const { map } = rubico

map(
  square,
)([1, 2, 3, 4, 5]) // > [1, 4, 9, 16, 25]

map(
  asyncSquare,
)([1, 2, 3, 4, 5]) // > Promise { 1, 4, 9, 16, 25 }

for rubico, performance and interface are king. rubico is highly expressive, yet takes care that it does not leak memory. rubico does not have any physical dependencies, but the more complex asynchronous algorithms are heavily advised by stackoverflow. For example, the map.pool implementation is heavily advised by this question
Thank you for your consideration.
https://github.com/a-synchronous/rubico/

Thanks for the suggestion, but I think this might be a better fit for https://github.com/sorrycc/awesome-javascript
The functional list here is just a small selection of the most popular ones as it's not directly related to Node.js.


Translate the Syntax Reference Page to Spanish

Best regards.
I share a Spanish translation that I made from the Ficdown reference page.
https://byfernanz.github.io/textalab/manuales/manual-de-ficdown.html

This is awesome! I added a link to this from the reference on ficdown.com (and added links to your other tools to a new section on the "Write" page).


Errors when running DomainIndependentModel

Run Lab_Web_Service_KMeans.ipynb, the server successfully started.
Run class com.lab.model.DomainIndependentModel, expected result: title/prose-segmented output file is generated.

public static void performClustering() prints 0 and the following errors are generated.
Exception Encountered during Predict
Server returned HTTP response code: 500 for URL: http://localhost:12007/predict/5%7C1

The server (in the python notebook) prints errors:
...
Traceback (most recent call last):
  File "/Users/a/miniconda3/lib/python3.7/site-packages/bottle.py", line 862, in _handle
    return route.call(**args)
  File "/Users/a/miniconda3/lib/python3.7/site-packages/bottle.py", line 1742, in wrapper
    rv = callback(*a, **ka)
  File "<ipython-input-8-c0e00c2e0481>", line 12, in predict
    prediction = predict_label(X1=X1, X2=X2)
  File "<ipython-input-5-2025219ee135>", line 6, in predict_label
    model = pickle.load(open('temp.pkl', 'rb'))
FileNotFoundError: [Errno 2] No such file or directory: 'temp.pkl'
<IP_ADDRESS> - - [31/Oct/2019 17:23:27] "GET /predict/123%7C39 HTTP/1.1" 500 758

he perform_clustering method in Lab_Web_Service_KMeans.ipynb creates the kmeans model and dumps it in .pkl format. Please check if you have that file.

Lab_Web_Service_KMeans.ipynb calls perform_clustering() without any argument so perform_clustering(path='./try.csv', n_clusters=2, sep='|') looks for try.csv. However, as reported in issue #1, DomainIndependentModel.java does not generate any file called try.csv. Therefore, the program does not work at all.

Hi I would say that ./try.csv is missing. Could you recall where this csv file is to make this project run?


fix: get rid of RUSTSEC-2020-0071

Summary of changes
Changes introduced in this pull request:

fix RUSTSEC-2020-0071 by removing<EMAIL_ADDRESS>from chrono and pbr
remove RUSTSEC-2022-0040 from cargo audit ignore list as it's no longer valid

Reference issue to close (if applicable)

Closes https://github.com/ChainSafe/forest/issues/2250
Other information and links

Hmm, it seems that pbr is not maintained anymore. We better look for alternatives.

@lemmih the latest commit to pbr repo is in July 2022, just didn't publish the new patch for some reason

@hanabi1224 Could you tracking issue for replacing pbr. It should say that we're using the git version and a new version is unlikely to be released anytime soon so we're looking for a different progress-bar crate.

@lemmih the latest commit to pbr repo is in July 2022, just didn't publish the new patch for some reason

It's been over two years since the last release. I don't think we should hold our breath.


Can't download caption

When i try to download caption noting happens, even when i try to click on the drop down button.
Aditional info
Browser: Firefox58 0b11 (64Bit)
Console log:
unreachable code after return statement                        js:64:1196

@isneezy It seems to be a bug in the Google tag-manager script and is known by Google and Firefox. Please consider downloading the latest version from: https://github.com/gielcobben/caption/releases


[en] Remove redundant feature gate introductions

Generic ephemeral volumes FEATURE STATE  shows two lines：
FEATURE STATE: Kubernetes v1.19 [alpha]
FEATURE STATE: Kubernetes v1.21 [beta]

In general, it displays only the latest version.
[en] Remove redundant feature gate introductions

/kind cleanup
/lgtm
/approve
Thanks!

/sig storage


upgraded fabric8 and jube

upgraded fabric8 and jube

Refer to this link for build results (access rights to CI server needed):
https://fabric8-ci.fusesource.com/job/fabric8-quickstarts-master-pullreq/250/
Test PASSed.


Remove blocker from magneto code

Move "blocker" related code to a new pytest plugin

we moved @pytest.mark.blocker to a new 3rd party pytest plugin pytest-blocker


[SPARK-34668][SQL] Support casting of day-time intervals to strings

What changes were proposed in this pull request?

Added new method toDayTimeIntervalString() to IntervalUtils which converts a day-time interval as a number of microseconds to a string in the form "INTERVAL '[sign]days hours:minutes:secondsWithFraction' DAY TO SECOND".
Extended the Cast expression to support casting of DayTimeIntervalType to StringType.

Why are the changes needed?
To conform the ANSI SQL standard which requires to support such casting.
Does this PR introduce any user-facing change?
Should not because new day-time interval has not been released yet.
How was this patch tested?
Added new tests for casting:
$ build/sbt "testOnly *CastSuite*"

Test build #136965 has started for PR 32070 at commit b8bfa9f.

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/41542/

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/41542/

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

Test build #136965 has finished for PR 32070 at commit b8bfa9f.

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

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

Test build #137012 has started for PR 32070 at commit 688c71b.

@cloud-fan @gengliangwang @yaooqinn @AngersZhuuuu Could you review this PR, please.

Test build #137020 has started for PR 32070 at commit 0bb44e3.

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/41590/

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/41590/

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

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/41598/

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

Test build #137012 has finished for PR 32070 at commit 688c71b.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

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

Test build #137020 has finished for PR 32070 at commit 0bb44e3.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

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

thanks, merging to master!


Feature/update TypeScript 4

Fixes #142

Codecov Report
Patch coverage: 95.45% and no project coverage change.

Comparison is base (6d7f8b9) 93.52% compared to head (f33d557) 93.52%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #143   +/-   ##
=======================================
  Coverage   93.52%   93.52%
=======================================
  Files         219      219
  Lines       14191    14192    +1
  Branches     2894     2894
=======================================
+ Hits        13272    13273    +1
  Misses        833      833
  Partials       86       86

Impacted Files
Coverage Δ

packages/actor/src/stream/index.ts
100.00% <ø> (ø)

.../graph/src/custom/valued/implementation/builder.ts
91.24% <50.00%> (ø)

...raph/src/custom/valued/implementation/non-empty.ts
90.76% <50.00%> (ø)

packages/actor/src/immer/slice-immer.ts
100.00% <100.00%> (ø)

packages/actor/src/main/generate-uuid.ts
100.00% <100.00%> (ø)

packages/actor/src/patch/slice-patch.ts
100.00% <100.00%> (ø)

packages/base/src/plain-object.ts
88.88% <100.00%> (ø)

packages/deep/src/match.ts
100.00% <100.00%> (ø)

...es/graph/src/custom/valued/implementation/empty.ts
95.34% <100.00%> (ø)

...es/hashed/src/map-custom/implementation/builder.ts
97.90% <100.00%> (ø)

... and 5 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

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


media.ccc.de enhancements

Before submitting a pull request make sure you have:

[x] At least skimmed through adding new extractor tutorial and youtube-dl coding conventions sections
[x] Searched the bugtracker for similar pull requests
[x] Checked the code with flake8

In order to be accepted and merged into youtube-dl each piece of code must be in public domain or released under Unlicense. Check one of the following options:

[x] I am the original author of this code and I am willing to release it under Unlicense (commit 2)
[x] I am not the original author of this code but it is in public domain or released under Unlicense (commit 1 was taken from #14601 and improved)

What is the purpose of your pull request?

[ ] Bug fix
[x] Improvement
[ ] New extractor
[ ] New feature

Description of your pull request and other information
This refreshes the playlist support from #14601 and adds a test for it. Additionally, it adds the persons from the media.ccc.de to the creator metafield (merged with ,  if there are multiple)

Dammit, encoding 🤦♂

@dstftw Can you take a look again?


TypeError: client.onGlobalParicipantsChanged is not a function

TypeError: client.onGlobalParicipantsChanged is not a function
at start (C:\Users*\Downloads\Compressed\whatsapp-bot-master\index.js:24:16)
at C:\Users*\Downloads\Compressed\whatsapp-bot-master\index.js:51:21
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:93:5)

nevermind dah fix

deixa pra lá, consertar

could you tell me how?


Page unresponsive

Challenge Name

https://www.freecodecamp.org/challenges/sum-all-odd-fibonacci-numbers
Issue Description
I was trying to solve this challenge, wrote some bad code, and the tab became unresponsive. The worst part of it is that every time I load fCC page, this page loads and freezes, so I can not delete the code. How do I get fCC to work again? Restarting browser, logging out/in, and restarting the computer does not seem to help - still getting the same page with my deadly code.
Browser Information

Chrome:
Operating System: OS X EL Capitan 10.11.5
Desktop

Your Code

Screenshot

Looks like you started an infinite loop.
To prevent the page from auto-running the code, thus make it unresponsive try to add
?run=disabled at the end of the url.
other solutions can be found here:
https://forum.freecodecamp.org/t/free-code-camp-infinite-loop-protection/19550
Hope it helps 👍

Thanks @Marmiz , @juliativas please follow the steps as mentioned above.


Tcl notifier thread not killed at end of program

Original author: Jim Phillips (@jcphill)
Original issue: https://charm.cs.illinois.edu/redmine/issues/847

Hangs at end of NAMD run built on multicore-linux64-iccstatic with Tcl inside gdb:
[Partition 0][Node 0] End of program
^C[Thread 0x7ffff7fbce20 (LWP 170679) exited]
Program received signal SIGINT, Interrupt.
[Switching to Thread 0x7ffff1cd3700 (LWP 170750)]
0x000000301e0e15e3 in select () from /lib64/libc.so.6
Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.132.el6.x86_64 libgcc-4.4.7-4.el6.x86_64 libstdc++-4.4.7-4.el6.x86_64
(gdb) where
#0  0x000000301e0e15e3 in select () from /lib64/libc.so.6
#1  0x00000000011b5bc4 in NotifierThreadProc ()
#2  0x000000301e4079d1 in start_thread () from /lib64/libpthread.so.0
#3  0x000000301e0e8b6d in clone () from /lib64/libc.so.6

Original author: Jim Phillips (@jcphill)
Original date: 2015-09-25 17:44:52

This is caused by the fix for "Bug #671: segfault at exit in multicore build", (actually the fix for bug #761) which calls pthread_exit() instead of exit().

Original author: Jim Phillips (@jcphill)
Original date: 2015-09-25 18:19:00

Fixed in NAMD by calling Tcl_Finalize() (on pe 0 only) before CkExit().

Original date: 2015-11-11 03:10:23

Was fixed in application code, so shouldn't appear in Charm++ notes/reports.


Add flyte-data-config ConfigMap to sandbox kustomization

I've been playing with raw containers and this seemed to be missing piece to run the flytecopilot container successfully.

@sbrunk Thank you so much, awesome!. Ya CoPilot is not yet announced feature - but you have dug it out :)

you have to run make kustomize

Oh I just wanted to try the test workflows and sample notebooks I found when looking into flytekit :)
I've updated my branch with the generated yaml. The kustomize and diff check passes now.


Enable usage of open source DBMS solutions

We should, due to upcoming containerisation needs, enable the usage of open-source DBMS solutions such as

[x] PostgreSQL
[x] check with database architecture roadmap
required in #12

Already available / usable in house

MySQL
neo4j
solr

Open source DBMS solutions are already usable within our corporate infrastructure.

It'd be probably pretty useful knowing how to start and what's currently possible - filed a gold-card for that: https://github.com/baloise/goldcards/issues/4


Fix broken link to Ingress API

Fix the link to the Ingress API which still had a wrong apiVersion

/hold for another review from sig docs

/lgtm
/approve
Thanks @tom1299
Leaving the hold in place, for a different reason: the website is currently frozen, and I'd prefer to unhold this after the rush of post-release changes have gone through.

/hold cancel


Project transfer approval: rekor-search-ui

Chainguard have offered to donate their rekor-search-ui project to Sigstore. This issue is to enable the TSC to vote on accepting the repo transfer.
cc @lukehinds @priyawadhwa @bobcallaway @SantiagoTorres

+1 and thank you CG.

+1

+1!


Bump trim-newlines

Description
What does this PR do?
This bumps trim-newlines from 1.0.0 to latest (4.0.2)
How to test
What are the steps to reproduce the issue or verify the changes?
Ensure the app and tests run as expected.

Good catch, @bnussman – I pushed up a fix.


Update keyof tests to reflect #12425

#12425 removed number from the union type constituting keyof T, but the comments in the test cases still had number as a possible type. This PR changes the comments in the tests so they match the actual behavior.
It also adds a test that numeric index signatures:
keyof NumericallyIndexed<Shape> // checks that this is never
type NumericallyIndexed<T> = { [x: number]: T };

Hi @ethanresnick, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
The agreement was validated by Microsoft and real humans are currently evaluating your PR.
TTYL, MSBOT;

thanks!


How to handle component activeness for implementations with ONLY a loose material?

When encoding an implementation that contains only a loose material, the correct way according to the spec would be to set all maps to the single_passive behavior.
But this might be a problem since clients are told to only process passive files if they are referenced. The spec needs to be adjusted to fix this or a new system must be found

The new datablock structure means that this case can no longer occur.


Add CORE as source

URL: https://api.core.ac.uk/docs/v3
Rate limits: https://api.core.ac.uk/docs/v3#section/Rate-limits
Search syntax: https://api.core.ac.uk/docs/v3#section/How-to-search

I couldn't find an endpoint for the search in the docs, but one can see one by inspecting the search page. There is the possibility of scraping the page as well... Example: https://core.ac.uk/search/?q="syndromic+surveillance"+AND+"artificial+intelligence"&page=1


Prometheus telemetry

Adds prometheus telemetry endpoint with the following metrics:

Network usage
Network cap
Connection counter, status, lifetime and outcomes
Contact status, with heartbeat monitor
Sharetoken store status

Awaiting revision.
Still requires to write a changelog.


Add Librato integration

Because #648 was created really long ago. I copied some code and adjust to new standards

Automated message from Dropbox CLA bot
@TomaszKolek, it looks like you've already signed the Dropbox CLA. Thanks!

@TomaszKolek I noticed that this merge conflicts with the (recently merged) Sentry integration, because both were adding tests at the bottom of the file.  Maybe we should standardize on the tests being alphabetized within test_hooks.py to solve that problem?

@timabbott
It's kind of solution, but might be hard to check in PRs and its easy (I think) to mistake.
I rather would go with test_hooks directory and one file per one webhook. I know that you are not believer in that kind of modularization though ;-)

re: directory, I think we will do one file per hook eventually; it's probably not crazy to do that transition now that the tests are all using a common framework and are thus fairly similar in style to each other.
It might be worth thinking about whether there are any other refactorings we want to do to how these tests are written before we do such a split, since it is a lot easier with 1 file -- do you have any ideas on that front?
Regardless, @TomaszKolek do you think I should merge this at this point?

@timabbott Hm... I'll create an issue #1777 and we can discuss it there.
Yep, I think its enough to merge so please proceed with it.

Merged, thanks @TomaszKolek!


A Solid Start - Improvements Please!

Hi there!
Thanks so much for your efforts so far.  The hint of a promise of a usable Ubuntu desktop for daily work running as a guest on a Windows host is compelling!
I've got a few issues that prevent me from adopting this as my new home:
1: No multi-monitor support.  If I choose 'use all my monitors' it crashes out.  Turning that off, it works.
2: Is there any hardware acceleration?  It seems like it's software rendering, or at least not getting full HW accel.  I'm running on a single monitor at 1920x1200 and I see tearing quite frequently when simply moving windows around etc.  Watching a YT video more clearly demonstrates the poor framerate,  I tried enabling a RemoteFX resource for the guest, but this made no difference (however I didn't change anything on the guest side)
3: No sound.  I don't get any.
Configuration:
Host: Win 10 Pro 1804 17134.1, Nvidia 1070 GPU, 16GB RAM, 2 monitors: 1x 1920x1200, 1x 1920x1080.  Core i7 2600K CPU (VTx support, no VTd).  Asus Sabertooth P67 mobo.
Guest config: Bionic final installed from ISO, 8GB ram allocated, 40GB storage on Host SSD drive (system drive)

Thanks for dropping by and submitting this feedback! This helps us navigate next steps with where users want us to take the feature, so this is very much appreciated.

My pleasure.  You should know that my small group of local hackers meetups have affectionately nicknamed this process 'X-Derping'.  We only give names to things we like :)

i am not seeing any sound or video acceleration either.
i got a gtx 1080 card. running on 4k display with 2x scaling.

Pdeva, sound & RemoteFX are not features we worked to enable in this release. Thanks for the feedback, we'll add these requests to the list.


fix spelling typo in README

I'm closing this pull request because I unintentionally included an additional commit


Geolocator and permission_hander_html web 1.0.0 temporary fix

Going to close this one, and open new one, as added permission_handler fix in flet itself.


Error in tangent tutorial notebook: "AttributeError: module 'gast' has no attribute 'Num'"

Hi i opened your tutorial notebook and run the cells in notebook. after installing tangent at cell with following code:
import tangent
df = tangent.grad(f)

the following error arises:
AttributeError                            Traceback (most recent call last)
 in ()
----> 1 import tangent
2 df = tangent.grad(f)
3 frames
/usr/local/lib/python3.6/dist-packages/tangent/grammar.py in ()
16 import gast
17
---> 18 LITERALS = (gast.Num, gast.Str, gast.Bytes, gast.Ellipsis, gast.NameConstant)
19
20 CONTROL_FLOW = (gast.For, gast.AsyncFor, gast.While, gast.If, gast.Try)
AttributeError: module 'gast' has no attribute 'Num'

This is due to incompatible dependencies. We haven't had the chance to upgrade the code. Could you try installing an older version of gast:
pip install gast==0.2.4

This is due to incompatible dependencies. We haven't had the chance to upgrade the code. Could you try installing an older version of gast:
pip install gast==0.2.4

This yield the issue:
ERROR: Could not find a version that satisfies the requirement gast==0.2.4 (from versions: 0.1, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.2.0, 0.2.1, 0.2.1.post0, 0.2.1.post1, 0.2.2, 0.3.0, 0.3.1, 0.3.2, 0.3.3, 0.4.0, 0.5.0, 0.5.1, 0.5.2, 0.5.3)
ERROR: No matching distribution found for gast==0.2.4

Looks like there's no gast 0.2.4.
Using 0.30 yields
[/usr/local/lib/python3.7/dist-packages/tangent/grammar.py](https://localhost:8080/#) in <module>()
     16 import gast
     17
---> 18 LITERALS = (gast.Num, gast.Str, gast.Bytes, gast.Ellipsis, gast.NameConstant)
     19
     20 CONTROL_FLOW = (gast.For, gast.AsyncFor, gast.While, gast.If, gast.Try)

AttributeError: module 'gast' has no attribute 'Num'

while using 0.2.2 yields
[/usr/local/lib/python3.7/dist-packages/tangent/tf_extensions.py](https://localhost:8080/#) in <module>()
     58
     59 non_differentiable.register_non_differentiable_functions(
---> 60     tf.shape, tf.to_float, tf.equal, tf.constant,
     61     tf.zeros, tf.ones, tf.zeros_like, tf.ones_like,
     62     size, shape_as_list, dtype)

AttributeError: module 'tensorflow' has no attribute 'to_float'

All these examples are from the Colab notebook. It's such a shame Tangent isn't functional anymore, it would have been pretty useful.

Odd that that version is gone. Does 0.2.2 work instead?

No, both 0.3.0 and 0.2.2 do not work. My previous comment contains errors for both versions!

That means that the code would need to be upgraded to the newest version. Not terribly difficult, it's mostly mechanical, if anyone has the bandwitdth to do it.

I took a stab at upgrading to gast 0.3.0 in smbarr/tangent-upgrade-gast
Most of the tests seem to be passing now, but I'm having a lot of trouble getting some of the tensorflow derivatives to work.
I would really like to get all the tests passing, so if anyone has an idea of how to do that I'm happy to help further. This is a really interesting and unique project which I'd hate to see die.


Tensorpack output graph format

What is the output graph format from tensorpack?
I was trying out code from https://petewarden.com/2016/05/03/how-to-quantize-neural-networks-with-tensorflow/ and I am getting errors on the input format.
bazel-bin/tensorflow/tools/quantization/quantize_graph --input=graph-0109-190626.meta --output_node_names="softmax" --output=quantized_graph.pb --mode=eightbit
Error is in
File "/home/uid/.cache/bazel/_bazel_uid/655463b6d20ac8353a5d5c1bdf71ab9c/execroot/tensorflow/bazel-out/local-fastbuild/bin/tensorflow/tools/quantization/quantize_graph.runfiles/protobuf/python/google/protobuf/internal/decoder.py", line 469, in _ConvertToUnicode
return local_unicode(byte_str, 'utf-8')
UnicodeDecodeError: 'utf8' codec can't decode byte 0x80 in position 138: 'utf8' codec can't decode byte 0x80 in position 138: invalid start byte in field: tensorflow.NodeDef.op

The xxx.meta generated by tensorpack is a MetaGraphDef protobuf.
The scripts expects a GraphDef protobuf.
You can take GraphDef from a MetaGraphDef like this:
from tensorflow.core.protobuf import meta_graph_pb2
G = meta_graph_pb2.MetaGraphDef()
data = open('input.meta.pb', 'rb').read()
G.ParseFromString(data)
G = G.graph_def
open('graph.pb', 'wb').write(G.SerializeToString())
```.

I'm not sure if it will work for the script then. I don't know what that script is doing.