Move y-origin for charts?

I would like to plot data where the Y-axis starts at -90, so for a column type all columns should start at -90 and go up (instead of going down from 0 for negative values and going up from 0 for positive values). Is this possible, to move the Y-origin?

this is currently not possible. however, you could use the ticksFormatter and the tooltip: { formatter } option to modify the ticks and tooltips - such that you map them to a different range. but this is a very dirty hack.
var shift = 90;
var xFormat = d3.format('g');
var yFormat = d3.format('.2f');
var yMap = function(y){ return yFormat(y-shift); };
var yMapInversed = function(y){ return y+shift; };
$scope.options = {
  ...
  axis: {
    x: {ticksFormatter: xFormat},
    y: {ticksFormatter: yMap}
  },
  tooltip: {
    formatter: function(x, y, series) { return xFormat(x) + ": " + yMap(y); }
  }
};
var data = [ ... ];
$scope.data = data.map(function(d){
  d.y = yMapInversed(d.y);
  return d;
});

Works perfectly, thanks!
(One minor comment for future readers: the option axis should read axes, otherwise little will happen. That's what I discovered after a nice debugging session.)

nice, thanks for the hint :D yeah I am always confusing is and es


add console.error for async TranscriptLogger.logActivity() impl in TranscriptLoggerMiddleware

Fixes #383
Description
Previously, if asynchronous TranscriptLogger.logActivity() implementations threw an error in TranscriptLgogerMiddleware, an UnhandledPromiseRejectionWarning would occur. This PR changes TranscriptLoggerMiddleware to instead console.error the error thrown via an appended catch().
Specific Changes

Add logic to append catch if TranscriptLoggerMiddleware.logger.logActivity() returns a Promise
Add tests for synchronous and asynchronous error handling in TranscriptLoggerMiddleware.onTurn() when calling this.logger.logActivity()

Pull Request Test Coverage Report for Build 2298

4 of 4 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.08%) to 82.21%

Totals

Change from base Build 2296:
0.08%

Covered Lines:
2633

Relevant Lines:
3082

💛  - Coveralls


Missing model when @model(queries: null) but with @key queryField defined

Describe the bug
When I set queries: null on @model but I define a @key with a queryField, the ModelContentCategoryConnection is not compiled.
type ContentCategory @model(queries: null, mutations: { create: "addContentToCategory", delete: "deleteContentFromCategory"})
@key(name: "ContentByCategory", fields: ["category", "type", "language", "datetime"], queryField: "listContentByCategory")
{
	id: ID!
	category: Int!
	datetime: String!
  	type: ContentType!
  	language: Language!
	content: Content @connection
}

This is compiled:
type Query {
  listContentByCategory(category: Int, typeLanguageDatetime: ModelContentCategoryContentByCategoryCompositeKeyConditionInput, sortDirection: ModelSortDirection, filter: ModelContentCategoryFilterInput, limit: Int, nextToken: String): ModelContentCategoryConnection
}

However, the ModelContentCategoryConnection input is missing in the compiled schema.
Workaround
type ContentCategory @model(queries: { list: "listContentCategories"}, mutations: { create: "addContentToCategory", delete: "deleteContentFromCategory"})
@key(name: "ContentByCategory", fields: ["category", "type", "language", "datetime"], queryField: "listContentByCategory")

Adding a query (or removing the null of course) fixes the generation of the model.
Expected behavior
A model to be generated if the only query added is via @key.

@BabyDino what version of the CLI are you using? Could you please try to repro it with the latest version and get back to us?

@attilah I've just tested it with the latest release (3.11.0). The problem still exists.
Schema Creation Status is FAILED with details: Found 1 problem(s) with the schema: The field type 'ModelCategoryCategoryConnection' is not present when resolving type 'Query'

@attilah I'm still seeing this happens when also using a @key widthqueryField and setting queries: null on 4.24.3.
Documentation is weak on this, not sure if there's a specific way to set this, but I did try with { get: "getMyModel" } and that also failed on push.

This happens no matter how I try, I also tried queries: { list: null } with the same result. This model has public access, so I'm interested in removing listing as it should only be accessible to read by the @key based query.
Error:
AWS::AppSync::GraphQLSchema Wed Jul 22 2020 23:58:32 GMT-0500 Schema Creation Status is FAILED with details: Found 1 problem(s) with the schema: The field input type 'ModelRedirectFilterInput' is not present when resolving type 'Query' [@1475:1]
With that it seems there's no way to use only a @key and have all other queries removed in the current latest version of Amplify.

If I remove the auto-generated query I am able to use the @key directive without any issues. Seems like the generated query depends on the Filter Input which is generated by @model directive unless it is turned off.
So, I have this, which works for me:
type Foo
  @model(queries: null)
  @key(name: "fooKey", fields: ["hash", "sort"], queryField: null)

+1 I'm getting similar error and filed https://github.com/aws-amplify/amplify-cli/issues/6029 for it.


[release-1.11] vendor: update storage for a panic fix

same as https://github.com/kubernetes-sigs/cri-o/pull/1900 for 1.11

/test all


Null safety

Dart's null safety is now in beta and all packages are encouraged to migrate to it.

New version of the packages with null-safety support were published to pub.dev:

https://pub.dev/packages/touch_bar
https://pub.dev/packages/touch_bar_platform_interface
https://pub.dev/packages/touch_bar_macos


Unable to use RealESRGAN_x4plus_anime6B

LogLine("Creating image ...");
IImage?  imageTemp = await Task.Run(() => _model?.TextToImage(Prompt, parameter)); // 文本生成图像
if (_upscaleModel != null&&imageTemp!= null)
{
LogLine("Upscaling image ...");
Image = await Task.Run(
() =>
_upscaleModel?.Upscale(
imageTemp,
ESRGANUpscaleFactor
)
);
}
else
{
Image = imageTemp;
}

After generating the image and then using ESRGAN, the program immediately crashes

Thanks for reporting this. It should be fixed with https://github.com/DarthAffe/StableDiffusion.NET/releases/tag/3.1.1

Thanks for reporting this. It should be fixed with https://github.com/DarthAffe/StableDiffusion.NET/releases/tag/3.1.1感谢您报告此事。它应该用https://github.com/DarthAffe/StableDiffusion.NET/releases/tag/3.1.1修复
Thank you for your contribution. I can use it now, but the  （int upscaleFactor） parameters are not working

Thanks for reporting this. It should be fixed with https://github.com/DarthAffe/StableDiffusion.NET/releases/tag/3.1.1

Thank you for your contribution. I can use it now, but the （int upscaleFactor） parameters are not working

Thanks for reporting this. It should be fixed with https://github.com/DarthAffe/StableDiffusion.NET/releases/tag/3.1.1

Is it because the model （RealESRGAN_x4plus_anime_6B）itself cannot change the scaling factor？

Yes, it seems like the upscale-factor is currently not used in stable-diffusion.cpp. it always uses the factor reported by the ESRGAN model.

Yes, it seems like the upscale-factor is currently not used in stable-diffusion.cpp. it always uses the factor reported by the ESRGAN model.是的，似乎 upscale-factor 目前没有在 stable-diffusion.cpp 中使用。它始终使用 ESRGAN 模型报告的因子。

I understand, thank you！


improved: move level check from entry to logger and bail out faster

Hi there.
Thank you for logrus, it's a wonderful logger.
I was benchmarking loggers, as mentioned in https://github.com/imkira/go-loggers-bench
and I found I could make logrus bail-out faster (but more importantly, lesser allocations) when the baseline log-level is higher than the level being logged.
This is a modest attempt to improve it.
I didn't do it in this PR, but I also tried to do the same with WithFields, but given the current API it is very difficult to do it.
My idea was to invert
log.WithFields(...).Info(...)
and allow something like:
log.Info(...).WithFields(...)
or alternatively something like
log.WithLevel(Info).WithFields(...).Log(...)
Using this kind of API it would be possible to return "blackhole" entries/loggers when the level does not satisfy the level condition.
What do you think of it?

@Sirupsen done. Let me know if its good now

Thank you! It'll be in 0.7.1

You should re-run the benchmarks :) I'll happily accept other performance patches like this that don't break the API.

Thanks!
https://github.com/imkira/go-loggers-bench
Updated.


Loading an external SVG file.

Hi,
Is it possible to load in "rect" an external SVG file instead of an image? (cross fingers..)
Ive been looking some examples, like this one. [https://github.com/openseadragon/svg-overlay/issues/27]
and tried to change it to and svg file instead but no success.
Thanks lots in advance for any help.

For anyone please refer here:
here

Did you get it to work using the CodePen example? That example uses the Snap library to help out, but presumably it's possible without an extra library if you want.
Anyway, the basic idea is you open up the external SVG and pull elements out of it and drop them into the SVG attached to the OpenSeadragon viewer.

I found the Snap library and did the work. It took me ages to understand the positioning and size of the svg but im on the way. Thanks !

Glad to hear it's working out :)

Hi Salitehkat.
Could you please explain more in deep how are you made to have the referred Codepen working?
Even resolving the CORS issue (downloading and playing it all from a local HTTP server) and with not console errors, it still doesn't show any SVG at all for me.
Best regards.

Hi again Salitehkat:
Forgive me my last comment. I've finally succedeed to have it working (only a mistake with paths).
Any advice about your statement: "It took me ages to understand the positioning and size of the svg"?
Best regards.

Hi, honestly didnt finish understanding it completely. Sometimes it works, sometimes it doesnt. What ive been concluding is that if your svg file measures 300px width, you have to put the same width in the viewer part
var viewer = OpenSeadragon({     id: "contentDiv",     prefixUrl: "//openseadragon.github.io/openseadragon/images/",     tileSources: [{         tileSource: tileSource,         width: 300     }] });
This will show the svg same size as your viewport (like 1:1).
ps: My page is 100% width.
Finally ive seen that some svg grabbed form the internet work much better. MIne sometimes show, sometimes they dont, and the positions are not clear. So I have to check well about making proper svg.
here is a  guideline that helps.
Im still experimenting. Ill post each success (if any ;).
suerte!

One thing to note about that codepen is that it's assuming there's just a single element at the top of the SVG that needs copying over (a g). In reality, some SVGs have a lot of elements that aren't grouped into a g, or maybe there are a bunch of groups or whatever.
Another thing to keep in mind is the SVG has its own idea for how big it should be drawn (i.e. the coordinates of all of its elements). You may need to wrap the whole thing in a transform to adjust it as you need.

Ok, Ian:
Now I have my SVGs ( indeed) loaded fine (w/o using any third party lib, as is a relatively simple task), and I can position and scale then with the help of a syntax like this:
g.setAttribute("transform", "translate(0.4,0.3)scale(0.0025)");
In the process of having the SVG ( indeed) embedded fine the use of FF Document Inspector was a great help.
However, a strange think happens, as the SVG is only shown briefly and then immediately hidden under the OSD image.
Do you have an idea of what can be happening here with the SVG element? I'm tried to set z-index to a large value (i.e. 9999) w/o any different behavior.
Thanks for your time.
P.S. BTW I'm using also a standard OSD overlay (in order to show a focus rect styled via CSS), which is shown w/o problem over the image.

And again here:
Well, to complete my last comment, doing the things in a proper way, that is, waiting to have the image loaded before loading the SVGs, by means of:
_viewer.addHandler('open', function() {   ...   _loadSVG(...);   ... }
avoid the "phantom" effect.
My fault.
Thanks for your time.

Fantastic! Glad to hear you're getting it figured out. Looks like you were able to sort it all out :)
I wonder if you might be able to share some of the knowledge you've gained doing this... I don't know if it would be a blog post or some sample code or a plugin, but I'm guessing you're not the only one who would like to be able to add SVG like this!

Ok Ian, as soon as I have all the modules working together I'll try to follow your recommendation.
Well, I feel like I've kidnapped this Salitehkat 's thread for my own purposes. In that case I wanted to apologize.
Best regards.

Sounds good, and no worries as far as I'm concerned... I hope @Salitehkat doesn't mind. :)

Of course, and more of course not. Never.

Hi,
After testing with D3 and Snap, my question is: is it posible to load an external SVG without using any extra library but only using the OSD svgOverlay? (no snap, no d3).  I am trying to find examples but didnt succeed. If its posible, is there any code example ?
I am trying to minimize as much as posible the resources.
Thank you very much.

Hi Salitehkat:
If you don't need any high-level functionality from a specific library, you can do it all with vanilla JavaScript.
Loading is done the standard ajax way, and all the rest is not very complicated.
I'll be able to be more specific tomorrow evening, as I will be in front of my computer (not my phone like now) then.
Best regards.

Thanks! It would be a super help.
Danke again.

Well, I presented in other threads of this forum, you can load the SVG in the classic ajax-way:
function _loadSVG(path, callback) { 		var xhr = new XMLHttpRequest(); 		xhr.onload = function(e) { 			try { 				if (xhr.readyState == 4 && xhr.status == 200) { 					callback(xhr.responseXML.documentElement); 				} 			} catch(e) { 				console.log(e); 			} 		}; 		// 		xhr.open("GET", path, true); 		xhr.overrideMimeType("text/xml"); 		xhr.responseType = "document"; 		xhr.send(); 	}
Then, you only need to process the data retrieved in the best way, depending of your source SVG structure or the use of it you want to implement in your own code.
That is, for a simple processing of a SVG file with a top-level group (g) element:
_loadSVG(path, function(data) { 				var g = data.getElementById("group-identifier"); 				_osdSVG.node().appendChild(g); 				// 				... 			});
If you want a more sophisticated processing of the SVG file, or if it is a multi-layered SVG (a layer is actually a group), i.e.:
_loadSVG(path, function(data) { 				_osdSVG.node().appendChild(data.getElementsByTagName("defs")[0]); 				// 				var g=document.createElementNS("http://www.w3.org/2000/svg", "g"); 				g.id="0461005"; //of course here goes whatever you prefer 				g.appendChild(data.getElementById("layer1")); 				g.appendChild(data.getElementById("layer2")); 				g.appendChild(data.getElementById("layer3")); 				g.appendChild(data.getElementById("layer4")); 				_osdSVG.node().appendChild(g); ... });
I hope this helps you a bit.
Best regards.

Hi vortice3D, sorry to disturb. Please can you show me a full example (for level -20 of understanding?). I tried this weekend but its all so new that I couldnt adapt the code you provided and load the svg. Sorry so much for my low level and thanks for your time.

FINALLY!!
`var overlay = viewer.svgOverlay();
			var path = "images/svg.svg";

						function _loadSVG(path, callback) {
				var xhr = new XMLHttpRequest();
				xhr.onload = function(e) {
					try {
						if (xhr.readyState == 4 && xhr.status == 200) {
							callback(xhr.responseXML.documentElement);
						}
					} catch(e) {
						console.log(e);
					}
				};
				//
				xhr.open("GET", path, true);
				xhr.overrideMimeType("text/xml");
				xhr.responseType = "document";
				xhr.send();
			}

		_loadSVG(path, function(data) {
			var g = data.getElementById("elements");

			overlay.node().appendChild(g);

		});

`
Thankuuu!

Hi, Salitehkat:
I'd like to apologize for not responding your last request, but I've been out of the city for holidays.
Luckily, I can see you have been able to solve it yourself.
Best regards.

Yes ;) many thanks for providing the code.
enjoy holidays.

Hi, I have animations happening as soon as the whole SVG is loeaded, but its inconsistent because the svg sometimes loads later than the animation functions ect...Is there a way to stop any other function from running till the svg has been loaded completely in the following code? No matter how many tryouts ive done I cant figure how.
this is the code:
var path = "images/svg.svg";
function _loadSVG(path, callback) {
var xhr = new XMLHttpRequest();
try {
if (xhr.readyState == 4 && xhr.status == 200) {
callback(xhr.responseXML.documentElement);
}
} catch(e) {
console.log(e);
}
};
xhr.open("GET", path, true);
xhr.overrideMimeType("text/xml");
xhr.responseType = "document";
xhr.send();
}
_loadSVG(path, function(data) {
var g = data.getElementById("elements");
overlay.node().appendChild(g);
});`
Thanks so much for nay help or tip.

Hi Salitehkat:
All you need to do is move the code you want to be executed as soon as the SVG is loaded to the callback, this way:
_loadSVG(path, function(data) {
  var g = data.getElementById("elements");
  overlay.node().appendChild(g);
  //
  runRenderLoop();
});`

where runrenderLoop launchs the render on a per-frame basis, i.e. renderFrame at 60FPS (if available):
function runRenderLoop(){
  var timer=window.setInterval(renderFrame(),1000/60);
}

Best reagrds.

Merci!!!


clean up root directory

changes done:

code-of-conduct must be named by CODE_OF_CONDUCT(can be verified by insights/community tab)
move github related files like README/CONTRIBUTING to docs(both rootDir/docs/.github folder are supported by github)
add subfolders in docs to ease future doc adding

Coverage remained the same at 44.083% when pulling 2ea4235d29fe62e717e108c8bbbcdef78caef4f6 on M00nF1sh:patch-structure into ea007e5da7830f0b0e83607c36868ee615f9f7c7 on kubernetes-sigs:master.

/lgtm


Fix ffprobe options

Fallback to base_options if options was not set

awesome, thank you for this PR!


PyPlot window is not opened

This happens on latest master version (which I used today).
The minimal working example is:
using PyPlot
plot(rand(10), rand(10))

An external window is not opened, when it should be.
also, the pygui() is true, I've checked it.

I am closing this because it turned out that the issue was related to PyPlot (PyCall), not Juno!


JBDS-4328 Move 'Detection is in progress' indicator in the middle of the screen

Codecov Report

Merging #685 into master will decrease coverage by 0.05%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #685      +/-   ##
==========================================
- Coverage   95.95%   95.89%   -0.06%
==========================================
  Files          29       29
  Lines        2470     2605     +135
  Branches      208      368     +160
==========================================
+ Hits         2370     2498     +128
+ Misses        100       95       -5
- Partials        0       12      +12

Impacted Files
Coverage Δ

browser/pages/confirm/controller.js
78.88% <0%> (-2.93%)
:arrow_down:

browser/model/kompose.js
91.66% <0%> (-1.82%)
:arrow_down:

browser/services/componentLoader.js
98.78% <0%> (-1.22%)
:arrow_down:

browser/services/data.js
98.54% <0%> (-0.46%)
:arrow_down:

browser/services/platform.js
91.97% <0%> (-0.24%)
:arrow_down:

browser/model/helpers/hash.js
100% <0%> (ø)
:arrow_up:

browser/pages/install/controller.js
100% <0%> (ø)
:arrow_up:

browser/model/installable-item.js
100% <0%> (ø)
:arrow_up:

browser/model/cygwin.js
100% <0%> (ø)
:arrow_up:

browser/main.js
100% <0%> (ø)
:arrow_up:

... and 16 more

Continue to review full report at Codecov.

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

It's in a nice spot, but can you make it even more visible? Like even 3 times as large and with a colour that is not as grey-ish as everything in the background. Not sure what choice we have on colours, maybe light blue? WDYT?

And you could even try to move the detection message along with the spinner. Just an idea to consider, it might look better :)

See linked PR for details


linter error in version 2018.12.0

Environment data

VS Code version: 1.30.0
Extension version (available under the Extensions sidebar): 2018.12.0
OS and version: MacOS 10.14.2 (18C54)
Python version (& distribution if applicable, e.g. Anaconda): python 3.6.6
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): venv
Relevant/affected Python packages and their versions:

pylint 2.2.2
astroid 2.0.4
Python 3.6.6 (default, Sep 17 2018, 16:44:58)
[GCC 4.2.1 Compatible Apple LLVM 9.1.0 (clang-9<IP_ADDRESS>)]

Extension infomation:
Name: Python
Id: ms-python.python
Description: Linting, Debugging (multi-threaded, remote), Intellisense, code formatting, refactoring, unit tests, snippets, and more.
Version: 2018.12.0
Publisher: Microsoft
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=ms-python.python

Expected behaviour
Pylint work as it was
Actual behaviour

Steps to reproduce:

Upgrade vscode python extension to 2018.12.0
open any python  file

Logs
Starting Microsoft Python language server.
Linting with mypy failed.
TypeError: Converting circular structure to JSON
Linting with pylint failed.
TypeError: Converting circular structure to JSON
##########Linting Output - bandit##########
94,0,MEDIUM,B104:Possible binding to all interfaces.
173,0,LOW,B101:Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
188,0,LOW,B101:Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
189,0,LOW,B101:Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Microsoft Python Language Server version <IP_ADDRESS>
Initializing for /Users/ruohan.chen/.pyenv/versions/vpc_test-3.6.6/bin/python

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help)
[Extension Host] [modelines] could not find TextEditor
console.ts:134 [Extension Host] Python Extension: There was an error in running the linter mypy TypeError: Converting circular structure to JSON
	at JSON.stringify (<anonymous>)
	at module.exports.t.ProcessService.getDefaultOptions (/Users/ruohan.chen/.vscode/extensions/ms-python.python-2018.12.0/out/client/extension.js:83:315447)
	at module.exports.t.ProcessService.exec (/Users/ruohan.chen/.vscode/extensions/ms-python.python-2018.12.0/out/client/extension.js:83:314478)
	at p.<anonymous> (/Users/ruohan.chen/.vscode/extensions/ms-python.python-2018.12.0/out/client/extension.js:83:326851)
	at Generator.next (<anonymous>)
	at module.exports.i (/Users/ruohan.chen/.vscode/extensions/ms-python.python-2018.12.0/out/client/extension.js:83:324782)
	at new Promise (<anonymous>)
	at module.exports.i (/Users/ruohan.chen/.vscode/extensions/ms-python.python-2018.12.0/out/client/extension.js:83:324559)
	at p.execModule (/Users/ruohan.chen/.vscode/extensions/ms-python.python-2018.12.0/out/client/extension.js:83:326765)
	at u.<anonymous> (/Users/ruohan.chen/.vscode/extensions/ms-python.python-2018.12.0/out/client/extension.js:83:328639)
	at Generator.next (<anonymous>)
	at s (/Users/ruohan.chen/.vscode/extensions/ms-python.python-2018.12.0/out/client/extension.js:83:327651)
	at <anonymous>
t.log @ console.ts:134
notificationsAlerts.ts:40 There was an error in running the linter 'mypy'
t.onDidNotificationChange @ notificationsAlerts.ts:40
console.ts:134 [Extension Host] Python Extension: There was an error in running the linter pylint TypeError: Converting circular structure to JSON
	at JSON.stringify (<anonymous>)
	at module.exports.t.ProcessService.getDefaultOptions (/Users/ruohan.chen/.vscode/extensions/ms-python.python-2018.12.0/out/client/extension.js:83:315447)
	at module.exports.t.ProcessService.exec (/Users/ruohan.chen/.vscode/extensions/ms-python.python-2018.12.0/out/client/extension.js:83:314478)
	at p.<anonymous> (/Users/ruohan.chen/.vscode/extensions/ms-python.python-2018.12.0/out/client/extension.js:83:326851)
	at Generator.next (<anonymous>)
	at module.exports.i (/Users/ruohan.chen/.vscode/extensions/ms-python.python-2018.12.0/out/client/extension.js:83:324782)
	at new Promise (<anonymous>)
	at module.exports.i (/Users/ruohan.chen/.vscode/extensions/ms-python.python-2018.12.0/out/client/extension.js:83:324559)
	at p.execModule (/Users/ruohan.chen/.vscode/extensions/ms-python.python-2018.12.0/out/client/extension.js:83:326765)
	at u.<anonymous> (/Users/ruohan.chen/.vscode/extensions/ms-python.python-2018.12.0/out/client/extension.js:83:328639)
	at Generator.next (<anonymous>)
	at s (/Users/ruohan.chen/.vscode/extensions/ms-python.python-2018.12.0/out/client/extension.js:83:327651)
	at <anonymous>
t.log @ console.ts:134
notificationsAlerts.ts:40 There was an error in running the linter 'pylint'
t.onDidNotificationChange @ notificationsAlerts.ts:40
console.ts:134 [Extension Host] [modelines] setting editor options: {}

Same issue

I verified this bug and found that you can reproduce this issue with pylint + any combination of other linters being used in tandem with pylint, it is not necessary to use all other linters described.

I have the same problem using flake8 and mypy which both fails the same way (but bandit not).

In src/client/common/process/proc.ts:
    private getDefaultOptions<T extends (ShellOptions | SpawnOptions)>(options: T) : T {
        const execOptions = options as SpawnOptions;
        const defaultOptions = JSON.parse(JSON.stringify(options));

It  fails because options has a token field that contains a circular structure. A crude patch:
        const safeOptions = Object.assign({}, options);
        delete safeOptions.token
        const defaultOptions = JSON.parse(JSON.stringify(safeOptions));

I just started having the same problem this morning.

It looks like PR #3702 would fix this

A temporary fix is to disable all but one linter. In my case, setting python.linting.banditEnabled to false fixed the problem (but of course then you're not using your other linter, so it's just a quick fix to avoid the error until it's patched).


round(), floor() and ceil() for big numbers

The following code doesn't compile:
constexpr long double const a = 42e32;
constexpr auto const f = gcem::round(a);

My g++-7.4.0 gives me:
file.cpp: In function ‘int main()’:
file.cpp:49:38:   in constexpr expansion of ‘gcem::round<long double>(4.20000000000000011729e+33l)’
./../include/gcem_incl/round.hpp:70:33:   in constexpr expansion of ‘gcem::internal::round_check<long double>(((long double)x))’
./../include/gcem_incl/round.hpp:52:35:   in constexpr expansion of ‘gcem::internal::round_int<long double>(gcem::abs<long double>(((long double)x)))’
./../include/gcem_incl/round.hpp:33:37:   in constexpr expansion of ‘gcem::internal::find_whole<long double>(((long double)x))’
./../include/gcem_incl/find_whole.hpp:37:42:   in constexpr expansion of ‘gcem::internal::floor_check<long double>(((long double)x))’
file.cpp:49:40: error: overflow in constant expression [-fpermissive]
  constexpr auto const f = gcem::round(a);
                                        ^
file.cpp:49:40: error: overflow in constant expression [-fpermissive]
file.cpp:49:40: error: overflow in constant expression [-fpermissive]

The same is true if you replace round with floor or ceil.
I think it should at least be documented that these functions will fail if the input is outside of the bounds of a long long int. Alternatively, maybe it is possible to fall back to a different algorithm for large numbers or deduce that all numbers larger than std::numeric_limits<long long int>::max() are integers anyway (this might at least be true for the smaller floating point types like float, I didn't check). In the latter case, it would be fine to just return the input unmodified.

The way floating points are designed is that, the bigger the number is, the more precision you lose, and doing some testing i found the threshold values for each type, which interesting is that they are still convertible to integers, I'll fork this and implement the support and make a PR


[TextField] Allow overriding default TextField props from the theme

[x] I have followed (at least) the PR section of the contributing guide.

Fixes #14107
~I tried the solution suggested by @oliviertassinari here but it is not perfect because then there are a problems with TextField.defaultProps and TextField.componentDidMount variant specific logic. So i thought about implementing this via hoc, i thought about adding withProps hoc but after all i  decided to extend existing functionality of withTheme. wdyt?
cc: @ifndefdeadmau5~

@eps1lon If we move forward with the withStyles approach, we are introducing a breaking change. People will not be able to access the FormControl classes directly. We can add a FromControlClasses property to workaround the problem.

Weird that argos only complains now about the difference created in #14383: https://www.argos-ci.com/mui-org/material-ui/builds/41639

@janowsiany It's a great first pull request on Material-UI 👌🏻. Thank you for working on it!


Specify filename encoding

Else python will try to encode accented filenames with ascii codec, which will fail.

I haven't run into this issue so far, is this a Pre-Python 3 issue? In the latest version (branch 0.0.7) Python 2 support is being phased out.

Indeed, it is a python2 issue. So no need to bother if you are phasing out python2 support.

I'll probably release a 0.0.6-02 bugfix right before 0.0.7 for people who have no choice but to remain under Python 2, I'm leaving behind Python 2 to speed up development not abandon users after all 😸

Merged, thanks for the PR. I'll tag a release now before merging 0.0.7 so users under Python 2 can benefit from this.


step095 runtime error on MacOS

When launching the app built from a clean branch step095 on MacOS, I get:
pierric@pierrics-mbp LearnWebGPU-Code % ./build/App
Requesting adapter...
Got adapter: <wgpu::Adapter 0x6000028b3b20>
Requesting device...
Got device: <wgpu::Device 0x600000d8dd50>
thread '<unnamed>' panicked at 'Unexpected backend Empty', src/lib.rs:3619:22
stack backtrace:
   0:        0x10515c070 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h819e9cbdf1a9e730
   1:        0x105173864 - core::fmt::write::ha5e9bf3131ecb7c0
   2:        0x105159f80 - std::io::Write::write_fmt::h414ce9994bf17404
   3:        0x10515be84 - std::sys_common::backtrace::print::h8072db0bbd5bcc3d
   4:        0x10515d0f8 - std::panicking::default_hook::{{closure}}::h2c85c5b0c2ede151
   5:        0x10515ceb8 - std::panicking::default_hook::hcf2f70992d02f6fe
   6:        0x10515d5d0 - std::panicking::rust_panic_with_hook::h023af7f90b47eb8b
   7:        0x10515d504 - std::panicking::begin_panic_handler::{{closure}}::h14283519edc1d634
   8:        0x10515c490 - std::sys_common::backtrace::__rust_end_short_backtrace::hc366c0b0cef5b747
   9:        0x10515d298 - _rust_begin_unwind
  10:        0x10519cc64 - core::panicking::panic_fmt::h324f50b29db90195
  11:        0x104f6ffa4 - _wgpuSurfaceGetPreferredFormat
  12:        0x10421574c - __ZN4wgpu7Surface18getPreferredFormatENS_7AdapterE
  13:        0x1041f3044 - __ZN11Application19initWindowAndDeviceEv
  14:        0x1041f2ae4 - __ZN11Application6onInitEv
  15:        0x1041f2118 - _main
fatal runtime error: failed to initiate panic, error 5
zsh: abort      ./build/App
pierric@pierrics-mbp LearnWebGPU-Code %

Compiling and running step095 on Ubuntu 22.04 work without a hitch.

Is it a ARM (M1) or an x64 CPU? I may be able to test on a mac soon.

What's your screen resolution?  See:  https://github.com/eliemichel/LearnWebGPU-Code/issues/30

The issue is that the adapter is released right after device is requested, and then bit later m_surface.getPreferredFormat(adapter) is called on already released adapter. Seems to solve the issue if you release the adapter later.


[SPARK-50322][SQL] Fix parameterized identifier in a sub-query

What changes were proposed in this pull request?
In the PR, I propose to postpone parameters resolution till UnresolvedWithCTERelations is resolved.
Why are the changes needed?
To fix the query failure:
execute immediate 'with v1 as (select * from tt1 where 1 = (Select * from identifier(:tab))) select * from v1' using 'tt1' as tab;
[UNBOUND_SQL_PARAMETER] Found the unbound parameter: tab. Please, fix `args` and provide a mapping of the parameter to either a SQL literal or collection constructor functions such as `map()`, `array()`, `struct()`. SQLSTATE: 42P02

Does this PR introduce any user-facing change?
No.
How was this patch tested?
By running new test:
$ build/sbt "sql/test:testOnly org.apache.spark.sql.ParametersSuite

Was this patch authored or co-authored using generative AI tooling?
No.

Merging to master. Thank you, @srielau and @cloud-fan for review.

We don't need to backport this fix to branch-3.5 because it doesn't have the changes https://github.com/apache/spark/pull/47180.


Docker build fails

Problem description
I tried to set up a Guardian instance following this guide, but the build fails. Please see the screenshot below.
Step to reproduce

Follow the installation guide here: https://docs.hedera.com/guardian/guardian/readme/getting-started/installation/building-from-source-and-run-using-docker.
Build process fails after a few minutes with "error TS2742: The inferred type of 'subscribe' cannot be named without a reference to '@guardian/common/node_modules/nats'. This is likely not portable. A type annotation is necessary."

Expected behavior
Build should succeed when following the official installation guide.
Things I've tried but which did not work

Running docker system prune -a before re-executing docker compose up -d --build.
Re-pulling the Git repo.
Running docker compose build --no-cache instead of docker compose up -d --build.

Screenshots

Setting "declaration" to false in the following three files seems to provide a temporary work-around:
./api-gateway/tsconfig.json
./api-gateway/tsconfig.production.json
./application-events/tsconfig.production.json
Note: I suspect it's actually only the change to /application-events/tsconfig.production.json that's currently providing the relief, but I did not have to time to undo the changes to the ./api-gateway/... files and retest the build.


FLAC files lose their name immediately

When I drag a FLAC file to the playlist, it shows the name like normal, but then the name is immediately replaced by ???.
Maybe it's trying to replace it with metadata that doesn't exist?

Do you have an example flac file that you could share?

https://drive.google.com/open?id=1Q8DAjhyxGr6SXN1ks6LJuwCShdrBRfxT
Looks like I only have this issue with flac files I created, and not some others that apparently have metadata.

Interesting. VLC seems to see the metadata:

jsmediatags does not:

Would you mind opening an issue on jsmediatags and see if they have any ideas over there?
cc @aadsm

Solved by using music-metadata-browser


e2e testing authentication routes

@dleard @BCerki  is this a duplicate of "Evaluate /test-setup endpoint #235"? https://app.zenhub.com/workspaces/team-moose-sprint-board-60d216175a2689000ec774d0/issues/gh/bcgov/cas-registration/235

@dleard @BCerki is this a duplicate of "Evaluate /test-setup endpoint #235"? https://app.zenhub.com/workspaces/team-moose-sprint-board-60d216175a2689000ec774d0/issues/gh/bcgov/cas-registration/235

I don't think so. #235 is about re-evaluating the way we've set up some of our e2e testing, and I ~think this one is about writing some specific tests.

This is already covered (#265) so we will close this one. cc @shon


Upgrade project code

Some changes:

Used styled-components instead external css files
Created three different components: GooglePreview, BingPreview and YahooPreview.
Used the exact css values used in google, bing and yahoo to mimic the same look
Ignored package-lock.json

Thank you so much @oscarotero!


go/lint: support profiling each package during testing

You can view reports with the following command:
go tool pprof gofuzz.test -web ./pkg/gofuzz/cpu.out

Codecov Report

Merging #234 (c8d2080) into master (1c2938c) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #234   +/-   ##
=======================================
  Coverage   78.37%   78.37%
=======================================
  Files           1        1
  Lines          37       37
=======================================
  Hits           29       29
  Misses          4        4
  Partials        4        4

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 1c2938c...c8d2080. Read the comment docs.

@hampgoodwin yep, it works in this repository. I plan to test it out on a few OSS repositories quickly after merging.
Artifacts are uploaded to the Actions summary page: https://github.com/moov-io/infra/actions/runs/1522694335


What's the reason of this error？

Hi, could you provide the code & the error in text format?

I have solve the problems.because the chrome didn't work，so i re-downloaded the right vision of Chromedrive matched the vision of chrome exe，and after Reset computer，that's solved.

If it can be changed to the password I specified, I think it might be better.it will be changed to a random password now.

Awesome! Glad to hear it is working. It does seem to be an issue with Chrome version even on my machine, so I went ahead and updated requirements.txt to not download a specific version (i.e. download the latest one) and specified version_main=109 in Driver Initialization as per issue on undetected_chromedriver 1047.
As for the feature idea, you're welcome to open a PR that implements it :) I think that the best way to go about this is to edit the format in accounts.txt to allow a second : which would indicate the desired user password. This would then be parsed in main.py and the Line 44 could be edited to look like:
new_password = desired_password or gen_sec_pass()
This would allow for desired_password to fall back to randomly generated password if the user did not provide it i.e. the variable is none.

To be honest，i am a fresh，so i don't know how to make it.but i will have a try.

Awesome! Let me know if you decide to do it.

I will close this issue and open up a new one specifically for the feature request.


update default image to 2.28.0

@gtully thanks for this PR, could you also add the RELATED_IMAGE envs, i.e. https://github.com/artemiscloud/activemq-artemis-operator/commit/7d2e0d0f78cc85d76179b862beffba41d795d56f

thanks, I was sure it was not that easy. on it.

the 12 needs to be a 13....


how to import?

Hi, thanks for making a current library for mining LinkedIn! Please add to the readme the statement I need to import the library. Any other help you could provide would be great.

Hi Michael, i've updated readme with usage and thanks for your comment.


scoped-access-token-mount not mounted anymore

Description
Generating application tokens is currently broken on main because scoped-access-token-mount doesn't get properly mounted anymore. So i'm unable to select permissions
Gitea Version
1.23.0+dev-377-g13439f119e built with GNU Make 4.4.1, go1.22.5 : bindata, timetzdata, sqlite, sqlite_unlock_notify
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots

Git Version
No response
Operating System
Docker on Ubuntu server
How are you running Gitea?
Docker compose
gitea:
    image: gitea/gitea:nightly

Database
MySQL/MariaDB

I came across the following warning:

I found this comment: https://github.com/fengyuanchen/vue-feather/issues/8#issuecomment-1566422206
it works for me, but I am not sure if this is the correct solution.

I came across the following warning:
I found this comment: fengyuanchen/vue-feather#8 (comment) it works for me, but I am not sure if this is the correct solution.

Looks like it's a better solution for me.


umsg and concurrency?

Hi @Amcolex, I was looking through the code and saw a bunch of interesting ideas, especially the gen side for the boilerplate messages. Overall it's well done but a few things caught my attention and wanted to know what were your thoughts about concurrency.
I see each .c contains n instance messages. Each message metadata contains a single linked list for the subscription. However the sublist is not protected by a lock so technically it is possible you can end up with a memory leak + missed subscription because you malloc and potentially add to a list that can be changed by two threads at the same time.
Another issue is with the peek that reads the counter (or overall any method that reads the instance values and does something with it). If the counter > 0 and while you copy the value is changed then you might memcpy some random data.
I think the library needs some sort of synchronization + a lock object on the msg instance and I'm happy to try to send you a PR later this year if you are interested.
Thanks!

Hi @csobrinho, thanks for taking a close look!
Regarding the concurrency protection for the message instances: In our applications (embedded/STM32), we adhere to a basic principle of not having any runtime mallocs, which means all of our subscribes are done before the scheduler starts. However, you're correct that this could cause issues if done at runtime. Adding a mutex lock here would be a free and easy fix.
As for the peek, I actually hesitated about adding the mutex protection. The reason I refrained was to avoid the extra CPU overhead, since mutexes can be expensive when used liberally. Also, in practice, having the data partially update while reading is often a non-issue. It's a pretty common design pattern in our codebases. But I do agree that it would be cleaner and more correct to add the mutex lock to the peek and publish functions.
It's a small change, and I'll look into it.
Cheers!

Hi @Amcolex, I was looking through the code and saw a bunch of interesting ideas, especially the gen side for the boilerplate messages. Overall it's well done but a few things caught my attention and wanted to know what were your thoughts about concurrency.
I see each .c contains n instance messages. Each message metadata contains a single linked list for the subscription. However the sublist is not protected by a lock so technically it is possible you can end up with a memory leak + missed subscription because you malloc and potentially add to a list that can be changed by two threads at the same time.
Another issue is with the peek that reads the counter (or overall any method that reads the instance values and does something with it). If the counter > 0 and while you copy the value is changed then you might memcpy some random data.
I think the library needs some sort of synchronization + a lock object on the msg instance and I'm happy to try to send you a PR later this year if you are interested.
Thanks!


Global command option to set the default format strings to "".

I use custom callbacks for everything, so I don't need these strings to exist in my binaries.
This chaos could be mitigated with a global command option to set the default format strings to "".
/// Cova configuration type identity
const CommandT = cova.Command.Custom(.{
    .cmd_alias_fmt = "",
    .help_header_fmt = "",
    .subcmd_alias_fmt = "",
    .subcmds_help_fmt = "",
    .subcmds_usage_fmt = "",
    .subcmds_help_title_fmt = "",
    .vals_help_title_fmt = "",
    .opts_help_title_fmt = "",
    .usage_header_fmt = "",
    .group_title_fmt = "",
    .group_sep_fmt = "",

    .indent_fmt = "    ",
    .global_help_prefix = "",
    .global_case_sensitive = false,
    .global_vals_mandatory = false,
    .global_sub_cmds_mandatory = false,
    .global_usage_fn = printers.commandUsage,
    .global_help_fn = printers.commandHelp,
    .opt_config = .{
        .help_fmt = "",
        .usage_fmt = "",
        .global_usage_fn = printers.optionUsage,
        .global_help_fn = printers.optionHelp,
        .allow_abbreviated_long_opts = false,
        .allow_opt_val_no_space = true,
        .opt_val_seps = "=:",
        .short_prefix = null,
        .long_prefix = "-",
    },
    .val_config = .{
        .help_fmt = "",
        .usage_fmt = "",
        .global_usage_fn = printers.valueUsage,
        .global_help_fn = printers.valueHelp,
        .global_set_behavior = .Last,
        .add_base_floats = false,
        .add_base_ints = false,
        .use_slim_base = true,
        .max_children = 1,
    },
});

I have this all loaded up in a commit. It just isn't pushed yet.

Added in commit b2520ab95407c671b9ccdb763d5c3e5862e4b0a6


Added sendWebhookMessage function

Function used to send failure and success notifications to a Microsoft Teams channel via an incoming webhook.

Maybe we could give the webhook url in $10. Then you could also simply change it.

That's an awesome idea @colorenz !!!

@robjschroeder or @colorenz:
Will one of you be submitting another PR for this?

@dan-snelson done! #31, looks like @colorenz may have beat me by 2 hours lol

Nope my PR added only a button action to the Teams message card.


More friendly type hints for low version python3

https://github.com/CodeGandee/redoxify-dataloader/blob/0e2b0c75f6f724527aa68ba1e84f949cc88129ea/src/redoxify/functionals/cuda_ops.py#L19
As shown in the example above, this type hint was added since Python 3.9
Consider make type hints more better compatible with low version Python（Like 3.7, 3.8）, use:
from typing import List, Dict

fixed in new version.


Consider More Flake8 Comments

Making our code quality stricter.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

You need to reformat the code such that all lines are shorter than 100 characters before enforcing this check


Naming confusion for boost libs?

When we built boost manually against VS2017 (v141) using CMake we got libraries named such as:

boost_atomic-vc141-mt-gd-x32-1_68.lib

However now we build using vcpkg with VS2019 (v142) we get the library named like:

boost_atomic-vc140-mt.lib

It seems strange that it is named "v140" and odd that it misses all the extra information from the library like the version number (1.76 IIRC). Is it just the way whoever build the port set it up? Maybe it's considered better the library file keeps the same name across versions?

Thanks @mathisloge I can confirm the DLL seems to have the full name (boost_atomic-vc142-mt-x32-1_76.dll for me) but the .lib does not.
So I suspect a very minor issue in CMake scripts perhaps?

See https://github.com/microsoft/vcpkg/commit/b2b2c9136918ed3ef85961c5c2885b9562d07d1d
@ras0219-msft would you kindly elaborate?

See https://github.com/microsoft/vcpkg/issues/601#issuecomment-276220946.


MutSig and FPs in TCGA Bladder (N = 245)

@marawr commented on Thu Jun 18 2015
Run MutSig for M2 on TCGA Bladder with a sample size of 245. Check for new FP phenotypes.

@marawr commented on Thu Jun 18 2015
Based on the TCGA Bladder cohort, it looks like we are still seeing an inflation of 3bp deletions in repetitive contexts. The counts of INS / DEL / SNPs is shown below:

With the following length distribution for deletions: (Distributed evenly across patients)

An example is:

via the command:
java -Xmx4g -cp /xchip/tcga/gdac_prod/applications/process_mgmt/firehose_task_registry/cga/M2_scatter/broadinstitute.org/cancer.genome.analysis/10882/22//gatk-package-internal-3.4-SNAPSHOT.jar org.broadinstitute.gatk.engine.CommandLineGATK -T M2 -L  1:20809955-20809965  -I:normal /seq/picard_aggregation/C500/TCGA-BL-A0C8-10A-01D-A10S-08/v5/TCGA-BL-A0C8-10A-01D-A10S-08.bam -I:tumor /seq/picard_aggregation/C500/TCGA-BL-A0C8-01A-11D-A10S-08/v6/TCGA-BL-A0C8-01A-11D-A10S-08.bam --reference_sequence /seq/references/Homo_sapiens_assembly19/v1/Homo_sapiens_assembly19.fasta --dbsnp /xchip/cga/home/kcibul/analysis/dream/mutect_ref/dbsnp_138.b37.vcf --cosmic /xchip/cga/reference/hg19/hg19_cosmic_v54_120711.vcf --out LUAD-TCGA-05-4249-TP-NB-SM-1OIMZ-SM-1OINA_1.vcf --normal_panel /cga/tcga-gsc/mutect/panel_of_normals/panel_of_normals_m2_paad/agilent_hg19_m2_paad_149_normal_panel.vcf
This issue leads to a list of over a few hundred significant genes, driven by those deletions, so I'll remove those for searching other FP types.

@akiezun commented on Thu Jun 18 2015
are they in frame deletions or frame shifts? If they are FPs they should not be enriched for in-frames. If they are real events, there should be many more in-frames than expected by chance.

@marawr commented on Thu Jun 18 2015
There are many more in-frame deletions. I think they are real in the DNA from a sequencing perspective, but not from a biology of the cancer perspective. Our tools have just become too sensitive and catch potential lab artifacts :).

To note: we should triple check this by running on the latest build that you guys have I think in case we (firehose) is out of sync.

@kcibul commented on Thu Jun 18 2015
First of all -- this is awesome info, thank you!
Can you send along a pointer to one of the output VCFs?  I can tell from that if it's got the latest M2.  Sure seems like it's not!

@marawr commented on Thu Jun 18 2015
Hey Kris,
Here's an example of one of the raw VCFs: /xchip/cga_home/jhess/M2_calls_for_Mara/PanCan_Broad_TCGA_Bladder_Hybrid_Selection/TCGA-DK-A1AB.vcf
The full build is from: /xchip/tcga/gdac_prod/applications/process_mgmt/firehose_task_registry/cga/M2_scatter/broadinstitute.org/cancer.genome.analysis/10882/22//gatk-package-internal-3.4-SNAPSHOT.jar
Thanks!!
Mara

@ldgauthier commented on Thu Jun 18 2015
The VCF header doesn't have the str_contraction filter listed. The version used is also from April and the STR filter didn't go in until May. I'm guessing a lot of those should be caught by the new filter if the latest version is run.

@marawr commented on Thu Jun 18 2015
Awesome to hear that this is probably just version issues! Where would the
latest build live? I can test it on one of these sites if you want and
update firehose too if all goes well.  (An example site is above too.)
Thanks,
Mara
On Thu, Jun 18, 2015 at 1:25 PM, ldgauthier<EMAIL_ADDRESS>wrote:

The VCF header doesn't have the str_contraction filter listed. The version
used is also from April and the STR filter didn't go in until May. I'm
guessing a lot of those should be caught by the new filter if the latest
version is run.
—
Reply to this email directly or view it on GitHub
https://github.com/broadinstitute/gsa-unstable/issues/1023#issuecomment-113226606
.

--
Mara Rosenberg
Associate Computational Biologist
Broad Institute of MIT & Harvard
415 Main Street
Cambridge, MA 02142
(617)-714-8328

@ldgauthier commented on Thu Jun 18 2015
The latest nightly build is always here: /humgen/gsa-hpprojects/GATK/private_unstable_builds/GenomeAnalysisTK_latest_unstable.jar, which right now points to /humgen/gsa-hpprojects/GATK/private_unstable_builds/GenomeAnalysisTK-3.4-33-g9cd2cd4/GenomeAnalysisTK.jar.  That version should also have the oxoG annotations and contamination adjustment.

@kcibul commented on Thu Jun 18 2015
perfect -- I'll get you a new build to test out.  we're currently working
on updating the firehose one also

Kristian Cibulskis
Chief Architect, Data Sciences & Data Engineering
Broad Institute of MIT and Harvard
<EMAIL_ADDRESS>617-714-7637
On Thu, Jun 18, 2015 at 1:39 PM, Mara Rosenberg<EMAIL_ADDRESS>wrote:

Awesome to hear that this is probably just version issues! Where would the
latest build live? I can test it on one of these sites if you want and
update firehose too if all goes well. (An example site is above too.)
Thanks,
Mara
On Thu, Jun 18, 2015 at 1:25 PM, ldgauthier<EMAIL_ADDRESS>wrote:

The VCF header doesn't have the str_contraction filter listed. The
version
used is also from April and the STR filter didn't go in until May. I'm
guessing a lot of those should be caught by the new filter if the latest
version is run.
—
Reply to this email directly or view it on GitHub
<
https://github.com/broadinstitute/gsa-unstable/issues/1023#issuecomment-113226606
.

--
Mara Rosenberg
Associate Computational Biologist
Broad Institute of MIT & Harvard
415 Main Street
Cambridge, MA 02142
(617)-714-8328
—
Reply to this email directly or view it on GitHub
https://github.com/broadinstitute/gsa-unstable/issues/1023#issuecomment-113231824
.

@kcibul commented on Thu Jun 18 2015
What she said ;)

Kristian Cibulskis
Chief Architect, Data Sciences & Data Engineering
Broad Institute of MIT and Harvard
<EMAIL_ADDRESS>617-714-7637
On Thu, Jun 18, 2015 at 1:47 PM, ldgauthier<EMAIL_ADDRESS>wrote:

The latest nightly build is always here:
/humgen/gsa-hpprojects/GATK/private_unstable_builds/GenomeAnalysisTK_latest_unstable.jar,
which right now points to
/humgen/gsa-hpprojects/GATK/private_unstable_builds/GenomeAnalysisTK-3.4-33-g9cd2cd4/GenomeAnalysisTK.jar.
That version should also have the oxoG annotations and contamination
adjustment.
—
Reply to this email directly or view it on GitHub
https://github.com/broadinstitute/gsa-unstable/issues/1023#issuecomment-113234057
.

@marawr commented on Thu Jun 18 2015
Success!! Thank you!

For the interim then, I'll put that jar as part of the hacked firehose workflow if that's okay to run on a few hundred samples (and redo MutSig).

@kcibul commented on Thu Jun 18 2015
That would be perfect -- thanks!

Kristian Cibulskis
Chief Architect, Data Sciences & Data Engineering
Broad Institute of MIT and Harvard
<EMAIL_ADDRESS>617-714-7637
On Thu, Jun 18, 2015 at 1:55 PM, Mara Rosenberg<EMAIL_ADDRESS>wrote:

Success!! Thank you!
[image: image]
https://cloud.githubusercontent.com/assets/4805442/8238055/541b2346-15c1-11e5-8fe3-20c201a5dc6e.png
For the interim then, I'll put that jar as part of the hacked firehose
workflow if that's okay to run on a few hundred samples (and redo MutSig).
—
Reply to this email directly or view it on GitHub
https://github.com/broadinstitute/gsa-unstable/issues/1023#issuecomment-113237202
.

@marawr commented on Thu Jun 18 2015
cool - done.
Firehose module M2_scatter is at v23 now in workspace: Algorithms.
(Will get back to you on the MutSig list when all those samples process through.)

@vdauwera commented on Mon Nov 14 2016
Moved to GATK4 repo to @davidbenjamin's attention; feel free to close if unwanted.

Seems like this was closed earlier.  But ultimately I think @vruano's STR likelihoods model is going to make an STR hard filter obsolete.


GATE-2043: Uses teams rule actions enum defined in cloudflare-go

Just pinning commit until new cloudflare-go version is released.

Depends on cloudflare/cloudflare-go#702


[aes] Switch to prim_sparse_fsm_flop

This is related to #9447 .
I will need to rebase this once #9621 is in. Please review the last commit only.

Thanks for the quick review @mwbranstad , I am merging this.


Styling a GeoJSON Point with ol.style.Circle

In the style section, is there a way to set the image style attribute to be an ol.style.Circle?

Related issue: https://github.com/tombatossals/angular-openlayers-directive/issues/51

I've figured out how to do it.  Hopefully I'll have a pull request that provides this functionality ready next week.

Hi @dan-hook, it would be great if you could send a PR with this functionality. Please tell me if I could help


Improve nuget publishing workflow

The current Github Actions Nuget publish workflow looks like it publishes any tag to nuget.org, which seems problematic - we should be able to use tags for other purposes as well without a nuget package immediately getting pushed to nuget.org.
At the very least, we should perform the deployment via a Github environment; this environment would require manual authorization for pushing to nuget.org, and would ideally also contain the nuget.org key secret (presumably currently defined in the organization)
@yhmo @weianweigan who would be a good person with permissions to create the Github organization and configure it appropriately?

@roji, that sounds good! I looked at the Settings tab but didn't see any environment options. It appears I don't have the necessary permissions to access it. It's possible that only @yhmo has access currently.

Follow this guideline? https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#creating-an-environment

An environment is added:


Evaluation protocol

Hi, thank you for sharing this good work.
I have a question about the results of the main paper.
In Table 1, does the column '2s' mean the mIoU computed within 1.5~2s or just at 2s?

Hi, thanks for the interest. It means the mIoU computed at the 2s moment.

Thank you for your quick response!!


bug: Textarea line height is too high, imo

What version of daisyUI are you using?
4.12.10
Which browsers are you seeing the problem on?
All browsers
Reproduction URL
https://play.tailwindcss.com/WayqISZyMb
Describe your issue
In my opinion, the line height is too high inside a textarea. I investigated a little, and found that in unstyled/textarea.css, that the leading-loose which makes too much space between the lines of text, and should be removed.

I'll let you decide whether it's relevant or not. It may be a breaking change for some people.

It's for better readability.
Every single component from daisyUI are opinionated and come with design decisions. Our goal is to provide the defaults which works for the majority and then for the small details like this, everyone can apply their own tweaks using utility classes. You can add leading-normal to decrease the line height:
https://play.tailwindcss.com/uHGVjEiQh2
Let me know if you have a question.


logging: doc fixes

Writing here so I don't forget
"call NewClient using a WithScopes option" (needs link/reference to where WithScopes lives)
Same for "return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done."

cc @jba


[NSE-1015] Implement ResultIterator return from one probe output in ColumnarBroadcastHashJoinExec

What changes were proposed in this pull request?
(Please fill in changes proposed in this fix)
How was this patch tested?
(Please explain how this patch was tested. E.g. unit tests, integration tests, manual tests)
(If this patch involves UI changes, please attach a screenshot; otherwise, remove this)

cc @zhouyuan
Have passed Jenkins workloads.


Url validation accept wrong domain format

Laravel Version: 6.2
PHP Version: 7.3
Database Driver & Version: mariadb

Description:
URL validation rule accept wrong domain format
Like<EMAIL_ADDRESS><EMAIL_ADDRESS>is not valid domain. it supposes to wrong URL but laravel ok with that.
Steps To Reproduce:

I think this is intended behavior as some URLs might be formed similar to that. You can have a look at the regex that is used internally for validating URLs here
If your use case requires that a URL must follow other rules, I recommend you setup a custom validation rule.

I think wrong domain can't be a valid URL. Ofcourse custom validation rule can solve my problem.
I trusted laravel URL validation and it made me confused.

The point is that<EMAIL_ADDRESS>is technically a valid domain.
You might instead want to consider the active_url validation rule, or if you have other requirements then implement your own custom rule.

It's indeed a valid email address. If you want to use the pre-5.8 behavior you can use the filter validator: https://laravel.com/docs/6.x/validation#rule-email


[0.7-M3] OutOfMemoryError Loading Documents in the RichText Demo

When loading documents in the demo, an OutOfMemoryError is thrown.
Steps to reproduce:

Start the RichText demo $ gradle RichText.
Click the Load Document button in the tool bar, the left-most button.
Select the project license file, LICENSE, and click the "Open" button.
An OutOfMemoryError is thrown and a stack trace appears in the terminal window used to launch the program.

This occurs on both Windows 10 Pro, 64-bit and Ubuntu 16.04, 64-bit.

Aye, I can reproduce this. Stacktrace below:
Exception in thread "JavaFX Application Thread" java.lang.OutOfMemoryError: Java heap space
	at java.util.ArrayList.<init>(ArrayList.java:152)
	at org.fxmisc.richtext.model.SuperCodec$1.decode(SuperCodec.java:42)
	at org.fxmisc.richtext.model.SuperCodec$1.decode(SuperCodec.java:24)
	at org.fxmisc.richtext.model.ReadOnlyStyledDocument$2.decode(ReadOnlyStyledDocument.java:121)
	at org.fxmisc.richtext.model.ReadOnlyStyledDocument$2.decode(ReadOnlyStyledDocument.java:106)
	at org.fxmisc.richtext.demo.richtext.RichText.load(RichText.java:384)
	at org.fxmisc.richtext.demo.richtext.RichText.loadDocument(RichText.java:371)
	at org.fxmisc.richtext.demo.richtext.RichText$$Lambda$280/519621340.run(Unknown Source)
	at org.fxmisc.richtext.demo.richtext.RichText.lambda$createButton$25(RichText.java:307)
	at org.fxmisc.richtext.demo.richtext.RichText$$Lambda$287/1330693596.handle(Unknown Source)
	at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86)
	at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
	at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
	at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
	at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
	at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
	at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
	at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
	at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
	at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
	at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
	at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:49)
	at javafx.event.Event.fireEvent(Event.java:198)
	at javafx.scene.Node.fireEvent(Node.java:8413)
	at javafx.scene.control.Button.fire(Button.java:185)
	at com.sun.javafx.scene.control.behavior.ButtonBehavior.mouseReleased(ButtonBehavior.java:182)
	at com.sun.javafx.scene.control.skin.BehaviorSkinBase$1.handle(BehaviorSkinBase.java:96)
	at com.sun.javafx.scene.control.skin.BehaviorSkinBase$1.handle(BehaviorSkinBase.java:89)
	at com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(CompositeEventHandler.java:218)
	at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:80)
	at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
	at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)

It attempts to create an ArrayList of size: 1,382,638,440. I'm guessing the JVM args need to be adjusted here?

It appears that loading only supports files that were previously saved by the editor. What is going on here is that some bytes from the input file are interpreted as an int, the number of paragraphs, and an ArrayList is allocated for the paragraphs to be read subsequently.
@afester Do you want to comment, since you added the load/save functionality to the demo?

What is going on here is that some bytes from the input file are interpreted as an int, the number of paragraphs, and an ArrayList is allocated for the paragraphs to be read subsequently.

Wow.... yeah, that would make more sense since there's definitely not that many lines in the ReadMe file.

I copied the ReadMe file's contents into the demo, saved it, and then loaded that document. No issues occurred. However, the println statement I added in the SuperCoded#collectionListCodec outputted this:
Size is: 328
Size is: 1
Size is: 1
Size is: 1
{ "Size is: 1" occurs 325 times after this, for a total of 328 times }

Seems OK to me. There are 328 lines. Each line has a list (of size 1) of segments. That's a total number of 329 lists to be decoded.

If we changed the file type in the save functionality and changed the load method to only look for that file type, then it would prevent this issue from arising. Additionally, adding a tooltip that explains the load button only works for previously saved documents through this demo could satisfactorily resolve this issue as it is not meant to load all kinds of documents (txt, PDF, docx, etc.), but to demonstrate a way that save/load functionality can be done.

+1 for tooltip. Also, let's emphasize that this is a demo. The format of the saved file is arbitrary and there's no guarantee a file saved with one version of the demo can be loaded with newer versions.


Binary XML file line #23: Error inflating class com.google.ar.sceneform.ArSceneView

05-09 12:48:16.937 17491-17491/com.google.ar.sceneform.samples.solarsystem E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.google.ar.sceneform.samples.solarsystem, PID: 17491
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.google.ar.sceneform.samples.solarsystem/com.google.ar.sceneform.samples.solarsystem.SolarActivity}: android.view.InflateException: Binary XML file line #23: Binary XML file line #23: Error inflating class com.google.ar.sceneform.ArSceneView
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2778)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2856)
at android.app.ActivityThread.-wrap11(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1589)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6494)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
Caused by: android.view.InflateException: Binary XML file line #23: Binary XML file line #23: Error inflating class com.google.ar.sceneform.ArSceneView
Caused by: android.view.InflateException: Binary XML file line #23: Error inflating class com.google.ar.sceneform.ArSceneView
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Constructor.newInstance0(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:334)
at android.view.LayoutInflater.createView(LayoutInflater.java:647)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:790)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:730)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:863)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)
at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
at android.view.LayoutInflater.inflate(LayoutInflater.java:374)
at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:287)
at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:139)
at com.google.ar.sceneform.samples.solarsystem.SolarActivity.onCreate(SolarActivity.java:89)
at android.app.Activity.performCreate(Activity.java:7009)
at android.app.Activity.performCreate(Activity.java:7000)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1214)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2731)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2856)
at android.app.ActivityThread.-wrap11(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1589)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6494)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
Caused by: java.lang.IllegalStateException: Couldn't create Engine
at com.google.android.filament.Engine.create(Engine.java:51)
at com.google.ar.sceneform.rendering.EngineInstance.createEngine(EngineInstance.java:52)
at com.google.ar.sceneform.rendering.EngineInstance.getEngine(EngineInstance.java:23)
at com.google.ar.sceneform.rendering.Renderer.initialize(Renderer.java:491)
at com.google.ar.sceneform.rendering.Renderer.(Renderer.java:134)
at com.google.ar.sceneform.SceneView.initialize(Unknown Source:31)
at com.google.ar.sceneform.SceneView.(Unknown Source:39)
at com.google.ar.sceneform.ArSceneView.(Unknown Source:0)
at java.lang.reflect.Constructor.newInstance0(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:334)
at android.view.LayoutInflater.createView(LayoutInflater.java:647)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:790)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:730)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:863)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:824)
at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
at android.view.LayoutInflater.inflate(LayoutInflater.java:374)
at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:287)
at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:139)
at com.google.ar.sceneform.samples.solarsystem.SolarActivity.onCreate(SolarActivity.java:89)
at android.app.Activity.performCreate(Activity.java:7009)
at android.app.Activity.performCreate(Activity.java:7000)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1214)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2731)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2856)
at android.app.ActivityThread.-wrap11(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1589)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6494)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)

Hi @ronindong - Thank you for the report!  If you would share some more info that would be very helpful as we debug this:
What Android device (Device model & android OS version) were you running that encountered this issue?
If possible, will you share the full output from logcat with us?  You can either attach to this issue, or if you prefer, email it to me directly.  Thanks!

Sceneform requires OpenGL ES 3.1 or later.
The most likely cause of this error message is running on a platform that doesn't support OpenGL ES 3.1.  There should be log messages before this that will give more detail.

Thanks! @malikcoates-at-work @tpsiaki
I'm using the emulator.And The arcore sample can run, but the sceneform sample cann't run.
How should we solve it？

I tried changing the OpenGL ES API Level to Renderer maximum (up to OpenGL ES 3.1) in the Android Emulator, Settings -> Advanced, but I continued to get the same error.

@malik-at-work Is there a way to choose openGL versions? My device should support 3.1, but I get the same error.
in static std::unique_ptr<Driver> filament::OpenGLDriver::create(filament::driver::ContextManagerGL *const, void *const)                                                                                at line 80                                                                                in file /usr/local/google/home/mathias/sources/git/tnt/filament/filament/src/driver/opengl/OpenGLDriver.cpp                                                                                reason: OpenGL ES 3.1 minimum needed (current 3.0)

@fatahfattah @ronindong
To run Sceneform apps in the emulator:

You need Android Emulator version 27.2.7 or later, available in Android Studio Preview 3.2.

OpenGL ES 3.1 must be supported and enabled in the Android Emulator.

Make sure your emulator is configured to use the latest version. In the menu, select Settings > Advanced > Renderer maxium (up to OpenGL ES 3.1).

Run the emulator and check whether OpenGl ES 3.1 is being used:
adb logcat | grep eglMakeCurrent

If you see ver 3 1, then you can run Sceneform apps. If you see a lower version, then your desktop GPU does not support OpenGL ES 3.1 and you must use a supported device to run Sceneform apps.

I'm seeing this error on my 2018 MacBook pro. Is that normal? After following the steps above, adb logcat | grep eglMakeCurrent only reports 3.0 being available.

@kanawish That sounds correct. If only 3.0 is reported then Sceneform 1.0 can not run in emulator and the best choice will be to install on a supported device.  As mentioned up thread we are looking into support for older versions of OpenGL.

I'm a bit curious how to find out what devices/computer configurations will support OpenGL ES 3.1 in the emulators. Is there a OpenGL vs OpenGL ES correspondence chart? For example, my Macbook has a Radeon Pro 555, and reports supporting up to OpenGL 4.1 Desktop version in the "OpenGL extensions viewer" tool.

@kanawish There is no exact correspondence. OpenGL ES 3.1 in particular requires features that are only available in OpenGL 4.2 and higher. We are exploring solutions to get Sceneform to run properly on the emulator on macOS.

@kanawish To add to what @romainguy said, in case you didn't know already, 4.1 core is the current maximum OpenGL version on Mac for all macOS devices that I know of. To properly support OpenGL ES 3.1, features such as SSBOs and compute shaders must also be included, and they are in OpenGL 4.3+.
The emulator queries the entry points of your OpenGL driver to determine the maximum possible supported version. However, even then, it might not be safe to use modern openGL on that particular GPU since we've had problems with GPUs that do not behave well even after advertising support, hence the whitelist.
On Windows/Linux with a modern GPU where 4.3+ is supported, you may both force OpenGL ES 3.x and bypass whitelist and other checks to get a ES 3.1 context by passing
-feature GLESDynamicVersion,-PlayStoreImage
to the command line. Alternatively, put the lines
GLESDynamicVersion = on
PlayStoreImage = off
into ~/.android/advancedFeatures.ini (create this file if it does not exist already). Then, the emulator will attempt to use ES 3.1 if the entry points exposed by your GPU driver are sufficient.

Just a note, in an upcoming release the requirement drops from OpenGL ES 3.1 to 3.0.

Sceneform 1.4 is now available which supports OpenGL ES 3.0, please give the new version a try!

Closing this issue, please reopen or create a new issue if you're still encountering it with Sceneform 1.4.

I was getting this error as I was using different libraries


defect and refine tasks for codet5p-16b

Hi
Nice project!
Do you have the checkpoint and evaluation conclusions of the defect and refine tasks for codet5p-16b?
Here I tested the codet5 defect and refine task examples in codetf, and found that the effect is not very good.

For Salesforce/codet5-base-codexglue-defect:

code_snippets = """
#include <stdio.h>
int main()
{
    int *pointer_var;
    printf("Address of the given pointer variable: %d", pointer_var);
    printf("Value of pointer variable is : %d", * pointer_var);
    return 0;
}
"""
defect_model = load_model_pipeline(model_name="codet5", task="defect",
            model_type="base", is_eval=True,
            load_in_8bit=True, weight_sharding=False)
defects = defect_model.predict([code_snippets])
print(defects)

code_snippets : a c/c++ demo about null pointer error.
But Salesforce/codet5-base-codexglue-defect thinks it's not a defect, and output ['false'].

For Salesforce/codet5-base-codexglue-refine-medium:

code_snippets = """
class GFG
{
    public void test ()
    {
        // Initializing String variable with null value
        String ptr = null;

        // This line of code throws NullPointerException
        // because ptr is null
        if (ptr.equals("gfg"))
            System.out.print("Same");
        else
            System.out.print("Not Same");
    }
}
"""
refine_model = load_model_pipeline(model_name="codet5", task="refine",
            model_type="base", is_eval=True,
            load_in_8bit=True, weight_sharding=False)
refines = refine_model.predict([code_snippets])
print(refines)

code_snippets : a java demo about null pointer error.
But  Salesforce/codet5-base-codexglue-refine-medium output the fixed version with more defects:
public void test ( ) {
    // Initializing String variable with null value
    String ptr = null ;
    // This line of code throws NullPointerException because ptr is null
    if ( ptr. equals ( "gfg" ) )
        java.lang.System.out.print ( "Same" ) ;
    else
        java.lang.System.out.print ( "Not Same" ) ;
}

defect 1:   ptr.equals will have null pointer error.

defect2: java.lang.System.out.print

Thanks.
Do you have more datasets about defect and refine to recommend?


New Rule Proposal: react/prefer-pure-calc-over-effect

This isn't my idea (see links in footer) but I couldn't see this rule in the backlog and looks as though it could be useful.
The rule would indicate where a useEffect() has been used to make a calculation and call a setter, but which could and should be replaced with a useMemo()
Example of incorrect code:
const [processedData, setProcessedData] = useState();

useEffect(() => {
  let processed = /* do something with data */;
  setProcessedData(processed);
}, [data]);

Example of correct code:
const processedData = useMemo(() => {
  let processed = /* do something with data */;
  return processed;
}, [data]);

See Sophie's Tweet and here

There's a critical difference there tho - useEffect isn't run on the server, while useMemo is. I don't think it's ever going to be generically safe to suggest changing a browser-only hook into a universal one.

Yes, that could be a problem. I'll close this proposal 😺


CustomVision with Autorest.Python 3.0.47

(message created by the CI based on PR content)

Codecov Report

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

@@           Coverage Diff           @@
##           master    #2355   +/-   ##
=======================================
  Coverage   54.27%   54.27%
=======================================
  Files        5326     5326
  Lines      126606   126606
=======================================
  Hits        68712    68712
  Misses      57894    57894

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 ee5b475...888bdcb. Read the comment docs.


'NoneType' object has no attribute 'blocks'

System Info
Latest Docker build fails with the following error:
2023-07-19T16:06:41.055285Z  INFO text_generation_launcher: Args { model_id: "TheBloke/WizardLM-13B-V1-0-Uncensored-SuperHOT-8K-fp16", revision: None, validation_workers: 2, sharded: None, num_shard: Some(1), quantize: None, dtype: None, trust_remote_code: false, max_concurrent_requests: 128, max_best_of: 2, max_stop_sequences: 4, max_input_length: 1024, max_total_tokens: 8192, waiting_served_ratio: 1.2, max_batch_prefill_tokens: 4096, max_batch_total_tokens: None, max_waiting_tokens: 20, hostname: "llm-worker-0", port: 8001, shard_uds_path: "/tmp/text-generation-server", master_addr: "localhost", master_port: 29500, huggingface_hub_cache: Some("/data"), weights_cache_override: None, disable_custom_kernels: false, json_output: false, otlp_endpoint: None, cors_allow_origin: [], watermark_gamma: None, watermark_delta: None, ngrok: false, ngrok_authtoken: None, ngrok_edge: None, env: false }
2023-07-19T16:06:41.055408Z  INFO download: text_generation_launcher: Starting download process.
2023-07-19T16:06:43.508503Z  WARN text_generation_launcher: No safetensors weights found for model TheBloke/WizardLM-13B-V1-0-Uncensored-SuperHOT-8K-fp16 at revision None. Downloading PyTorch weights.

2023-07-19T16:06:43.612710Z  INFO text_generation_launcher: Download file: pytorch_model-00001-of-00003.bin

2023-07-19T16:07:17.608438Z  INFO text_generation_launcher: Downloaded /data/models--TheBloke--WizardLM-13B-V1-0-Uncensored-SuperHOT-8K-fp16/snapshots/453800a54e9915a2421bbbeb973948bb55776ec0/pytorch_model-00001-of-00003.bin in 0:00:33.

2023-07-19T16:07:17.608566Z  INFO text_generation_launcher: Download: [1/3] -- ETA: 0:01:06

2023-07-19T16:07:17.608934Z  INFO text_generation_launcher: Download file: pytorch_model-00002-of-00003.bin

2023-07-19T16:08:05.034334Z  INFO text_generation_launcher: Downloaded /data/models--TheBloke--WizardLM-13B-V1-0-Uncensored-SuperHOT-8K-fp16/snapshots/453800a54e9915a2421bbbeb973948bb55776ec0/pytorch_model-00002-of-00003.bin in 0:00:47.

2023-07-19T16:08:05.034419Z  INFO text_generation_launcher: Download: [2/3] -- ETA: 0:00:40.500000

2023-07-19T16:08:05.034770Z  INFO text_generation_launcher: Download file: pytorch_model-00003-of-00003.bin

2023-07-19T16:08:32.836076Z  INFO text_generation_launcher: Downloaded /data/models--TheBloke--WizardLM-13B-V1-0-Uncensored-SuperHOT-8K-fp16/snapshots/453800a54e9915a2421bbbeb973948bb55776ec0/pytorch_model-00003-of-00003.bin in 0:00:27.

2023-07-19T16:08:32.836206Z  INFO text_generation_launcher: Download: [3/3] -- ETA: 0

2023-07-19T16:08:32.836343Z  WARN text_generation_launcher: No safetensors weights found for model TheBloke/WizardLM-13B-V1-0-Uncensored-SuperHOT-8K-fp16 at revision None. Converting PyTorch weights to safetensors.

2023-07-19T16:09:53.045689Z  INFO text_generation_launcher: Convert: [1/3] -- Took: 0:01:19.647597

2023-07-19T16:11:39.036602Z  INFO text_generation_launcher: Convert: [2/3] -- Took: 0:01:45.990405

2023-07-19T16:12:34.656387Z  INFO text_generation_launcher: Convert: [3/3] -- Took: 0:00:55.619292

2023-07-19T16:12:35.083186Z  INFO download: text_generation_launcher: Successfully downloaded weights.
2023-07-19T16:12:35.083469Z  INFO shard-manager: text_generation_launcher: Starting shard rank=0
2023-07-19T16:12:45.134434Z  INFO shard-manager: text_generation_launcher: Waiting for shard to be ready... rank=0
2023-07-19T16:12:55.144426Z  INFO shard-manager: text_generation_launcher: Waiting for shard to be ready... rank=0
2023-07-19T16:13:05.154842Z  INFO shard-manager: text_generation_launcher: Waiting for shard to be ready... rank=0
2023-07-19T16:13:15.165115Z  INFO shard-manager: text_generation_launcher: Waiting for shard to be ready... rank=0
2023-07-19T16:13:25.175313Z  INFO shard-manager: text_generation_launcher: Waiting for shard to be ready... rank=0
2023-07-19T16:13:35.184884Z  INFO shard-manager: text_generation_launcher: Waiting for shard to be ready... rank=0
2023-07-19T16:13:45.195147Z  INFO shard-manager: text_generation_launcher: Waiting for shard to be ready... rank=0
2023-07-19T16:13:55.204998Z  INFO shard-manager: text_generation_launcher: Waiting for shard to be ready... rank=0
2023-07-19T16:14:05.215689Z  INFO shard-manager: text_generation_launcher: Waiting for shard to be ready... rank=0
2023-07-19T16:14:15.225941Z  INFO shard-manager: text_generation_launcher: Waiting for shard to be ready... rank=0
2023-07-19T16:14:20.612451Z  INFO text_generation_launcher: Server started at unix:///tmp/text-generation-server-0

2023-07-19T16:14:20.631146Z  INFO shard-manager: text_generation_launcher: Shard ready in<PHONE_NUMBER>33s rank=0
2023-07-19T16:14:20.717265Z  INFO text_generation_launcher: Starting Webserver
2023-07-19T16:14:21.405372Z  WARN text_generation_router: router/src/main.rs:341: `--revision` is not set
2023-07-19T16:14:21.405402Z  WARN text_generation_router: router/src/main.rs:342: We strongly advise to set it to a known supported commit.
2023-07-19T16:14:21.566098Z  INFO text_generation_router: router/src/main.rs:363: Serving revision 453800a54e9915a2421bbbeb973948bb55776ec0 of model TheBloke/WizardLM-13B-V1-0-Uncensored-SuperHOT-8K-fp16
2023-07-19T16:14:21.571620Z  INFO text_generation_router: router/src/main.rs:210: Warming up model
2023-07-19T16:14:23.570780Z ERROR text_generation_launcher: Method Warmup encountered an error.
Traceback (most recent call last):
  File "/opt/conda/bin/text-generation-server", line 8, in <module>
    sys.exit(app())
  File "/opt/conda/lib/python3.9/site-packages/typer/main.py", line 311, in __call__
    return get_command(self)(*args, **kwargs)
  File "/opt/conda/lib/python3.9/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/opt/conda/lib/python3.9/site-packages/typer/core.py", line 778, in main
    return _main(
  File "/opt/conda/lib/python3.9/site-packages/typer/core.py", line 216, in _main
    rv = self.invoke(ctx)
  File "/opt/conda/lib/python3.9/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/opt/conda/lib/python3.9/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/opt/conda/lib/python3.9/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/opt/conda/lib/python3.9/site-packages/typer/main.py", line 683, in wrapper
    return callback(**use_params)  # type: ignore
  File "/opt/conda/lib/python3.9/site-packages/text_generation_server/cli.py", line 78, in serve
    server.serve(
  File "/opt/conda/lib/python3.9/site-packages/text_generation_server/server.py", line 169, in serve
    asyncio.run(
  File "/opt/conda/lib/python3.9/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/opt/conda/lib/python3.9/asyncio/base_events.py", line 634, in run_until_complete
    self.run_forever()
  File "/opt/conda/lib/python3.9/asyncio/base_events.py", line 601, in run_forever
    self._run_once()
  File "/opt/conda/lib/python3.9/asyncio/base_events.py", line 1905, in _run_once
    handle._run()
  File "/opt/conda/lib/python3.9/asyncio/events.py", line 80, in _run
    self._context.run(self._callback, *self._args)
  File "/opt/conda/lib/python3.9/site-packages/grpc_interceptor/server.py", line 159, in invoke_intercept_method
    return await self.intercept(
> File "/opt/conda/lib/python3.9/site-packages/text_generation_server/interceptor.py", line 21, in intercept
    return await response
  File "/opt/conda/lib/python3.9/site-packages/opentelemetry/instrumentation/grpc/_aio_server.py", line 82, in _unary_interceptor
    raise error
  File "/opt/conda/lib/python3.9/site-packages/opentelemetry/instrumentation/grpc/_aio_server.py", line 73, in _unary_interceptor
    return await behavior(request_or_iterator, context)
  File "/opt/conda/lib/python3.9/site-packages/text_generation_server/server.py", line 60, in Warmup
    max_supported_total_tokens = self.model.warmup(batch)
  File "/opt/conda/lib/python3.9/site-packages/text_generation_server/models/flash_causal_lm.py", line 750, in warmup
    + batch.blocks
AttributeError: 'NoneType' object has no attribute 'blocks'

Information

[X] Docker
[ ] The CLI directly

Tasks

[X] An officially supported command
[ ] My own modifications

Reproduction
To reproduce bug: HF_MODEL_TRUST_REMOTE_CODE=1 docker run --gpus all --shm-size 1g -p 8080:80 --rm ghcr.io/huggingface/text-generation-inference:sha-5a1512c --model-id TheBloke/WizardLM-13B-V1-0-Uncensored-SuperHOT-8K-fp16
Seems like it was caused by this change: https://github.com/huggingface/text-generation-inference/commit/fe80f5360ca885af4c63a3f1db9f6786df7ebc76#diff-baea97a6bf4563abf0e105e4f8f4d0ee1c54b3e6098c0cfd1903faca24765977R750
Expected behavior
No errors.

PR above should solve your issue (the warmup happens to trigger EOS it seems).


Use logging instead of print

Such that it is easier for a user of the torch.nn.Module that's CLAP_Module to control their terminal output.

Thank you very much!


What happend to /initrd?

Uh, I see lots of useful Unix-like stuff in /initrd/app and /initrd/driver and /initrd/system?
What happend to it? Is it dead and deprecated? Can it be revived? Because they implement lots of basic system utils.

@ArielAbreu it has been deprecated and the initrd directory is going to be removed. Most of the system and driver stuff has already been moved to js directory.
The isolates and the Unix-like apps are no longer supported, there are a few reasons for that:

the isolates and RPC add a lot of complexity and at the same time could reduce performance, it would be much easier to get to the first stable release without this. Isolates are probably going to be added back later and exposed as Web Workers, the idea is that it's up to user to decide what code needs to be isolated in a web worker.
Unix utilities and shell are needed when the system and applications running on top are separate entities. runtime.js bundles up all code into a single image and changes to application or system code require image to be recompiled and redeployed. This is similar to the concept of immutable servers that are always in predictable state.
there is no filesystem that is necessary for shell utilities to work. FS is probably going to be added later though.

OK, thanks. I was wondering so I wouldn't have to build shell commands myself.


Add Risk Score Task

Added the task "riskScore" which also runs at the end of the "runDepTrackWorkflow".
The configuration is optional, if left empty the task will be skipped.
It can be used with optional attributes "timeout" and "maxRiskScore".

The "timeout" is needed because the calculation of the Risk Score after the Vex upload needs some time until the API returns the correct value.
"maxRiskScore" can be configured to check in pipeline if the Risk Score is not higher than the given value, if it is, the Gradle task throws an error.
Without "maxRiskScore" only the RiskScore gets printed without an error.

Tried to include the task in the integration tests, but the default api key of the docker container does not work with the Analyze API route.

Added the task "generateSbom" and applied internally the CyclonDx Gradle Plugin.
Also added dependsOn, so that generateSbom always runs before uploadSbom, generateVex..
Modified integrationTests to use the generated SBOM instead of the Test SBOM File.
Adjusted README with new instructions and infos.

@Ingwersaft
Added the task "generateSbom" and applied internally the CyclonDx Gradle Plugin.
Also added dependsOn, so that generateSbom always runs before uploadSbom, generateVex..
Modified integrationTests to use the generated SBOM instead of the Test SBOM File.
Adjusted README with new instructions and infos.


gnomeExtensions.recents: init at 2019-11-29

Motivation for this change
Add Recents gnome extension.
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

Did you check if the extension works?
Also it looks like it will not work with GNOME 3.38, which we are going to merge in near future.

Yes, it works.
As for 3.38, I'll convert PR to draft and wait till it's fixed.

Result of nixpkgs-review pr 100278 run on x86_64-linux 1

1 package built:

gnomeExtensions.recents


Add user access to dilation process parameters

@VictorLamoine Fix #92

Apart from the cosmetics it looks good.


M5CoreS3 speaker issue

Hi. I have tried to play some tones, under 1kHz the output is very noisy. I tried with standard configs too, the result didn't change much.
Can you give me any suggestions? (IDF 4.4.5, M5unified 0.1.12)
                                                      `void Init()
                                                      {
                                                          initArduino();
                                                          M5.begin();
                                                          M5.Power.begin();
                                                          auto spk_cfg = M5.Speaker.config();
                                                          spk_cfg.dma_buf_len = 1024;
                                                          spk_cfg.dma_buf_count = 2;
                                                          spk_cfg.magnification = 1;
                                                          spk_cfg.stereo = true;

                                                          M5.Speaker.config(spk_cfg);
                                                          M5.Speaker.begin();

                                                          M5.Speaker.setVolume(230);
                                                          int x = 0;
                                                          while (x<3)
                                                          {
                                                              M5.Speaker.tone(466, 1000);
                                                              M5.delay(1000);
                                                              vTaskDelay(2000);
                                                              x++;
                                                          }`

Hello, @SalloCs
The speakers installed in the M5Stack are small, so they can easily produce high-pitched sounds, but they don't produce very strong bass sounds.
The tone function is designed to output a waveform that is close to a sine wave, but if you turn the volume up too much, the waveform will saturate and become close to a square wave.
The closer you get to a square wave, the more noticeable the harmonic frequencies will be.
Small speakers naturally have stronger overtone frequencies.
If you want clearer and bass sound, we recommend connecting external speakers using module RCA or similar.
Then, please note the following points:
  M5.begin();
//M5.Power.begin();  // ← no need this.
  auto spk_cfg = M5.Speaker.config();
  spk_cfg.dma_buf_len = 256;  // ← 1024 is too big.
  spk_cfg.dma_buf_count = 8;  // ← 2 is too little.
  spk_cfg.stereo = false;     // ← CoreS3 is Mono.

Thank you for your reply. It seems that the speaker was an issue.


Version sub command always shows "dev"

As the title says, the version sub command always shows "dev". It would very useful to show the real / tagged version number (e.g. 0.16-beta3 as of writing) to see if already running the latest and greatest version.

Makefile has this feature, however, it has a bug... In my dev machine, it print nothing, could you provide your setup?
You can manually specify version through make build version=v0.16.0-beta3

I suspect the problem here is that it isnt passed via Go Releaser, which is what produces the binaries "most" people download.

@x86dev Where do you see this behaviour? I just pulled down the binaries from the release page and all of them has the correct version.

I'm pulling my headscale server via headscale/headscale:latest, which currently is at 25f15f64c292 (21 hours ago as of writing). When I issue a  docker exec <my-container> headscale version it just returns "dev".

ah, in that case its a duplicate of #186, closing as duplicate.

Ah good, wasn't aware of #186. Thanks!