New MLMM tasks

This PR adds the multilingual from https://github.com/nlp-uoregon/mlmm-evaluation/ (arc, hellaswag, mmlu, truthfulqa).
The datasets support 26 languages: Russian, German, Chinese, French, Spanish, Italian, Dutch, Vietnamese, Indonesian, Arabic, Hungarian, Romanian, Danish, Slovak, Ukrainian, Catalan, Serbian, Croatian, Hindi, Bengali, Tamil, Nepali, Malayalam, Marathi, Telugu, and Kannada.
To run these tasks, the datasets must be downloaded first by running:
# updated dataset builders
mkdir datasets
git clone https://huggingface.co/datasets/malteos/m_arc datasets/m_arc
git clone https://huggingface.co/datasets/malteos/m_hellaswag datasets/m_hellaswag
git clone https://huggingface.co/datasets/malteos/m_mmlu datasets/m_mmlu
git clone https://huggingface.co/datasets/malteos/m_truthfulqa datasets/m_truthfulqa

# ---

# original dataset builders
# full instruction: https://github.com/nlp-uoregon/mlmm-evaluation/tree/main#basic-usage
wget -r -np -nH --cut-dirs=2 --reject="index.html*" http://nlp.uoregon.edu/download/okapi-eval/datasets

All tasks:
'mlmm_arc_ar', 'mlmm_arc_bn', 'mlmm_arc_ca', 'mlmm_arc_da', 'mlmm_arc_de', 'mlmm_arc_es', 'mlmm_arc_eu', 'mlmm_arc_fr', 'mlmm_arc_gu', 'mlmm_arc_hi', 'mlmm_arc_hr', 'mlmm_arc_hu', 'mlmm_arc_hy', 'mlmm_arc_id', 'mlmm_arc_it', 'mlmm_arc_kn', 'mlmm_arc_ml', 'mlmm_arc_mr', 'mlmm_arc_ne', 'mlmm_arc_nl', 'mlmm_arc_pt', 'mlmm_arc_ro', 'mlmm_arc_ru', 'mlmm_arc_sk', 'mlmm_arc_sr', 'mlmm_arc_sv', 'mlmm_arc_ta', 'mlmm_arc_te', 'mlmm_arc_uk', 'mlmm_arc_vi', 'mlmm_arc_zh', 'mlmm_hellaswag_ar', 'mlmm_hellaswag_bn', 'mlmm_hellaswag_ca', 'mlmm_hellaswag_da', 'mlmm_hellaswag_de', 'mlmm_hellaswag_es', 'mlmm_hellaswag_eu', 'mlmm_hellaswag_fr', 'mlmm_hellaswag_gu', 'mlmm_hellaswag_hi', 'mlmm_hellaswag_hr', 'mlmm_hellaswag_hu', 'mlmm_hellaswag_hy', 'mlmm_hellaswag_id', 'mlmm_hellaswag_it', 'mlmm_hellaswag_kn', 'mlmm_hellaswag_ml', 'mlmm_hellaswag_mr', 'mlmm_hellaswag_ne', 'mlmm_hellaswag_nl', 'mlmm_hellaswag_pt', 'mlmm_hellaswag_ro', 'mlmm_hellaswag_ru', 'mlmm_hellaswag_sk', 'mlmm_hellaswag_sr', 'mlmm_hellaswag_sv', 'mlmm_hellaswag_ta', 'mlmm_hellaswag_te', 'mlmm_hellaswag_uk', 'mlmm_hellaswag_vi', 'mlmm_hellaswag_zh', 'mlmm_mmlu_ar', 'mlmm_mmlu_bn', 'mlmm_mmlu_ca', 'mlmm_mmlu_da', 'mlmm_mmlu_de', 'mlmm_mmlu_es', 'mlmm_mmlu_eu', 'mlmm_mmlu_fr', 'mlmm_mmlu_gu', 'mlmm_mmlu_hi', 'mlmm_mmlu_hr', 'mlmm_mmlu_hu', 'mlmm_mmlu_hy', 'mlmm_mmlu_id', 'mlmm_mmlu_it', 'mlmm_mmlu_kn', 'mlmm_mmlu_ml', 'mlmm_mmlu_mr', 'mlmm_mmlu_ne', 'mlmm_mmlu_nl', 'mlmm_mmlu_pt', 'mlmm_mmlu_ro', 'mlmm_mmlu_ru', 'mlmm_mmlu_sk', 'mlmm_mmlu_sr', 'mlmm_mmlu_sv', 'mlmm_mmlu_ta', 'mlmm_mmlu_te', 'mlmm_mmlu_uk', 'mlmm_mmlu_vi', 'mlmm_mmlu_zh', 'mlmm_truthfulqa_ar', 'mlmm_truthfulqa_bn', 'mlmm_truthfulqa_ca', 'mlmm_truthfulqa_da', 'mlmm_truthfulqa_de', 'mlmm_truthfulqa_es', 'mlmm_truthfulqa_eu', 'mlmm_truthfulqa_fr', 'mlmm_truthfulqa_gu', 'mlmm_truthfulqa_hi', 'mlmm_truthfulqa_hr', 'mlmm_truthfulqa_hu', 'mlmm_truthfulqa_hy', 'mlmm_truthfulqa_id', 'mlmm_truthfulqa_it', 'mlmm_truthfulqa_kn', 'mlmm_truthfulqa_ml', 'mlmm_truthfulqa_mr', 'mlmm_truthfulqa_ne', 'mlmm_truthfulqa_nl', 'mlmm_truthfulqa_pt', 'mlmm_truthfulqa_ro', 'mlmm_truthfulqa_ru', 'mlmm_truthfulqa_sk', 'mlmm_truthfulqa_sr', 'mlmm_truthfulqa_sv', 'mlmm_truthfulqa_ta', 'mlmm_truthfulqa_te', 'mlmm_truthfulqa_uk', 'mlmm_truthfulqa_vi', 'mlmm_truthfulqa_zh'

See my comments + updates. @jjbuschhoff

@jjbuschhoff HF data is no fully integrated and automatically downloaded. Can this be merged then?


download button added

I have added download button with proper styling.

consider only latest commit which is having proper styling .


Standardise dashboard date formats

Split out from the previous change to facilitate further development
Added Date format (American/European) to settings screen and standardised date formats on dashboards that show them. This gets around the fact hat some of the dashboards were using the distance unit to set the date format.
There are two exceptions to this.
Dashboard "States" - Not possible to calculate a format on the fly due to a restriction on the Stats panel in Grafana.
Dashboard "Statistics" - New variable for date_format created, however the SQL needs reviewing by somebody who understands it. Aka, not me.
Dashboard "Dutch Tax" - This uses the local setting so will always render the date in the users local format.
Once the Grafana plugins have updated fully by the Grafana team to the new standard it should be possible to use date time local for all dashboards. Based on the progress of the Grafana team this could be a while away.

Looks like the move to Grafana 7.4 removes the need for this. This can be achieved directly in the dashboards directly.


podName without ns?

Describe the bug
A clear and concise description of what the bug is.
we can have same name pod
# kubectl get pods -A | grep counter
default       counter                                    1/1     Running   1 (47h ago)   2d13h
n1            counter                                    1/1     Running   0             8s

but https://github.com/sustainable-computing-io/kepler/blob/main/pkg/collector/reader.go#L133
seems we only honor the podname , is this on purpose design?
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]

Smartphone (please complete the following information):

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]

Additional context
Add any other context about the problem here.

nice catch! This needs another checking. In an early implementation, the map is indexed by podName-namespace.

@jichenjc you like to stand up a fix and test case?

yes, I can give a try

Nice catch, we need to use maybe the pod ID instead in the pod name in the structure
Regarding the prometheus metric, it has the pod name and namespace labels

I tried to add a PR and I think the best fit would be pod ID ,but looks like we are using [1] for containerID but I think it can't be used as we are looking for podID, do we have any reference that I can steadily get a pod ID? @rootfs @marceloamaral
or I can actually use namespace/podname so it will anyway help as well (and maybe better due to smaller footprint than a long pod ID ..?
[1] https://github.com/sustainable-computing-io/kepler/blob/main/pkg/podlister/resolve_container.go#L168

@jichenjc podName is the map key, once the cGroupID/PID is resolve and ppodName is known, we don't need containerID.  If you use namespace/podname, that looks a good PodID. There is a length limit of namespace and pod name. In the very unfortunate case of long names, a SHA will be a good to go.

We could add the podID in the container info structure:
https://github.com/sustainable-computing-io/kepler/blob/main/pkg/podlister/resolve_container.go#L141
And them, we can have a function to get the podID

@marceloamaral you mean use the i https://github.com/sustainable-computing-io/kepler/blob/main/pkg/podlister/resolve_container.go#L137 to be pod id ?
I actually checked
https://github.com/sustainable-computing-io/kepler/blob/6d334c689d13cdefdee2b443e07c4a39ba8b42b8/vendor/k8s.io/api/core/v1/types.go#L3962
both PodSpec and PodStatus seems doesn't have id field can be used ..
so I will follow namespace/podname case based on @rootfs 's suggestion and update it (after our holiday).. thanks

@jichenjc Actually you can have the pod ID from the metadata as follow:
podID := (*pods)[i].ObjectMeta.UID

I think it is better to use a definitive solution that will not have any problem in the future....

ok,then this comes to uuid of the pod :) , will do a quick test, thank ~


The surrogate pair (0xD83C, 0xD83C) is invalid. A high surrogate character (0xD800 - 0xDBFF) must always be paired with a low surrogate character (0xDC00 - 0xDFFF).

When some data containts emoji, Telerik Reporting crashed on build report.

This exception appears when we switch libgdiplus from 4.2 version to 6.0.5
In dockerfile we build 6.0.5 with pango parameter:
RUN apt-get update \
    && apt-get install -y --allow-unauthenticated \
        libc6-dev \
        libgdiplus \
        libx11-dev \
        autoconf \
        libtool \
        automake \
        build-essential \
        gettext \
        libglib2.0-dev \
        libcairo2-dev \
        libtiff-dev \
        libexif-dev \
        libsdl-pango-dev
COPY src/Dpc/libs/libgdiplus-6.0.5 /tmp/libgdiplus
WORKDIR /tmp/libgdiplus
RUN chmod +x autogen.sh && ./autogen.sh --with-pango
RUN make && make install
RUN rm -rf /tmp/libgdiplus \
  && rm -rf /var/lib/apt/lists/* \
  && apt remove -y autoconf libtool automake build-essential \
  && cp /usr/local/lib/libgdiplus.so.0.0.0 /usr/lib/libgdiplus.so.0.0.0

If we comment 6.0.5 build Telerik Reporting works well but without pango reports look ugly.
We cannot determine steps to reproduce exactly for libgdiplus because we don't know which method telerik use and etc.

The bug is reproduced when the report contains emoji


Add configmap parameters for console

Signed-off-by: Chris Ahl<EMAIL_ADDRESS>For issue https://github.com/open-cluster-management/backlog/issues/12158


hitbtc v2 issue

I just noticed another problem with the hitbtc v2 implementation.  It's using the clientOrderId in the order id fields for limit orders and user trades.  This is a change from the v1 implementation and inconsistent with the rest of the implementations.
Any objection to me using the correct (exchange assigned) order id?
We could add the clientOrderId to xchange as a separate field in the future.

https://github.com/knowm/XChange/pull/2560


Rouge processes during startup/shutdown

I'm running into some tracking issues when using the shell script that is launched from the upstart job.  A similar discussion was had on the dropwizard-user google group at https://groups.google.com/d/msg/dropwizard-user/PPgqS2ZHeFg/xaBAE2HA4jQJ where the poster recommended using https://gist.github.com/sargun/5693318 instead of launching java inside of bash.
What are your thoughts on removing the shell scripts and modifying the upstart scripts in this manner?  Have you ran into these issues before?

I'm closing this as the SystemV/Upstart/SystemD code has changed a bit since 0.6, and I haven't been able to reproduce this. Please re-open if this is still an issue.


[Publisher] Certificates in formats other than jks or crt can be added.

Issue
In Endpoints page,certificates in format other than .jks or .crt can be added successfully.

duplicate https://github.com/wso2/product-apim/issues/5846


bug: Content getDimensions, gives parentElement is null in second call

Ionic version:
[ ] 1.x
[x] 2.x
I'm submitting a ...
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Current behavior:
When I create an new modal and in that window I could use scroll to bottom in the content.
When I close this windows and open it again it will then say after I call the function getDimensions:
EXCEPTION: Cannot read property 'parentElement' of null
Expected behavior:
The parentElement shouldn't be null. It works in the first place, but second call to the same modal gives this error. I expected to open a new modal everytime and after that call my getDimensions without getting error.
Relevant code:
Here is the setup:
Home.ts
import {ModalController} from 'ionic-angular';
import { Chatt } from '../chatt/chatt';
...
@Component({
  selector: 'page-home',
  templateUrl: 'home.html'
})
export class Home {
...
constructor(..., public modalCtrl: ModalController,....) {

}
...
// This is being call when I want to open the new modal for chatt everytime
openChatt() {
 let modal = this.modalCtrl.create(Chatt);
 modal.present();
}
..
}

Chatt.ts
import { NavController,.......,Content } from 'ionic-angular';
...

@Component({
  selector: 'page-chatt',
  templateUrl: 'chatt.html'
})
export class Chatt {
@ViewChild(Content) content: Content;

constructor(public navCtrl: NavController,.......) {
....
}

// Notice it doesn't matter if you doing this ngAfterViewInit() either!
ionViewDidLoad() {
 // First round works well (not perfect accurate height dimensions), second round gives the error here!
// this is used for scrolling down to the bottom of the content (see possible error taking place in ionic2 code below)
let dimensions = this.content.getContentDimensions();

}

// Also important to notice how i close the window here
public goBack() {

// This gives the same behaviour as above
this.navCtrl.pop();

// Notice: It doesn't matter either if you using dismiss with ViewController here

}
...
}

snapshot from ionic/src/components/content/content.ts
getContentDimensions(): ContentDimensions {
    const scrollEle = this._scrollEle;
    const parentElement = scrollEle.parentElement;  // <-- null here ?

    return {
      contentHeight: parentElement.offsetHeight - this.contentTop - this.contentBottom,
      contentTop: this.contentTop,
      contentBottom: this.contentBottom,

      contentWidth: parentElement.offsetWidth,
      contentLeft: parentElement.offsetLeft,

      scrollHeight: scrollEle.scrollHeight,
      scrollTop: scrollEle.scrollTop,

      scrollWidth: scrollEle.scrollWidth,
      scrollLeft: scrollEle.scrollLeft,
    };
  }

Setup package Info
Cordova CLI: 6.3.1
Ionic Framework Version: 2.0.0-rc.3
Ionic CLI Version: 2.1.12
Ionic App Lib Version: 2.1.7
Ionic App Scripts Version: 0.0.45
ios-deploy version: 1.9.0
ios-sim version: Not installed
OS: OS X Yosemite
Node Version: v6.7.0
Xcode version: Xcode 7.2.1 Build version 7C1002

I solve the problem, it was not a bug. I hasn't anything todo with ionic2 core.
But it was inflected it, when it crash.
Firstly I was connected to the firebase and the problem  when I first create an instance to an firebase  object directly after creating an modal windo.  Because when i create and listener i also forget to detach the listener refrence to the same firebase object when closing the chatt modal window. So next time the instance was already there, but it was casting an firebase error message when i wrote something to my firebase object and after that came also the suit of null instance with bottomscroll, so it looks like it was some bug with the ionic2, but it wasn't. It was always the missing part of detaching the reference of the firebase object.
Maby there are some better explanations here.


Change the pause/resume text based on rendering state

When the render is rendering, the Pause/Resume menu item
can lead to confusion as it is not clear which state the renderer
is in based on a checkbox. Does the checkbox mean that the renderer
is running, or does it mean that it is paused? This change makes it
clear which state the renderer is in. If the renderer is running
the menu item will say 'Pause Rendering', likewise if the renderer
is paused the menu item will say 'Resume Rendering'. When the rendering
is canceled or finished, the menu item will revert back to
'Pause/Resume Rendering'.

Do we need Pause/Resume Rendering? Maybe we can set Pause Rendering as default.

I think Pause Rendering as default could be confusing as it could lead people to believe that there is a render currently in process.

I agree with @mandeep  for Pause Rendering.

I guess it's possible to use Pause Rendering, but in order to do so you we would probably want to grey out the option if there is not a render in progress. I'm happy either way.

I think I would also prefer not to alter the menu item's text on the fly and just settle for
[ ] Pause Rendering

That menu item is anyway grayed out when a render is not in progress.

I'm not sure I like keeping it as Pause Rendering because then the user has to click on something that says Pause when they want to resume their render. If changing on the fly is off the table, I think we should keep it as is.

I'm not sure I like keeping it as Pause Rendering because then the user has to click on something that says Pause when they want to resume their render.

I understand your point, but if it's a checkbox, it should be pretty clear that clicking on the Pause checkbox unchecks it and thus resumes the render, no?

I'm not sure this is that obvious, but let's hope that it is. :smiley:

Ok so let's go with simply [ ] &Pause Rendering (the PR will need to be changed accordingly, it should no longer be needed to alter the item's title on the fly). It will already be an improvement over what we have right now. Thanks!


Nested gosubs bug

This is on 0.11.4
There seems to be a bug when gosubs are nested to depth 3 or higher.  Returns aren't always backing out as they should.  Consider the following code:
gosub level1
echo Done
exit

level1:
	pause 0.1
	gosub level2
	pause 0.1
	return

	echo level1 failure
	return

level2:
	pause 0.1
	gosub level3
	pause 0.1
	return

	echo level2 failure
	return

level3:
	pause 0.1
	gosub level4
	pause 0.1
	return

	echo level3 failure
	return

level4:
	pause 0.1
	gosub level5
	pause 0.1
	return

	echo level4 failure
	return

level5:
	pause 0.1
	return
	echo level 5 failure
	return

This produces the following result:

level3 failure
level2 failure
level1 failure
Done

Thanks for the report!  You may be happy to know that I've completely rewritten the script engine to fix issues such as this.  I am currently working on overhauling the text processing of highlights/triggers/substitutes.  I don't have an eta for when the text processing will be done, though you can download the beta client and try out the new script engine.
You can download the beta by changing a setting in the app.cfg file.

That's great to hear.  I'll give it a go.


[QUERY]Is the Xamarin.Forms nuget package is available to public?

Query/Question
Just want to confirm where can I find the Nuget package for the Xamarin.Form project?
Why is this not a Bug or a feature Request?
I want to use the new API in my project, but I cannot find the nuget.
Setup (please complete the following information if applicable):

OS: [e.g. iOS 13.x]
IDE : [e.g. Visual Studio 2019]
Version of the Library used

Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

[ ] Query Added
[ ] Setup information Added

Yeah, I was wondering the same thing. I cant seem to find it anywhere.

It is not available on nuget. Documentation of this repository starts clearing it as well:

This project contains Microsoft.Azure.NotificationHubs.Client, which when added to your project, provides a consistent experience across Xamarin Android and Xamarin for Apple. Either download or clone the repository and either add the source from the project to your own solution, or create a NuGet package from the source and add from a local NuGet source.

https://www.nuget.org/packages/Azure-NotificationHubs.Client.Xamarin/<IP_ADDRESS>-beta

Hey great to found this package, because Microsoft documentation is outdated...
Is it possible to release this in official nuget package, please?
@mpodwysocki, @microsoftopensource
Thx anyway for your work <3


Added ability to change text color of title and subtitle programmatically and in xml.

Hi, thanks for contributing! I really appreciate that you followed the general code format too.
One thing though, are you sure it works with setColor(int res) when you want to use a color resources? I think it should be something like setColor(context.getResources.getColor(int res)).
We don't really need to get colors from resources in ErrorView though. We could just have setColor(int color) methods and the users would get colors from resources before passing them to ErrorView.

I made some name changes and added the changes you requested.

Oh, I think I couldn't make my point clear. I think it's a better idea to use color ints directly for setColor methods. As for the reason, not always would a user want to use colors from resources. There may be cases when colors generated at runtime may be desired to be used. The methods would look like
setColor(int color) {
    mView.setTextColor(color);
}

If anyone wants to use a resource, they'd have to do something like the following:
mErrorView.setErrorTitleColor(context.getResources(getColor(R.color.some_color)));

Ok, seems good. Thanks again!

Np, happy to help


Add BoxGraph

This PR adds the BoxGraph type, which is mostly a wrapper around a TransferOperator. This really just means defining some basic functions from the Graphs.jl API. All of the algorithms in Graphs.jl should "just work", although only strongly_connected_components will return a BoxSet. Other algorithms will simply return whatever Graphs.jl returns by default, which might not make much sense. A docs page on BoxGraph would probably be enough to explain this to the user .... so long as the user reads the docs.

Ok, very nice. This is exactly how the algorithm for the recurrent set should look like.


[Fix/144] wait_for_logs working for DockerCompose

This PR adds the functionality of "wait_for_logs" for Compose containers (see this issue).
Fixed by adding method to get logs in the Generic container, similar to the one on the Compose container, then using it in the wait_for_logs method instead of going through the private attribute "_container".

@singerjess, can you update this PR? I want to merge it

@singerjess, can you update this PR? I want to merge it

Just Did! But I need someone to authorize the pipeline build

Codecov Report

Merging #149 (7fe0a6b) into master (fc5f2df) will decrease coverage by 0.43%.
The diff coverage is 71.42%.

@@            Coverage Diff             @@
##           master     #149      +/-   ##
==========================================
- Coverage   85.28%   84.84%   -0.44%
==========================================
  Files          24       24
  Lines         632      627       -5
  Branches       59       60       +1
==========================================
- Hits          539      532       -7
- Misses         75       76       +1
- Partials       18       19       +1

Impacted Files
Coverage Δ

testcontainers/core/container.py
77.65% <50.00%> (-1.23%)
:arrow_down:

testcontainers/core/waiting_utils.py
94.73% <100.00%> (ø)

testcontainers/core/generic.py
86.20% <0.00%> (-0.89%)
:arrow_down:

testcontainers/redis.py
88.88% <0.00%> (-0.59%)
:arrow_down:

testcontainers/elasticsearch.py
92.00% <0.00%> (-0.31%)
:arrow_down:

testcontainers/selenium.py
92.59% <0.00%> (-0.27%)
:arrow_down:

testcontainers/neo4j.py
93.54% <0.00%> (-0.21%)
:arrow_down:

testcontainers/kafka.py
100.00% <0.00%> (ø)

testcontainers/compose.py
100.00% <0.00%> (ø)

... and 1 more

Continue to review full report at Codecov.

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

@singerjess thank you


ng generate adds component to module even if the generated component is identical

Please provide us with the following information:

OS?

Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)

macOS Sierra
Versions.

Please run ng --version. If there's nothing outputted, please run in a Terminal: node --version and paste the result here:

angular-cli: 1.0.0-beta.28.3
node: 7.2.0
os: darwin x64
@angular/common: 2.4.5
@angular/compiler: 2.4.5
@angular/core: 2.4.5
@angular/forms: 2.4.5
@angular/http: 2.4.5
@angular/platform-browser: 2.4.5
@angular/platform-browser-dynamic: 2.4.5
@angular/router: 3.4.5
@angular/compiler-cli: 2.4.5

Repro steps.

Was this an app that wasn't created using the CLI? What change did you do on your code? etc.

Create an app with ng new
Follow these steps:
$ ng g m events
installing module
  create src/app/events/events.module.ts

$ ng g c events/list
installing component
  create src/app/events/list/list.component.css
  create src/app/events/list/list.component.html
  create src/app/events/list/list.component.spec.ts
  create src/app/events/list/list.component.ts
  update src/app/events/events.module.ts

$ ng g c events/list
installing component
  identical src/app/events/list/list.component.css
  identical src/app/events/list/list.component.html
  identical src/app/events/list/list.component.spec.ts
  identical src/app/events/list/list.component.ts
  update src/app/events/events.module.ts

$ cat src/app/events/events.module.ts
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { ListComponent } from './list/list.component';

@NgModule({
  imports: [
    CommonModule
  ],
  declarations: [ListComponent, ListComponent]
})
export class EventsModule { }

Because the last generate command generates all identical files I don't expect the update of the module to happen, as this will leave it with the same component being declared twice.
The log given by the failure.

Normally this include a stack trace and some more information.

No failures.
Mention any other details that might be useful.

Thanks! We'll be in touch soon.

Quick hint: A temporary workaround for now is:
If you know you are adding the same component again (I imagine for example you want to add a .spec or style file that you didn't generate the first time), you can use the argument --skip-import to skip adding it to module.

Can you please confirm whether this is still the case with latest version?

Great tip @Meligy .
It's the latest version angular-cli: 1.0.0-beta.28.3. Actually I just came across when testing the new release, @hansl told me to create the issue.

Oops. Sorry I read that as 20 not 28. Bad bad eyes.

use this
ng generate component menu --skip-import=true

in vs code you have terminal u can select the folder an right click on that folder an select the option from the drop down open in terminal


OpenLineage Support

Hello,
Do you have plans to support open lineage?
https://github.com/OpenLineage/OpenLineage
This project has Spark Integration and we use spark for all our pipelines, I think it is a good integration to get lineage data automatically.
Or to be simpler, integration with Marquez
https://github.com/MarquezProject/marquez

@rubenssoto would like to get more details on this. We already have lineage APIs and have integration with Airflow. We are going to improve our coverage to other services in the upcoming release.
It would be great to know if you have this integration already in your infra or are you looking into it.

@harshach we don't have integration yet, only looking into it.
I'm looking for a solution to create lineage of ours pyspark pipelines and it seems a good solution to do an "automatic" lineage creation.

@rubenssoto is your pyspark pipelines run on Airflow?
@amiorin can you start looking into what integration we can do here for spark.

 I believe this is how Monte Carlo Data Observability work.
Related links

Data lineage systems for a data warehouse

@lihan we already have BigQuery query log parsing to get the usage metrics and frequently joined with . We are going to update that to gather the lineage as well

Adding OpenLineage support would be great! Since Spark >= 3.1 has integration with OpenLineage, it would be very helpful to get what transformations are happening and have column-level lineage

OpenMetadata supports lineage beyond collecting run/job status, such as sql query analysis, pipeline service metadata (similar to OpenLineage), DBT, etc. Marking this as resolved.

@wajda I'm somewhat familiar with that project. Never got to use it though.
An integration with Open Metadata would actually be more valuable then setting up Spline (Server side), and sending the lineage info to OpenLineage.
As Taurus Le is proposing/working on: https://github.com/open-metadata/OpenMetadata/issues/1604#issuecomment-1127144525

@sureshms, I'm not sure I understand why you closed this; you commented that you support more than the open lineage does, that sounds great, how can I get spark to populate the metadata in OpenMetadata?  What connector should I use?

@calvertj we support lineage through spline connector. Please look at the docs here https://docs.open-metadata.org/v1.1.2/connectors/pipeline/spline. Do reach us out at https://slack.open-metadata.org for any questions


Add EquateParameters cmp helper

What problem are you facing?

https://github.com/crossplaneio/stack-gcp/pull/151/files?file-filters[]=.go#diff-888e0ec46a21ebd2bbdc8d86d4553d9bR92
	return cmp.Equal(in, currentParams, cmpopts.IgnoreInterfaces(struct{ resource.AttributeReferencer }{}))

We frequently use the above cmpopt when determining whether managed resources are equivalent in the IsUpToDate method of each resource's controller. The readability of this option is a little opaque in how it relates to Crossplane.
How could Crossplane help solve your problem?

Perhaps we should add a function like our existing EquateErrors that equates managed resource parameters? This could just be an abstraction on IgnoreInterfaces to begin with.

Hi @negz, is this issue still valid ?? If yes, I would like to work on this.

I believe so! CC @muvaf who may have an opinion here.

Thanks, pick this up then.

Hi! I think resource.AttributeReferencer is remnant of the old approach we had taken back then. All reference-related functionality resides in pkg/reference package. In fact pkg/resource/reference.go can be deleted, @aditya109 this could be your first contribution 🙂

Thanks @muvaf, will keep it in mind. Excited to try working on this repo.


A Problem in --do_data

When I do "python run_bert.py --do_data", I met this problem. My pytorch version is 1.5.0+cuda10.1
OSError: [Errno 22] Invalid argument: 'D:\\Desktop\\BERT+XLNET Multi-label\\pybert\\output\\log\\bert-2020-05-31-17:54:48.log'
The complete error message is shown below, is that because the log file is missing?
(pytorch_gpu) D:\Desktop\BERT+XLNET Multi-label>python run_bert.py --do_data Traceback (most recent call last):   File "run_bert.py", line 216, in <module>     main()   File "run_bert.py", line 192, in main     init_logger(log_file=config['log_dir'] / f'{args.arch}-{time.strftime("%Y-%m-%d-%H:%M:%S", time.localtime())}.log')   File "D:\Desktop\BERT+XLNET Multi-label\pybert\common\tools.py", line 38, in init_logger     file_handler = logging.FileHandler(log_file)   File "D:\anaconda\anaconda1\envs\pytorch_gpu\lib\logging\__init__.py", line 1087, in __init__     StreamHandler.__init__(self, self._open())   File "D:\anaconda\anaconda1\envs\pytorch_gpu\lib\logging\__init__.py", line 1116, in _open     return open(self.baseFilename, self.mode, encoding=self.encoding) OSError: [Errno 22] Invalid argument: 'D:\\Desktop\\BERT+XLNET Multi-label\\pybert\\output\\log\\bert-2020-05-31-17:54:48.log'
How to fix it? thx.

My way to solve this problem is modify ":" into "_" or any other character in run_bert.py, line 192
init_logger(log_file=config['log_dir'] / f'{args.arch}-{time.strftime("%Y-%m-%d-%H_%M_%S", time.localtime())}.log')
I think this problem is caused by ":" but I don't know why.

My way to solve this problem is modify ":" into "_" or any other character in run_bert.py, line 192
init_logger(log_file=config['log_dir'] / f'{args.arch}-{time.strftime("%Y-%m-%d-%H_%M_%S", time.localtime())}.log')
I think this problem is caused by ":" but I don't know why.

It works! thank you so much!😀


Filter options creates mongodb transaction issue when using atlas mongodb

Link to reproduction
https://github.com/andershermansen/payload/tree/filter-options-mongodb-transactions-issue
Payload Version
3.0.0-beta.65
Node Version
v22.4.0
Next.js Version
15.0.0-canary.69
Describe the Bug
When using filter options to restrict which items can be selected on a collection, it will throw exceptions with errors regarding mongodb transactions when reading back/validating. Saving works fine first time, but reading/validating fails.
Note: It works fine using local mongodb setup, the error only occurs when using remote mongodb on mongodb.com

Repro tree: https://github.com/andershermansen/payload/tree/filter-options-mongodb-transactions-issue
Repro tree changes: https://github.com/payloadcms/payload/compare/beta...andershermansen:payload:filter-options-mongodb-transactions-issue
Reproduction Steps

Set up a mongodb instance on mongodb.com
Run the repo repository against the new mongodb instance
Create entries in Category, some with parent not set and some with.
Create a Post, and select a main category and subcategory
Save Post
See the error appear when reading Post back.

Adapters and Plugins
No response

I had some hopes for this issue when I saw PR #7395 because it disabled transactions for the read only scenario.
And it did fix it. I can not reproduce this scenario anymore with beta 72.
Thanks @DanRibbens !

Can confirm beta 72 fixed the issue for my case as well!

For me I still get some of the errors on this version , will open another issue for it


chore: Update LICENSE to 2023

- What I did
- How I did it
- How to verify it
- Description for the changelog

The general practice here is for the date to be when code was first created. So we don't need to bump this one, but maybe should bump the archetype (and any recently created repos from it)


Design the Dev room to have an fps test arena

Description
The player character needs an fps arena within the dev room to test scenarios on weapon mechanics and systems. This environment will also need to respond to these scenarios and provide feedback to the player.
It is encouraged to use off the shelf assets instead of designing new ones. This will save time and will be only used during debug versions and never release.
Implementation

[x] Create an enclosed environment with openings at each cardinal direction
[x] Create platforms up to 2 stories high and stored towards one side of the room
[ ] Create prism tunnels that allow travel between stories
[ ] Create a climbable wall to that second story
[x] Include pillars throughout the map

Acceptance Criteria

[x] The player character can navigate through each element of the room
[ ] There is no collision dead-zones within the map
[x] The elements on the map are properly scaled to the player
[x] The interactive elements of the environment are functional

Extra Scope Added
Portals have been added so that the player can jump in-between the start point and the different rooms of the map


[FEATURE] Simplify the way to manage / enable listeners

Is there an existing request for this?

[X] I have searched for any related issues and avoided creating a duplicate issue.

Have you read our code of conduct?

[X] I have read and agree to the code of conduct

Feature as a user story
I have a suggestion on the way to manage listener functions in the Node.js app.

I see the benefit to have the stateless functions to enable listener functions to `App` instance. Thanks to that, all the listener functions are easily testable. That's really nice!

One slight concern I have on the current approach is that developers need to create/edit at least three files just for adding a new listener function. Specifically,

* To add a new action listener, you will create a new source file under `listeners/actions` and its corresponding test file
* You will add a new wrapper function in `listeners/actions/index.js`
* You will call the newly added wrapper function `app.js`

If a developer forgets to do any of the three, the listener do not work. Also, the necessity to have changes in a few files can make code reviews a bit harder.

To eliminate the pain point, I would suggest simplify the parts like this:

* https://github.com/seratch/tasks-app/blob/simplified-listener-management/nodejs/app.js#L36
* https://github.com/seratch/tasks-app/blob/simplified-listener-management/nodejs/listeners/index.js
* https://github.com/seratch/tasks-app/commit/8729026ba2b085ba4a2e2c0aab7bcfa1736a61e9

With this way, the only files you need to touch would be the newly added listener itself + its test and `listeners/actions/index.js`. All of these are the essential changes for listener addition.

If a developer needs more granular registration methods, they can do so. But I think the show-case app can come up with as a simple approach as possible.

@colmdoyle What do you think?

@misscoded - You're thinking a lot about the "default" structure for sample/template apps. Does this sound reasonable to you?

@colmdoyle It does! This suggestion actually stemmed from a Tools conversation around the DX of templates. I'm fully in support of this and think the rationale outlined above is sound.
If folks are onboard with this, we can open a PR with the suggested enhancement and ensure that the change is reflected in the templates being created right now.

Chiming in that I like that with the listeners setup almost completely moved out of App.js in this way, it allows App.js to be where you handle things like receiver setup, custom routes, db management and other app configuration nuance only.

Sounds like consensus to me!

Thanks for your quick responses! I will come up with a pull request later.

Fixed with #84


Separate out corefoundation build

Hi @gonzalolarralde, I’ve separated out the foundation build from it’s dependencies if you’re interested.

Don’t forget to Squish.

A couple of recent fixes/hacks you may want to use. If we can get the Apple PRs in a complete scripted build should be possible without having to patch any source.

Closing this now, it's probably miles out of date.


When we will have Base-<IP_ADDRESS>

Description
My program needs to use Base-<IP_ADDRESS> The last one tat can be used is base:<IP_ADDRESS> as far as I know
I know base since there're a some libraries as network:<IP_ADDRESS> which is needed in my programing and is working with base-4.10.x
Kudos for the hard and nice work!

Thanks, if I have time I will take a look. Otherwise normally how do you announce new versions normally?. Any estimation of when is the new binary release.

@politrons We typically announce on our blog, twitter, google groups and via GitHub releases. The next release is out you can go ahead and try it. The announcement will be done in couple of hours.
eta {
  version = '0.8.6b1'
  etlasVersion = '<IP_ADDRESS>'
}

I´m afraid with the new configuration and dependencies is not working
My build.gradle
plugins {
    id 'com.typelead.eta' version '0.7.7'
    id 'application'
}

eta {
    version = '0.8.6b1'
    etlasVersion = '<IP_ADDRESS>'
}

repositories {
    mavenCentral()
    maven {
        url "http://repo.akka.io/snapshots/"
    }
}

dependencies {
    compile eta('aeson:<IP_ADDRESS>')
    compile eta('scotty:0.11.1')
    compile eta('text:<IP_ADDRESS>')
    compile eta('io-streams:<IP_ADDRESS>')
    compile eta('bytestring:<IP_ADDRESS>')
    compile eta('network:<IP_ADDRESS>')
    compile eta('mysql-haskell:<IP_ADDRESS>')

}

And the error
> Task :setupEnvironmentEta
> Task :resolveDependenciesEta
Building cereal-<IP_ADDRESS> (lib)...
Building bsb-http-chunked-<IP_ADDRESS> (lib)...
Building ansi-terminal-<IP_ADDRESS> (lib)...
Building foundation-0.0.19 (lib)...
Building text-<IP_ADDRESS> (lib)...
Building time-locale-compat-<IP_ADDRESS> (lib)...
Building transformers-<IP_ADDRESS> (all, legacy fallback)...
Building unix-<IP_ADDRESS> (lib)...
Building word24-2.0.1 (lib)...
> Task :installDependenciesEta

etlas: Failed to build unix-<IP_ADDRESS> (which is required by scotty-0.11.1 and
mysql-haskell-<IP_ADDRESS>). See the build log above for details.

> Task :installDependenciesEta FAILED

@politrons  Can you use network:<IP_ADDRESS> instead of network:<IP_ADDRESS> since Eta has a patch for v<IP_ADDRESS>?
You can check which version of package to use from the eta-hackage list
For any further questions can you please open a new issues? Thanks!


Set custom dialog title

Hey mate, thanks for this amazing and simplified library. I have been struggling to change the default dialog title "Wee need permission.......". is it possible to change and how? Thanks

Hi @saintjab this is possible. Here is an example:
`        PermissifyConfig permissifyConfig = new PermissifyConfig.Builder()
.withDialogRationaleDialogFactory(new PermissifyConfig.AlertDialogFactory() {
@Override
public AlertDialog createDialog(Context context, String dialogMsg, DialogInterface.OnClickListener onClickListener) {
PermissifyConfig.AlertDialogFactory defaultDialogFactory = PermissionRationaleDialogFragment.getDefaultDialogFactory();
AlertDialog dialog = defaultDialogFactory.createDialog(context, dialogMsg, onClickListener);
dialog.setTitle("Your custom dialog title");
                return dialog;
            }
        })`

Thanks for getting back to me. It working for me. However, I have another question: how do I request permissions in Fragment? I am getting 'Cannot resolve method getPermissifyManager()' on this
getPermissifyManager().callWithPermission(this, SMS_PERMISSION_REQUEST_ID, Manifest.permission.SEND_SMS,                         new PermissionCallOptions.Builder()                                 .withDefaultDenyDialog(true)                                 .withDefaultRationaleDialog(false)                                 .build()                 ); and same Cannot resolve method on the  super.onCallWithPermissionResult` even though my Fragment implements PermissifyManager.Callback.
Thanks

@saintjab To request permission in fragment you need to get permission manager from your activity.
PermissifyActivity permissifyActivity = (PermissifyActivity) getActivity();
PermissifyManager permissifyManager = permissifyActivity.getPermissifyManager();
permissifyManager.callWithPermission(...);

Call to super.onCallWithPermissionResult is not required.
I will add this to the documentation, thanks for reporting.


Remove direct eval in pyodide.asm.js and minify setupEmscripten.

This replaces direct eval in pyodide.asm.js with indirect eval, see comment in the commit.

Problem with previous PR was actually the minify sadly.

These eval calls should never be executed anyways.


Crashing on init

Found that changing line in the Actuator class fixed it, it crashed when adding a disabled channel to a actuator.
from
if device_channel["channelTypeID"] !=  "CT_DEVICE":
to
if device_channel["channelTypeID"] not in ( "CT_DEVICE", "CT_DISABLED"):

Thank you for the notice, I have adopted the fix.


[Breaking] drop eslint v3 support

already seems do not work in ESLint v3. and CI isn't checking ESLint v3.
errors
4245 passing (5s)
  1 failing

jsx-no-undef
valid
/eslint no-undef:1/ var React, App; React.render();:
TypeError: Cannot read property 'variables' of null
at checkIdentifierInJSX (lib/rules/jsx-no-undef.js:9:2040)
at EventEmitter.JSXOpeningElement (lib/rules/jsx-no-undef.js:9:4242)
at NodeEventGenerator.applySelector (node_modules/eslint/lib/util/node-event-generator.js:265:26)
at NodeEventGenerator.applySelectors (node_modules/eslint/lib/util/node-event-generator.js:294:22)
at NodeEventGenerator.enterNode (node_modules/eslint/lib/util/node-event-generator.js:308:14)
at CodePathAnalyzer.enterNode (node_modules/eslint/lib/code-path-analysis/code-path-analyzer.js:602:23)
at CommentEventGenerator.enterNode (node_modules/eslint/lib/util/comment-event-generator.js:98:23)
at Traverser.enter (node_modules/eslint/lib/eslint.js:929:36)
at Traverser.__execute (node_modules/estraverse/estraverse.js:330:31)
at Traverser.traverse (node_modules/estraverse/estraverse.js:434:28)
at Traverser.traverse (node_modules/eslint/lib/util/traverser.js:31:22)
at EventEmitter.module.exports.api.verify (node_modules/eslint/lib/eslint.js:926:23)
at runRuleForItem (node_modules/eslint/lib/testers/rule-tester.js:387:38)
at testValidTemplate (node_modules/eslint/lib/testers/rule-tester.js:420:28)
at Context. (node_modules/eslint/lib/testers/rule-tester.js:548:25)
at processImmediate (internal/timers.js:439:21)

Went ahead and restored eslint 3 compat (and eslint 4, below v4.15).

Codecov Report

Merging #2562 (d51bc61) into master (9799131) will increase coverage by 0.11%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #2562      +/-   ##
==========================================
+ Coverage   97.43%   97.55%   +0.11%
==========================================
  Files         114      115       +1
  Lines        7536     7721     +185
  Branches     2750     2759       +9
==========================================
+ Hits         7343     7532     +189
+ Misses        193      189       -4

Impacted Files
Coverage Δ

lib/rules/boolean-prop-naming.js
99.27% <100.00%> (ø)

lib/rules/button-has-type.js
96.77% <100.00%> (+0.10%)
:arrow_up:

lib/rules/default-props-match-prop-types.js
100.00% <100.00%> (ø)

lib/rules/destructuring-assignment.js
98.88% <100.00%> (+0.02%)
:arrow_up:

lib/rules/display-name.js
98.14% <100.00%> (+0.03%)
:arrow_up:

lib/rules/forbid-component-props.js
100.00% <100.00%> (ø)

lib/rules/forbid-dom-props.js
100.00% <100.00%> (ø)

lib/rules/forbid-elements.js
100.00% <100.00%> (ø)

lib/rules/forbid-foreign-prop-types.js
96.49% <100.00%> (+0.12%)
:arrow_up:

lib/rules/forbid-prop-types.js
100.00% <100.00%> (ø)

... and 81 more

Continue to review full report at Codecov.

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


Docs: update README

Update Readme with more information.

Thank you for request this issue! I can get this and make your README better.
Note: Please, assign me to this issue to prevent spam

Sure. I will assign you. Don't forget to give a star to this repo

Sir I want to contribute also

Wait for the @esau-morais  PR. If you could do further improvements after merged @esau-morais PR. You can do. Thank you @ritwikchakraborty123

@esau-morais Thank you for your PR

@ritwikchakraborty123 Can You further improve it

@ritwikchakraborty123 Can You further improve it

I think you can close this issue and focus in the #15


[frontendproxy] - remove set-cookie

In October we added code to the frontend proxy to set a cookie used by the frontend in order to specify the browser reachable otel-collector.  This cookie is no longer used by the frontend, and we can safely remove it.
red diffs are the best diffs

I think there's more cleanup here? Do we need to remove the env var set in the compose file as well?
Also, just to make sure, the thing that's in-place now works at runtime not compile-time right?

@austinlparker I removed the env var from docker-compose.yml.  Is anything else missing?

lgtm


@UtilityClass maven build fails when static importing a public method

I use static imports quite a lot for frequently used methods. Was quite surprised code which worked fine in eclipse failed to compile in a maven build. Basically maven compiler could not find any lombok generated code.
Narrowed down the problem to the @UtilityClass which automatically converts  public instance  methods to public static methods.
Lets consider the following example:
import lombok.experimental.UtilityClass;
/**
 */
@UtilityClass
public class Utility {

  /**
   */
  public void utilityMethod() {
    System.out.print("Instance method made static");
  }
}

import static x.test.Utility.utilityMethod;

/**
 */
public class Main {

  /**
   * @param args
   */
  public static void main(String[] args) {
    utilityMethod();
  }

}

When I run the code from eclipse everything works fine.
However when I do a maven clean install I get the following error:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project x: Compilation failure: Compilation failure:
[ERROR] /C:/JavaDev/Workspaces/x/src/main/java/x/test/Main.java:[8,1] cannot find symbol
[ERROR]   symbol:   static utilityMethod
[ERROR]   location: class
[ERROR] /C:/JavaDev/Workspaces/x/src/main/java/x/test/Main.java:[18,5] cannot find symbol
[ERROR]   symbol:   method utilityMethod()
[ERROR]   location: class x.test.Main

The fix to the problem is quite simple just explicitly specify in the utility class that the method is static. However it`s quite easy to make such an error since as far as the IDE is concerned the method is static.

Interesting. Reproduction case reproduces it here.
Versions tried:
1.18.10
1.18.8
1.18.4
1.18.0
Seems to have been broken for some time.
On Fri, Dec 20, 2019 at 10:31 AM Szilex94<EMAIL_ADDRESS>wrote:

I use static imports quite a lot for frequently used methods. Was quite
surprised code which worked fine in eclipse failed to compile in a maven
build. Basically maven compiler could not find any lombok generated code.
Narrowed down the problem to the @UtilityClass
https://github.com/UtilityClass which automatically converts public
instance methods to public static methods.
Lets consider the following example:
import lombok.experimental.UtilityClass;
/**
*/
@UtilityClass
public class Utility {
/**
*/
public void utilityMethod() {
System.out.print("Instance method made static");
}
}
import static x.test.Utility.utilityMethod;
/**
*/
public class Main {
/**

@param args
*/
public static void main(String[] args) {
utilityMethod();
}

}
When I run the code from eclipse everything works fine.
However when I do a maven clean install I get the following error:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project x: Compilation failure: Compilation failure:
[ERROR] /C:/JavaDev/Workspaces/x/src/main/java/x/test/Main.java:[8,1] cannot find symbol
[ERROR]   symbol:   static utilityMethod
[ERROR]   location: class
[ERROR] /C:/JavaDev/Workspaces/x/src/main/java/x/test/Main.java:[18,5] cannot find symbol
[ERROR]   symbol:   method utilityMethod()
[ERROR]   location: class x.test.Main
The fix to the problem is quite simple just explicitly specify in the
utility class that the method is static. However it`s quite easy to make
such an error since as far as the IDE is concerned the method is static.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/rzwitserloot/lombok/issues/2317?email_source=notifications&email_token=AABIERMVMQWSWCQ5UWJHLL3QZSGHBA5CNFSM4J53D6Y2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IB5J7CQ,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AABIERNNTCE2ABYVP73DKI3QZSGHBANCNFSM4J53D6YQ
.

--
"Don't only practice your art, but force your way into it's secrets, for it
and knowledge can raise men to the divine."
-- Ludwig von Beethoven

AFAIK a duplicate of #2044.

Sounds dollars to donuts as a a dupe of #2044, and as that bug describes, there's not a thing we can do about it, unfortunately :(


Additional SHACL support to Ontospy/gendocs

This patch series is intended to bring Ontospy's current SHACL support up to the level of displaying Property Shapes
on class pages and Shape Properties on shape pages.
A new module, ontospy/core/shacl_helper.py, returns SHACL property constraints, is attached to each OntoClass object,
once the shapes are built in Ontospy.
A few notes on changes:

The modifications made in 4a6d48c method of linking nodes in tree-diagram were done to ensure the diagram was still properly linking to other shapes (this is achieved by using a django filter and 'forwarding' the slugify function from core/utils)
The modifications made in 1750e87 will only display if an ontology uses SHACL

Please advise if there is a better approach to increasing the support for SHACL into Ontospy, or if any modifications are
needed to the current patch presented.

Thanks. I'll be able to review it over the next few days.
If you could attach/reference a sample rdf file for testing all new features that'd be great.

Attached is uco_monolithic.ttl, which can be used for testing the features in this patch series. The file could also be constructed by running the makefile found in the ucoProject/UCO repository.
Thanks!
uco_monolithic.ttl.zip

This PR has received an in-flight update, for the same reason noted over on PR 108.

Hi
I added a feature request in #104 and I think you PR does what I strive for :-)
I did the following:

I cloned https://github.com/casework/Ontospy/tree/feature-SHACL-gendocs
I ran python setup.py install and installed pygments and django<4(#112)
I ran ontospy gendocs uco_monolithic.ttl from my venv

What I get as HTML looks correct in terms of property shapes on the class page. This is really nice!
However, I tried this with my own ontology which consists of

an ontology part for schema.org classes
a SHACL part that targets schema.org classes via sh:targetClass

As observed in https://github.com/lambdamusic/Ontospy/pull/107#issuecomment-997284164 I don't see the Shapes page anymore.
Could this be because classes and node shapes do not use the same IRI? For some more details about the ontology I use, please see #104
Thanks a lot!

Thank you both for the feedback!  We'll be getting back to you next week.

Thank you for the feedback. We had a discussion today about a timeline to updating the PR as requested. We're both currently tied up on a few tasks, but plan to address this early next week with plans to have something ready to push by next Friday.
We will also look at the issues presented involving the missing shapes page on some ontologies.

Sounds good, thanks. If there are any updates at my end, I'll let you know.

We're working through the remarks now.  We've made a catch-up merge to integrate master's current state, and have converted the branch to a draft state while we step through the other remarks.
@lambdamusic , re:

For some reason the documentation generation is backward incompatible. See for example this documentation page for SciGraph - RDF source here - previously I was able to generate a 'Shapes' page for SciGraph, but with your patch I get none. Any idea why?

Could you explain what behavior you're seeing here?  After our catch-up merge, we regenerated the page, and saw these effects:

https://lambdamusic.github.io/ontospy-examples/scigraph-core-ontologyttl/index.html - this page's "Metrics" table lists 17 data shapes, which matches the current deployed state on ontospy-examples.
https://lambdamusic.github.io/ontospy-examples/scigraph-core-ontologyttl/entities-tree-shapes.html - this page lists 17 shapes.
https://lambdamusic.github.io/ontospy-examples/scigraph-core-ontologyttl/shape-shapesaffiliation.html - this page does not list a properties table.  However, we believe that is because we search for properties based on sh:path being defined in the sh:PropertyShape.  (Our added queries do not search for an explicit class declaration of sh:PropertyShape; we instead assume that based on sh:property linking the blank node and implying it's a property shape.)

I suspect we've actually resolved your second issue, but that's mainly from our failure to reproduce what you saw.

On further review, sh:predicate is not defined in SHACL.  Did the scigraph RDF source intend to use sh:path?

On the shapes page, we intend to list a table of how properties associate with a class.  There's a conceptual hop there, which is probably something we need to talk through to come to a good design consensus.
The user interface complexity we're trying to hide is going to apply to SHACL-based schemes that don't define owl:Restrictions.  In our use case, we don't have owl:Restrictions, but we do have sh:PropertyShapes.  So, our property associations would be listed on the Shapes HTML page.  But, to see things about other classes in the parent/child hierarchy, the user would hop over to the Class page, where no properties would be listed.
So, we tried to apply some redundancy - having the properties associated via SHACL be listed on the class page as well.  This saves the user two clicks (oscillating between shapes and class pages) per level of the class hierarchy they want to review.
We probably wouldn't go for this redundancy if SHACL had a concept of "SubNodeShape," but they don't.
That's the feedback we could get to today, we're happy to discuss this further.

Hi folks - first of all, wish I had time to get back to you sooner, sorry about that and thanks a lot for the patience.
I reviewed the PO after the merging, have three main comments.
1) Shapes HTML page for scigraph is ok
@ajnelson-nist as you pointed out, the scigraph ontology 'shapes' page is not missing anymore. Don't know what's changed, I do recall noticing the difference, but of course I might be wrong. So all's good there. Backward compatibility is fine.
2) New ontospy tests error
I do get an error when running the test suite (./tools/run-all-tests.sh). The error is triggered when trying to scan the schema test RDF model. You can reproduce simply by typing $ ontospy scan ontospy/tests/rdf/schema/ (on this branch, of course). Here's the traceback:
...
  File "/Users/michele.pasin/code/python/ontospy/ontospyProject/ontospy/cli.py", line 181, in scan
    action_analyze(sources, endpoint, print_opts, verbose, extra, raw, individuals, format)
  File "/Users/michele.pasin/code/python/ontospy/ontospyProject/ontospy/core/actions.py", line 123, in action_analyze
    g = Ontospy(
  File "/Users/michele.pasin/code/python/ontospy/ontospyProject/ontospy/core/ontospy.py", line 134, in __init__
    self.build_all(
  File "/Users/michele.pasin/code/python/ontospy/ontospyProject/ontospy/core/ontospy.py", line 249, in build_all
    self.build_shapes()
  File "/Users/michele.pasin/code/python/ontospy/ontospyProject/ontospy/core/ontospy.py", line 635, in build_shapes
    shacl_constraints = build_shacl_constraints(self)
  File "/Users/michele.pasin/code/python/ontospy/ontospyProject/ontospy/core/shacl_helper.py", line 255, in build_shacl_constraints
    add_property_constraints_from_shape_triples(lineage_class.uri, property_constraints, shape.triples)
  File "/Users/michele.pasin/code/python/ontospy/ontospyProject/ontospy/core/shacl_helper.py", line 298, in add_property_constraints_from_shape_triples
    raise Exception('Something is very wrong.  Class URI not in triples.')
Exception: Something is very wrong.  Class URI not in triples.

The error is triggered by line line 297. Not really sure I fully understand the logic there, so maybe you can shed some light.
Depending on how bad the cause of the error is, I'd suggest issuing a warning instead and/or failing silently.
Ontospy is not really a schema validator, so I'd prefer to render an incomplete output rather than failing completely.
3) SciGraph shapes error
You are totally right @ajnelson-nist, sh:predicate should be sh:path. Not sure what happened there, but I suppose when we built that model a few years back we may have used an older Shacl specification which is now deprecated. Who knows..
Anyhow, good that you spotted it. I've updated the test RDF with sh:path within a new folder scigraph2 and pushed it to this branch. Tried to run ontospy on it, but also here I'm getting the error above:
  File "/Users/michele.pasin/code/python/ontospy/ontospyProject/ontospy/core/shacl_helper.py", line 298, in add_property_constraints_from_shape_triples
    raise Exception('Something is very wrong.  Class URI not in triples.')
Exception: Something is very wrong.  Class URI not in triples.

So, even more curious about how to get rid of that.

To sum up - I believe that after addressing that validation error above, we're good to go :-)
The UI issues you mentioned are important, but maybe better tackled outside this PR and by using more test input data.

First, @tobiasschweizer , you were right to give a poke, thanks for that.
@lambdamusic , thank you for the test case.  We stumbled on a similar issue.  @balon and I have started a type review of the shacl_helper.py script on observing that there were a few errant assumptions about nodes being required to be blank nodes or rdflib.URIRefs.

@lambdamusic : @balon and I think the "Something is very wrong" exception has been addressed.  I think we've covered the tests you've mentioned above; ./tools/run-all-tests.sh and nosetests both pass.  If there's nothing else, this might be good to merge.

Available in https://github.com/lambdamusic/Ontospy/releases/tag/2.0.0-alpha

Thank you!

Hi there,
That is great news, I'll try this asap.


SMTP Error - Unrecognized authentication type

Hi,
I'm trying to set up so that helpy sends email using an office365 account but it keeps failing.
E, [2019-04-01T09:35:23.407739 #25724] ERROR -- : Sucker Punch job error for class: 'ActiveJob::QueueAdapters::SuckerPunchAdapter::JobWrapper' args: [{"job_class"=>"ActionMailer::DeliveryJob", "job_id"=>"e975d454-0484-4fdd-8934-714028e50eb7", "queue_name"=>"mailers", "arguments"=>["TestMailer", "new_test", "deliver_now"<EMAIL_ADDRESS>"locale"=>:en}]Net::SMTPAuthenticationError 504 5.7.4 Unrecognized authentication type [HE1PR05CA0255.eurprd05.prod.outlook.com]
I obviously obfuscated the email address.

smtp server: smtp.office365.com
smtp port: 587

Som more from the log
Looks like it tries to do plain auth but I'm not sure.
/home/deploy/.rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/net/smtp.rb:981:in `check_auth_response'
/home/deploy/.rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/net/smtp.rb:736:in `auth_plain'
/home/deploy/.rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/net/smtp.rb:728:in `authenticate'
/home/deploy/.rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/net/smtp.rb:565:in `do_start'
/home/deploy/.rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/net/smtp.rb:518:in `start'
/home/deploy/.rvm/gems/ruby-2.4.0@helpy/gems/mail-2.7.1/lib/mail/network/delivery_methods/smtp.rb:109:in `start_smtp_session'
/home/deploy/.rvm/gems/ruby-2.4.0@helpy/gems/mail-2.7.1/lib/mail/network/delivery_methods/smtp.rb:100:in `deliver!'
/home/deploy/.rvm/gems/ruby-2.4.0@helpy/gems/mail-2.7.1/lib/mail/message.rb:2159:in `do_delivery'
/home/deploy/.rvm/gems/ruby-2.4.0@helpy/gems/mail-2.7.1/lib/mail/message.rb:260:in `block in deliver'
/home/deploy/.rvm/gems/ruby-2.4.0@helpy/gems/actionmailer-<IP_ADDRESS>/lib/action_mailer/base.rb:543:in `block in deliver_mail'
/home/deploy/.rvm/gems/ruby-2.4.0@helpy/gems/activesupport-<IP_ADDRESS>/lib/active_support/notifications.rb:164:in `block in instrument'
/home/deploy/.rvm/gems/ruby-2.4.0@helpy/gems/activesupport-<IP_ADDRESS>/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/home/deploy/.rvm/gems/ruby-2.4.0@helpy/gems/activesupport-<IP_ADDRESS>/lib/active_support/notifications.rb:164:in `instrument'
/home/deploy/.rvm/gems/ruby-2.4.0@helpy/gems/actionmailer-<IP_ADDRESS>/lib/action_mailer/base.rb:541:in `deliver_mail'
/home/deploy/.rvm/gems/ruby-2.4.0@helpy/gems/mail-2.7.1/lib/mail/message.rb:260:in `deliver'
/home/deploy/.rvm/gems/ruby-2.4.0@helpy/gems/actionmailer-<IP_ADDRESS>/lib/action_mailer/message_delivery.rb:85:in `deliver_now'
/home/deploy/.rvm/gems/ruby-2.4.0@helpy/gems/actionmailer-<IP_ADDRESS>/lib/action_mailer/delivery_job.rb:10:in `perform'
/home/deploy/.rvm/gems/ruby-2.4.0@helpy/gems/activejob-<IP_ADDRESS>/lib/active_job/execution.rb:32:in `block in perform_now'
/home/deploy/.rvm/gems/ruby-2.4.0@helpy/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:117:in `call'
/home/deploy/.rvm/gems/ruby-2.4.0@helpy/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
/home/deploy/.rvm/gems/ruby-2.4.0@helpy/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:505:in `call'
/home/deploy/.rvm/gems/ruby-2.4.0@helpy/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:498:in `block (2 levels) in around'
/home/deploy/.rvm/gems/ruby-2.4.0@helpy/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:343:in `block (2 levels) in simple'
/home/deploy/.rvm/gems/ruby-2.4.0@helpy/gems/i18n-0.9.5/lib/i18n.rb:268:in `with_locale'
/home/deploy/.rvm/gems/ruby-2.4.0@helpy/gems/activejob-<IP_ADDRESS>/lib/active_job/translation.rb:7:in `block (2 levels) in <module:Translation>'
/home/deploy/.rvm/gems/ruby-2.4.0@helpy/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:441:in `instance_exec'
/home/deploy/.rvm/gems/ruby-2.4.0@helpy/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:441:in `block in make_lambda'
/home/deploy/.rvm/gems/ruby-2.4.0@helpy/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:342:in `block in simple'
/home/deploy/.rvm/gems/ruby-2.4.0@helpy/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:497:in `block in around'
/home/deploy/.rvm/gems/ruby-2.4.0@helpy/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:505:in `call'
/home/deploy/.rvm/gems/ruby-2.4.0@helpy/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:498:in `block (2 levels) in around'
/home/deploy/.rvm/gems/ruby-2.4.0@helpy/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:343:in `block (2 levels) in simple'
/home/deploy/.rvm/gems/ruby-2.4.0@helpy/gems/activejob-<IP_ADDRESS>/lib/active_job/logging.rb:23:in `block (4 levels) in <module:Logging>'
/home/deploy/.rvm/gems/ruby-2.4.0@helpy/gems/activesupport-<IP_ADDRESS>/lib/active_support/notifications.rb:164:in `block in instrument'
/home/deploy/.rvm/gems/ruby-2.4.0@helpy/gems/activesupport-<IP_ADDRESS>/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/home/deploy/.rvm/gems/ruby-2.4.0@helpy/gems/activesupport-<IP_ADDRESS>/lib/active_support/notifications.rb:164:in `instrument'
/home/deploy/.rvm/gems/ruby-2.4.0@helpy/gems/activejob-<IP_ADDRESS>/lib/active_job/logging.rb:22:in `block (3 levels) in <module:Logging>'
/home/deploy/.rvm/gems/ruby-2.4.0@helpy/gems/activejob-<IP_ADDRESS>/lib/active_job/logging.rb:43:in `block in tag_logger'
/home/deploy/.rvm/gems/ruby-2.4.0@helpy/gems/activesupport-<IP_ADDRESS>/lib/active_support/tagged_logging.rb:68:in `block in tagged'
/home/deploy/.rvm/gems/ruby-2.4.0@helpy/gems/activesupport-<IP_ADDRESS>/lib/active_support/tagged_logging.rb:26:in `tagged'
/home/deploy/.rvm/gems/ruby-2.4.0@helpy/gems/activesupport-<IP_ADDRESS>/lib/active_support/tagged_logging.rb:68:in `tagged'
/home/deploy/.rvm/gems/ruby-2.4.0@helpy/gems/activejob-<IP_ADDRESS>/lib/active_job/logging.rb:43:in `tag_logger'
/home/deploy/.rvm/gems/ruby-2.4.0@helpy/gems/activejob-<IP_ADDRESS>/lib/active_job/logging.rb:19:in `block (2 levels) in <module:Logging>'
/home/deploy/.rvm/gems/ruby-2.4.0@helpy/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:441:in `instance_exec'
/home/deploy/.rvm/gems/ruby-2.4.0@helpy/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:441:in `block in make_lambda'
/home/deploy/.rvm/gems/ruby-2.4.0@helpy/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:342:in `block in simple'
/home/deploy/.rvm/gems/ruby-2.4.0@helpy/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:497:in `block in around'
/home/deploy/.rvm/gems/ruby-2.4.0@helpy/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:505:in `call'
/home/deploy/.rvm/gems/ruby-2.4.0@helpy/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:92:in `__run_callbacks__'
/home/deploy/.rvm/gems/ruby-2.4.0@helpy/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:778:in `_run_perform_callbacks'
/home/deploy/.rvm/gems/ruby-2.4.0@helpy/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:81:in `run_callbacks'
/home/deploy/.rvm/gems/ruby-2.4.0@helpy/gems/activejob-<IP_ADDRESS>/lib/active_job/execution.rb:31:in `perform_now'
/home/deploy/.rvm/gems/ruby-2.4.0@helpy/gems/activejob-<IP_ADDRESS>/lib/active_job/execution.rb:21:in `execute'
/home/deploy/.rvm/gems/ruby-2.4.0@helpy/gems/activejob-<IP_ADDRESS>/lib/active_job/queue_adapters/sucker_punch_adapter.rb:35:in `perform'
/home/deploy/.rvm/gems/ruby-2.4.0@helpy/gems/sucker_punch-2.1.1/lib/sucker_punch/job.rb:60:in `__run_perform'
/home/deploy/.rvm/gems/ruby-2.4.0@helpy/gems/sucker_punch-2.1.1/lib/sucker_punch/job.rb:38:in `block in perform_async'
/home/deploy/.rvm/gems/ruby-2.4.0@helpy/gems/concurrent-ruby-1.1.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:348:in `run_task'
/home/deploy/.rvm/gems/ruby-2.4.0@helpy/gems/concurrent-ruby-1.1.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:337:in `block (3 levels) in create_worker'
/home/deploy/.rvm/gems/ruby-2.4.0@helpy/gems/concurrent-ruby-1.1.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:320:in `loop'
/home/deploy/.rvm/gems/ruby-2.4.0@helpy/gems/concurrent-ruby-1.1.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:320:in `block (2 levels) in create_worker'
/home/deploy/.rvm/gems/ruby-2.4.0@helpy/gems/concurrent-ruby-1.1.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:319:in `catch'
/home/deploy/.rvm/gems/ruby-2.4.0@helpy/gems/concurrent-ruby-1.1.5/lib/concurrent/executor/ruby_thread_pool_executor.rb:319:in `block in create_worker'

It works with the following change but a prettier fix is needed.
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index 103669d0..9872a025 100644
--- a/app/controllers/application_controller.rb+++ b/app/controllers/application_controller.rb@@ -149,6 +149,7 @@ class ApplicationController < ActionController::Base
         :user_name            => AppSettings["email.smtp_mail_username"].presence,
         :password             => AppSettings["email.smtp_mail_password"].presence,
         :domain               => AppSettings["email.mail_domain"],
+       :authentication       => :login,
         :enable_starttls_auto => !AppSettings["email.mail_smtp"].in?(["localhost", "<IP_ADDRESS>", "::1"])
     }


bestfreestreaming.com

https://www.bestfreestreaming.com/ link goes to Apache default page

I like BFS and used it a lot so I decided to recreate it. https://www.bestfreestreaming.org/


how can I label equation with a symbol ,such as \tag{} in Tex ?

$equation \tag{1}$ can’t set a tag behind the equation. There is noting happened.

Does it work here: https://www.codecogs.com/latex/eqneditor.php ...? (I don't know TeX and I have no idea what it should look like.)

Closing. Re-open if there's more info.


AppLayout/AppBar without drawer

Is there a way to make the AppBar without the aside/drawer of AppLayour?
I've tried various methods including setting CSS display (in that case the problem is that the --drawerWidth variable still makes space for the drawer as if it were open), and only using AppBar without AppLayout - but then the spacing gets messed up.
If not, I would propose either making the AppBar being valid as an independent element without AppLayout, or adding an option in AppLayout which lets us choose whether we want the drawer or not (which is probably easier to implement).

As I learned from #279, it can also be done using the showDrawer store

Awe, interesting, so you want to fully remove the drawer (not just initialize it closed).  I could see adding <AppLayout disableDrawer> or possibly something in settings() to make it coordinate with AppBar a little easier.
I assume you're going for the typical home page layout with no sidebar, such as

https://d3js.org/
https://ui.shadcn.com/
https://melt-ui.com/
etc


update he.md

Type of change

[x] Add new papers (Please tell us why you think this paper is awesome!)
[ ] Fix the category of an existing paper/papers (Please tell us the reasons)
[ ] Add a new tool/primitive/application with a new markdown page (Thank you! Also, please tell us more about this awesome thing!)
Description

Added papers on hardware accelerated FHE.

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

@palettis Hello, this PR have merge conflicts and we can't figure out what paper is new in this PR. Please add your papers based on the he.md at main  branch.

@palettis Hi, cause long-time couldn't receive your reply, we have to close this PR after 24 hours. If you have time for this PR, we welcome you could update it at our request or create a new PR.


Can't install XCode through XCodes

Describe the bug
Any XCode installation in XCodes fails
To Reproduce
Steps to reproduce the behavior:
Click any XCode "Install" button. It fails.
Expected behavior
An XCode installation should have happened.
Screenshots
If applicable, add screenshots to help explain your problem.

Version

OS: 13.1 (22C65)
Xcodes: 1.9.0 (17)

I've tried:

Logging out and logging back in (apple id inside the xcodes application)
restarting xcodes
restarting the computer
changing the data source to Apple from Xcode Releases
changing the downloader from aria2 to URLSession
installed the xcodes helper (and rebooted after doing that)

Nothing works and I can't install Xcode through XCodes

Nevermind. Tried going to the XCode Releases page and downloading manually from there. It prompted me to log in and then to approve some terms and conditions. I did that and then tried downloading via XCodes again. That seems to have worked.


feat: arxiv parser first draft

Merging w/o review to rebase/start from a unified place. Edits to be done in a later PR


java.lang.NoClassDefFoundError when starting sbt on macOS 10.13.6 (homebrew)

steps

sbt version: 1.3.4
macOS 10.13.6
Java 1.8.0_232 (Zulu <IP_ADDRESS>-CA-macosx) (build 1.8.0_232-b18)

Install sbt via brew install sbt as described at https://www.scala-sbt.org/download.html#macos
Type sbt

problem
Invoking sbt or sbt assembly returns this error (here I'll paste in the full results of sbt -v:
$ sbt -v
[process_args] java_version = '8'
[sbt_options] declare -a sbt_options=()
# Executing command line:
java
-Dfile.encoding=UTF-8
-Xms1024m
-Xmx1024m
-Xss4M
-XX:ReservedCodeCacheSize=128m
-jar
/usr/local/Cellar/sbt/1.3.4/libexec/bin/sbt-launch.jar

java.lang.NoClassDefFoundError: org/apache/logging/log4j/core/Appender
	at sbt.StandardMain$.initialGlobalLogging(Main.scala:146)
	at sbt.StandardMain$.initialState(Main.scala:175)
	at sbt.xMain$.run(Main.scala:65)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at sbt.internal.XMainConfiguration.run(XMainConfiguration.scala:45)
	at sbt.xMain.run(Main.scala:39)
	at xsbt.boot.Launch$$anonfun$run$1.apply(Launch.scala:111)
	at xsbt.boot.Launch$.withContextLoader(Launch.scala:130)
	at xsbt.boot.Launch$.run(Launch.scala:111)
	at xsbt.boot.Launch$$anonfun$apply$1.apply(Launch.scala:37)
	at xsbt.boot.Launch$.launch(Launch.scala:119)
	at xsbt.boot.Launch$.apply(Launch.scala:20)
	at xsbt.boot.Boot$.runImpl(Boot.scala:56)
	at xsbt.boot.Boot$.main(Boot.scala:18)
	at xsbt.boot.Boot.main(Boot.scala)
Caused by: java.lang.ClassNotFoundException: org.apache.logging.log4j.core.Appender
	at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
	... 18 more
[error] [launcher] error during sbt launcher: java.lang.NoClassDefFoundError: org/apache/logging/log4j/core/Appender

expectation
On my other machine, running the current version of macOS (Catalina) and the same JDK, I've never had this problem.
notes
I also tried downloading the release from https://github.com/sbt/sbt/releases and invoking it directly via /Users/joe/Downloads/sbt/bin/sbt, but the result was the same.
I'd be happy to provide more info, perform any tests that are needed, or try any workarounds that can be suggested.

I can't reproduce this on 10.14.16 with (Zulu <IP_ADDRESS>-CA-macosx) (build 1.8.0_232-b18). Seems like it could be related to #5253.

I'd be happy to provide more info, perform any tests that are needed, or try any workarounds that can be suggested.
In general debugging old mac os releases is going to be tough for us because we don't have the resources to maintain development machines for different versions. Does the issue occur on high sierra with a different jdk?

Could you wipe out ~/.sbt/boot/scala-2.12.10/org.scala-sbt/sbt/1.3.4 and try again?

Hi @eed3si9n I am also seeing the same issue, I tried wiping out ~/.sbt/boot/scala-2.12.10/org.scala-sbt/sbt/1.3.8 but that didn't help either

Do you have a public build available that could reproduce this issue?
Also could you try using the current stable sbt 1.5.1?

I am on 1.5.3. But still getting the same.

If you have $HOME/.sbt/preloaded directory, that might also be a good candidate to wipe out.

I don't have that location locally

I use sdkman to install latest sbt in a new macbook.
If I try to run sbt in a project, which declare to use sbt 1.3.x in project/build.properties, the sbt will throw the above exception.
If I remove build.properties file, the sbt works fine.
When I reinstall v1.3.13 sbt, and try to run it in an empty project, the sbt still throw above exception.

@zhengcan Thanks. I'll close this issue then as sort of fixed with your workaround then.


Update jsonform.js

Spectrum.js options from form

👍

Looks ok. An even better solution would be to use $.extend, adding the specified options on top of the default set. Thus you would only need to specify the options you want to override.
But this is good enough for now.


SLICE-125 Changing logger class associated with OsgiServiceScanner

SLICE-125

[x] Corrected Logger class associated with OsgiServiceScanner

@mmajchrzak
Have a look at this one please.

Coverage remained the same at 71.684% when pulling e52a472dfcbcbc1a53d0f279d06af1d27fbffceb on Shashi-Bhushan:SLICE-125-changingLoggerClass into fe0b2f7a8755b4b1f1163f80a9009905b8c076c5 on Cognifide:master.

Thanks for this contribution - looks good.


cmd/compile: inlining budget excludes cross-package calls

In the example below, p.G and q.H are identical, except that p.G is in the same package as p.F, yet cmd/compile decides that q.H is inlineable whereas p.G is not.
This is because cmd/compile currently only computes Inlcost for locally defined functions. Calls to functions in external packages are effectively treated as free.
$ go tool compile -m p.go
p.go:3:6: can inline F
p.go:13:3: inlining call to F

$ go tool compile -m q.go
q.go:5:6: can inline H
q.go:6:5: inlining call to p.F

$ cat p.go
package p

func F() {
    print(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
    print(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
    print(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
    print(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
    print(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
    print(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
}

func G() {
    F()
    print(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
    print(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
    print(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
    print(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
    print(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
    print(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
}

$ cat q.go
package q

import "./p"

func H() {
    p.F()
    print(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
    print(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
    print(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
    print(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
    print(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
    print(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
}

This is #19261, see josh comment: https://github.com/golang/go/issues/19261#issuecomment-282464401

@ALTree Indeed. Closing as duplicate.


Xenomai 3: enable additional Xenomai features and tweak CPU config for better latency response

After the initial support of Xenomai 3, some additional config that may be useful for customers on a reference image are included.
Some kernel config affect the latency of Xenomai. This commit fine-tune some of these config so the CPU avoid context switching when idle, and reduce the frequency of switching.

LGTM


Fixed #358 - configuration from clean folder

Motivation and Context (Why the change? What's the scenario?)
When you download the project in a fresh folder, running dotnet run setup in the service folder throws an error because development.json file does not exists.
Also if you configure using Disk storage (not for production but useful for testing) actually it uses volatile storage and does not persist anytying on disk.
High level description (Approach, Design)
I've simply restored the generation of basic development file if not exists, also fixed configuration using "disk" storage type instead of "volatile"

This will fix #358


Overlapping axes in show_omega_v2

When provided with Nfig, function show_omega_v2 creates new instances of Axes instead of getting one from the figure. This leads to separate plots overlapping each other. I managed to fix this by changing
ax = plt.axes(polar=True)

on line 204 of omega_plots.py to
if len(fig.get_axes()) == 0:
    ax = plt.axes(polar=True)
else:
    ax = fig.get_axes()[0]

Thank you for the report!
I patched it with your solution, and also add security to prevent issues while trying to mix projections.
Added on line 203:
if len(fig.get_axes()) != 0:    # If presence of axes
    ax0 = fig.get_axes()[0]
    is_ax0_polar = hasattr(ax0, 'set_theta_offset') # Test if ax has polar projection
    if not polar == is_ax0_polar:
        raise ValueError("Can not mix polar and non-polar projections in the same plot")


Mod: reformatted the help information

Before:
  -doujin DOUJIN  Doujin to be downloaded. ex: https://nhentai.net/g/xxxxxx,
                  xxxxxx, nhentai.net/g/xxxxxx

After:
required arguments:
  -doujin DOUJIN  Doujin to be downloaded.
                  ex: https://nhentai.net/g/xxxxxx, xxxxxx, nhentai.net/g/xxxxxx

thanks!


rna-transcription: Remove as_ref test

This was introduced in 7877d6389ed47d8c3e6631274c1c66a0b4c4ec54 back
when the exercises was ported to xrust, but there's no clear reason why
we would want the RNA to be convertible to a string.

It's not relevant to the problem statement.
There's no clear use case for why this is something that should be
required.
Other languages don't do this.
Other exercises in xrust don't do this.

Given these reasons, it makes more sense to remove it.
Closes #76

Sounds fair.


use pip to install dependencies

Avoids having to parse requirements.txt ourselves.
Also avoids recreating a conda env if it already exists (conda seems to remove installed packages when recreating an already existing env).
Compare to illinois-ceesd/mirgecom#65.
Fixes #58, fixes #46.

Do these changes remove the ability to check out a certain branch of mirgecom and install it in a user-provided location, using a specified conda environment?   I really do need to not have dgfem hard-coded, and to be able to place packages at a specified location.

Do these changes remove the ability to check out a certain branch of mirgecom

The idea was that you can add your preferred branch name directly in the requirements.txt. Not sure if thats suitable for your use case.

and install it in a user-provided location

for the moment, it will install everything into ./ , but it should be easy to bring back the --install-prefix option. All packages listed in requirements.txt would be installed there, which I hope is what you expect.

using a specified conda environment?

The conda installation location/environment name options should still work as before.

I really do need [...] to be able to place packages at a specified location.

The idea was that you can add your preferred branch name directly in the requirements.txt. Not sure if thats suitable for your use case.

I think that part will work OK for me.   For my own purposes, I will checkout mirgecom, grab its requirements.txt and hand that to emirge.   I need to automate this, so that is my main concern.

for the moment, it will install everything into ./ , but it should be easy to bring back the --install-prefix option. All packages listed in requirements.txt would be installed there, which I hope is what you expect.

Yes, that's the capability/behavior I need.

The conda installation location/environment name options should still work as before.

I'm not sure it does.   This line doesn't work for active path-type conda envs:
has_env=$(conda info --envs | awk '{print $1}' | grep "$env_name")

(It returns "*")

Could you instead clone emirge in the location that you want, and then install all pip packages into that folder (perhaps sharing a conda env through the conda options to install.sh)?

I think I can work around them not going to a preferred location.  However, I was under the impression that pip would be able to install the packages wherever I want.  Is that not the case?
The problem that I have is that my different installs cannot share a common conda env.  Each one needs its own independent one, i.e.  each branch that I test needs its own conda env.  The branches are tested simultaneously, and cannot have overlapping installs into a single environment.  The branch-specific conda env can be persistent, if they are modifiable - but I have had trouble repeat-installing mirgecom into existing conda envs.
Actually, I could probably use help getting TEESD to work properly with emirge now.  It seems everything works fine once, then on the very next checkout (e.g. the Nightly one), I get lots of errors about not being able to get the right version of Loopy, or not being able to find CL include files.   I suspect this is because I have "--editable" installs trying to install over each other.    Something definitely is going awry when I try to repeat-install of mirgecom@branch into an existing conda env.

The idea was that you can add your preferred branch name directly in the requirements.txt. Not sure if thats suitable for your use case.

I think that part will work OK for me. For my own purposes, I will checkout mirgecom, grab its requirements.txt and hand that to emirge. I need to automate this, so that is my main concern.

So wouldn't this work? Why clone mirgecom separately?
$ git clone emirge
# modify emirge/requirements.txt
$ ./install.sh

for the moment, it will install everything into ./ , but it should be easy to bring back the --install-prefix option. All packages listed in requirements.txt would be installed there, which I hope is what you expect.

Yes, that's the capability/behavior I need.

The conda installation location/environment name options should still work as before.

I'm not sure it does. This line doesn't work for active path-type conda envs:
has_env=$(conda info --envs | awk '{print $1}' | grep "$env_name")

edit: (I mean the first part returns "*", so the $env_name is not detected)

I tried the --env-name option, and it seemed to have worked for me. I change this slightly to use cut instead of awk to solve a different error, but it's not clear to me what you mean here.

I think I can work around them not going to a preferred location. However, I was under the impression that pip would be able to install the packages wherever I want. Is that not the case?

It's possible, but I was hoping to limit the number of (potentially untested) options that we have in our already fragile installation system.

The problem that I have is that my different installs cannot share a common conda env. Each one needs its own independent one, i.e. each branch that I test needs its own conda env. The branches are tested simultaneously, and cannot have overlapping installs into a single environment. The branch-specific conda env can be persistent, if they are modifiable - but I have had trouble repeat-installing mirgecom into existing conda envs.

Right, I think the safest (and most realistic?) option is to remove everything that you installed for each test after the test finishes and start from scratch every time.

Actually, I could probably use help getting TEESD to work properly with emirge now. It seems everything works fine once, then on the very next checkout (e.g. the Nightly one), I get lots of errors about not being able to get the right version of Loopy, or not being able to find CL include files. I suspect this is because I have "--editable" installs trying to install over each other. Something definitely is going awry when I try to repeat-install of mirgecom@branch into an existing conda env.

Can you point me to the code that fails?

So wouldn't this work? Why clone mirgecom separately?
$ git clone emirge
# modify emirge/requirements.txt
$ ./install.sh

It's the modify step that I struggle with. It has to be automated for TEESD.  So sure, I could write a parser that pages down through the requirements list and replaces the mirgecom line with the desired branch - but given that master can already install a given branch for me in a certain place, with a desired conda env; this PR seems like a step backwards from that.

I tried the --env-name option, and it seemed to have worked for me. I change this slightly to use cut instead of awk to solve a different error, but it's not clear to me what you mean here.

When you use conda with the -p option to specify a path to conda (that's what I meant by path-type env), then it shows up in the list as an environment with an empty first column  (it's stupid but... you can't name a path-type env).  I previously would create a conda env at a specified path.  This also works in master, but this PR breaks that capability.  Again, I can work around this, but it is easy to fix in the scripts.
Re: installing to a user-defined location:

It's possible, but I was hoping to limit the number of (potentially untested) options that we have in our already fragile installation system.

I can, as you say, check out emirge for each new install and install it right in that location.  However, I need to blow away the previous conda env that went with this installation, too.  (If you don't, the install fails for me currently) Blowing away the existing env does not seem to be a part of the install script - so again, I have manual steps that I need to take to set up so that I can install properly, which make TEESD's task so much harder.  This problem I still face in current master.

Right, I think the safest (and most realistic?) option is to remove everything that you installed for each test after the test finishes and start from scratch every time.

I'm OK blowing away the existing environment.  I just need to script that above-and-beyond what our install manager (emirge) does.  So will the users.

Can you point me to the code that fails?
Sure, it's just mirgecom.   Running install on a new branch to an existing env fails.

So wouldn't this work? Why clone mirgecom separately?
$ git clone emirge
# modify emirge/requirements.txt
$ ./install.sh

It's the modify step that I struggle with. It has to be automated for TEESD. So sure, I could write a parser that pages down through the requirements list and replaces the mirgecom line with the desired branch - but given that master can already install a given branch for me in a certain place, with a desired conda env; this PR seems like a step backwards from that.

This could be something simple like
$ sed -i -e s,/mirgecom,/mirgecom@$branchname, requirements.txt

I tried the --env-name option, and it seemed to have worked for me. I change this slightly to use cut instead of awk to solve a different error, but it's not clear to me what you mean here.

When you use conda with the -p option to specify a path to conda (that's what I meant by path-type env), then it shows up in the list as an environment with an empty first column (it's stupid but... you can't name a path-type env). I previously would create a conda env at a specified path. This also works in master, but this PR breaks that capability. Again, I can work around this, but it is easy to fix in the scripts.

Ok, and would you keep that conda env (at the specified path), around for more than a single TEESD run?

Re: installing to a user-defined location:

It's possible, but I was hoping to limit the number of (potentially untested) options that we have in our already fragile installation system.

I can, as you say, check out emirge for each new install and install it right in that location. However, I need to blow away the previous conda env that went with this installation, too. (If you don't, the install fails for me currently) Blowing away the existing env does not seem to be a part of the install script - so again, I have manual steps that I need to take to set up so that I can install properly, which make TEESD's task so much harder. This problem I still face in current master.

Isn't uninstalling just a matter of deleting the conda folder?

Right, I think the safest (and most realistic?) option is to remove everything that you installed for each test after the test finishes and start from scratch every time.

I'm OK blowing away the existing environment. I just need to script that above-and-beyond what our install manager (emirge) does. So will the users.

Can you point me to the code that fails?
(woops)
Sure, it's just mirgecom.   Running install on a new branch to an existing env fails.

So you're running ./install.sh --env-name <existing_env> in emirge, and that fails? What is the error?


Lack of clock synchronization can be exploited by a weak adversary to trigger (targeted) false positive

Once  #12  has been fixed (see PR #13), the reference implementation (and the specification from the white paper) suffers from a different attack when phones' clocks are not perfectly synchronized.
An attacker can then trigger a false positive in a target phone's victim by broadcasting some EphID he has computed himself from infected SKs. This timing of the different actions is really important, which makes it hard to carry it out. But I guess an attacker could retry until this works. I don't know exactly how to assess the practical implication of this attack.
Details are in the PoC you can find there: https://github.com/LCBH/reference_implementation/blob/PoC_desynch/testAttack.py
Just type python3 testAttack.py with LoCostDP3T.py in the same folder. Here is the output that should be self-explanatory:
Current time: 2020-04-01 00:00:01.
Day 0: Alice, Bob, and Isidor do not have contact. Isidor SK: [ce5fd1a1...]. Current Isidor's date: [2020-04-01 00:00:01].
   + New day for Isidor
   + New day for Alice
Day 1: Alice, Bob, and Isidor do not have contact. Isidor SK: [568d5efa...]. Current Isidor's date: [2020-04-02 00:00:01].
   + New day for Isidor
   + New day for Alice
Day 2: Alice, Bob, and Isidor do not have contact. Isidor SK: [00bb2c63...]. Current Isidor's date: [2020-04-03 00:00:01].
   + New day for Isidor
   + New day for Alice
Day 3: Alice, Bob, and Isidor do not have contact. Isidor SK: [6150c529...]. Current Isidor's date: [2020-04-04 00:00:01].
   + New day for Isidor
   + New day for Alice

Day 4: Isidor is tested positive and publish SK_t[day-2]=[00bb2c63...] with infectious time=[2020-04-03 00:00:01]. Current SK is [9a30016a...]. So far, not a single entity has received an EphID. Current Isidor's date: [2020-04-05 00:00:01].

 --> Step 1. Attacker fetches Isidor's infected SK_t at time [2020-04-05 00:00:01] and compute a valid EphID corresponding to time [2020-04-04 23:59:59].
     Fake EphID: [c293f5fc...] for SK=[6150c529...].

 --> Step 2. Alice's internal clock is 2 minutes ahead of time [2020-04-04 23:57:49] and receives the fake EphID multiple times.

 --> Step 3. After a while (next day, but it does not really matter), Alice checks if she is at risk. She is not but DP-3T concludes that she is:
   + New day for Isidor
   + New day for Alice
At risk, observed c293f5fcdacb77c3b8e62a4f4003a225 on day (2020-04-05)-1 day(s) for 126 seconds

It seems that a more conservative choice of the time window for which EphIDs have to be computed could be necessary (in the specification). The current check consider a fixed window (instead of a moving window), which makes it discontinuous, hence the attack.

Good point! I don't think this is fixed in the rewritten implementation, although we tried to be much more careful with how batches of keys are released, this boundary condition is still present.
I believe the fix would be to delay releasing a batch of keys by a few minutes. So they keys that are valid up to 16:00h would be released at 16:10h for example. Then even if Alice's clock is 10 minutes slow, she will receive all adversarially broadcasted EphIDs after 16:00h and will therefore not consider them.
Does this work?


post-process: support run table analyze after all tables are finished

What problem does this PR solve?
What is changed and how it works?
Check List
Tests

Unit test
Integration test
Manual test (add detailed scripts or steps below)
No code

Side effects

Possible performance regression
Increased code complexity
Breaking backward compatibility

Related changes

Need to cherry-pick to the release branch
Need to update the documentation
Need to update the tidb-ansible repository
Need to be included in the release note

how about #358 🤔

how about #358 🤔

Even based on #358, we still need to do extra work to allow delay analyze phase until all other tasks are finished. Since in our current design, post-process are always executed together.

Okay.


Fix cannot import name 'json' from 'itsdangerous'" cause by itsdangerous update

please refer to https://serverfault.com/questions/1094062/error-from-itsdangerous-import-json-as-json-importerror-cannot-import-name-j

fix flask dependency issues


Add MotionBlurFilter

Detail at https://github.com/pixijs/pixi-filters/issues/69

When https://github.com/pixijs/pixi.js/issues/4393 be solved , I will refactor this one again.

Why did you close?

after #106 be merged , I will update this PR , and reopen it again.

After #106 is merged , I will change this PR and reopen it.


[fix] draw full-width chars problem

I found the following problem.

Half-width characters (such as "123") are painted correctly, but full-width ones(such as "１２３", "あいう") are painted incorrectly(not centering).
I have solved this problem with this diff.
Like this:

If you need it, please refer to it.

Thanks for the fix! I'll check it.

Seems these changes affected the presentation test, could you update the golden files?
The golden files were generated on MacOS.
If you have any trouble on it, I can handle it.

Thank you for your review!!
I have added a fixed golden file.
Now, I confirm to pass all tests.

I'll published a new release soon, thanks again for your contribution. 😊


Why is offload_folder needed for inference of large models?

It does not make sense to me. Why does it load the model first, then offloads some of its weights into files in a different place? Why not just load the weights as needed from the original files or at least have an option to do so?

That's because PyTorch does not let you load an individual weight from a state dict because they pickle the whole thing.

Sounds like it would make sense to distribute larger models in binary format instead of PyTorch format. Right now offload scenarios double the storage requirements due to that issue.

Alternatively, could you make it possible to download the model in PyTorch format, then convert it to binary for accelerate to read directly from "offload_folder"?