How to use RandomSampler in RetinaNet

When I use RandomSampler in RetinaNet, I got an error.
/opt/conda/conda-bld/pytorch_1607370141920/work/aten/src/ATen/native/cuda/IndexKernel.cu:84: operator(): block: [0,0,0], thread: [127,0,0] Assertion index >= -sizes[i] && index < sizes[i] && "index out of bounds" failed.
Traceback (most recent call last):
File "tools/train.py", line 188, in
main()
File "tools/train.py", line 184, in main
meta=meta)
File "/home/hxz/anaconda3/envs/mmdnew/lib/python3.7/site-packages/mmdet-2.12.0-py3.7.egg/mmdet/apis/train.py", line 175, in train_detector
runner.run(data_loaders, cfg.workflow)
File "/home/hxz/anaconda3/envs/mmdnew/lib/python3.7/site-packages/mmcv/runner/epoch_based_runner.py", line 125, in run
epoch_runner(data_loaders[i], **kwargs)
File "/home/hxz/anaconda3/envs/mmdnew/lib/python3.7/site-packages/mmcv/runner/epoch_based_runner.py", line 50, in train
self.run_iter(data_batch, train_mode=True, **kwargs)
File "/home/hxz/anaconda3/envs/mmdnew/lib/python3.7/site-packages/mmcv/runner/epoch_based_runner.py", line 30, in run_iter
**kwargs)
File "/home/hxz/anaconda3/envs/mmdnew/lib/python3.7/site-packages/mmcv/parallel/data_parallel.py", line 67, in train_step
return self.module.train_step(*inputs[0], **kwargs[0])
File "/home/hxz/anaconda3/envs/mmdnew/lib/python3.7/site-packages/mmdet-2.12.0-py3.7.egg/mmdet/models/detectors/base.py", line 233, in train_step
losses = self(**data)
File "/home/hxz/anaconda3/envs/mmdnew/lib/python3.7/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
result = self.forward(*input, **kwargs)
File "/home/hxz/anaconda3/envs/mmdnew/lib/python3.7/site-packages/mmcv/runner/fp16_utils.py", line 95, in new_func
return old_func(*args, **kwargs)
File "/home/hxz/anaconda3/envs/mmdnew/lib/python3.7/site-packages/mmdet-2.12.0-py3.7.egg/mmdet/models/detectors/base.py", line 167, in forward
return self.forward_train(img, img_metas, **kwargs)
File "/home/hxz/anaconda3/envs/mmdnew/lib/python3.7/site-packages/mmdet-2.12.0-py3.7.egg/mmdet/models/detectors/single_stage.py", line 79, in forward_train
gt_labels, gt_bboxes_ignore)
File "/home/hxz/anaconda3/envs/mmdnew/lib/python3.7/site-packages/mmdet-2.12.0-py3.7.egg/mmdet/models/dense_heads/tail_retina_head.py", line 652, in forward_train
losses = self.loss(*loss_inputs, gt_bboxes_ignore=gt_bboxes_ignore)
File "/home/hxz/anaconda3/envs/mmdnew/lib/python3.7/site-packages/mmcv/runner/fp16_utils.py", line 182, in new_func
return old_func(*args, **kwargs)
File "/home/hxz/anaconda3/envs/mmdnew/lib/python3.7/site-packages/mmdet-2.12.0-py3.7.egg/mmdet/models/dense_heads/tail_retina_head.py", line 510, in loss
label_channels=label_channels)
File "/home/hxz/anaconda3/envs/mmdnew/lib/python3.7/site-packages/mmdet-2.12.0-py3.7.egg/mmdet/models/dense_heads/tail_retina_head.py", line 417, in get_targets
unmap_outputs=unmap_outputs)
File "/home/hxz/anaconda3/envs/mmdnew/lib/python3.7/site-packages/mmdet-2.12.0-py3.7.egg/mmdet/core/utils/misc.py", line 29, in multi_apply
return tuple(map(list, zip(map_results)))
File "/home/hxz/anaconda3/envs/mmdnew/lib/python3.7/site-packages/mmdet-2.12.0-py3.7.egg/mmdet/models/dense_heads/tail_retina_head.py", line 318, in _get_targets_single
fill=self.num_classes)
File "/home/hxz/anaconda3/envs/mmdnew/lib/python3.7/site-packages/mmdet-2.12.0-py3.7.egg/mmdet/core/utils/misc.py", line 37, in unmap
ret[inds.type(torch.bool)] = data
RuntimeError: CUDA error: device-side assert triggered
terminate called after throwing an instance of 'c10::Error'
what():  CUDA error: device-side assert triggered
Exception raised from create_event_internal at /opt/conda/conda-bld/pytorch_1607370141920/work/c10/cuda/CUDACachingAllocator.cpp:687 (most recent call first):
frame #0: c10::Error::Error(c10::SourceLocation, std::string) + 0x42 (0x7f6be11248b2 in /home/hxz/anaconda3/envs/mmdnew/lib/python3.7/site-packages/torch/lib/libc10.so)
frame #1: c10::cuda::CUDACachingAllocator::raw_delete(void) + 0xad2 (0x7f6be1376982 in /home/hxz/anaconda3/envs/mmdnew/lib/python3.7/site-packages/torch/lib/libc10_cuda.so)
frame #2: c10::TensorImpl::release_resources() + 0x4d (0x7f6be110fb7d in /home/hxz/anaconda3/envs/mmdnew/lib/python3.7/site-packages/torch/lib/libc10.so)
frame #3:  + 0x5fea0a (0x7f6c1e461a0a in /home/hxz/anaconda3/envs/mmdnew/lib/python3.7/site-packages/torch/lib/libtorch_python.so)
frame #4:  + 0x5feab6 (0x7f6c1e461ab6 in /home/hxz/anaconda3/envs/mmdnew/lib/python3.7/site-packages/torch/lib/libtorch_python.so)

frame #23: __libc_start_main + 0xf0 (0x7f6c48515840 in /lib/x86_64-linux-gnu/libc.so.6)
Aborted (core dumped)
Does anyone know why?

How did you change the config? Usually, the sampling method cannot be applied to models with FocalLoss.

How did you change the config? Usually, the sampling method cannot be applied to models with FocalLoss.

sampler=dict(
type='RandomSampler',
num=512,
pos_fraction=0.25,
neg_pos_ub=-1,
add_gt_as_proposals=True),
and I change
self.sampling = True
in mmdet/models/dense_heads/retina_head.py

One of the possible reasons is your loss or gradient became NAN. I did not try any sampling method with focal loss before so I have no idea how to deal with this.


user profile wave animation jumping/not looping properly on vencord

I don't know if this was intentional or a bug, but the wave animation when viewing user profile jumps ahead.
https://github.com/Comfy-Themes/Discord/assets/67813011/2ef3fd51-a546-432b-87e5-7cd480ad0f70
I have tried:

restarting discord
removing and reapplying the theme on vencord
rebooting the PC

all with no avail.
I am applying the theme via vencord on Linux Mint 21.2

That's surely an issue on my end, just know by the way that restarting Discord is the latest choice you could make, rebooting your computer won't change anything for themes (almost sure plugins and client mods too)

Will be fixed in the next push, thanks for the report 👍

I can confirm that the issue is fixed now on my part. Very nice


registry.create() returning entt::entity of id greater than entt::null?

After destroying created entities and creating new ones, registry.create() returns ids that are greater than entt::null. Is this normal?

It doesn't. Identifiers are split in two parts, the entity and the version. entt::null means 0xFFFF for all bits of the entity part.
When you destroy an identifier, the version is increased while the entity remains the same. This is what you're observing. In any case the resulting entity is greater than entt::null (also because entt::null is the maximum value allowed for the entity part, so this cannot happen by construction 🤷♂).
Use entt::to_integral to convert an identifier to its integral value and entt::to_entity or entt::to_version to extract and verify its parts.

thank you!


using spin lock and skiplist

Let's discuss how to improve the performance of conn pool in this PR. This is the first try to remove expensive locks by using Skiplist and a spinlock. As we know, we do not have any data race in TcpStream, so this spin lock will not consume too many CPU cycles.

we do not have any data race in TcpStream, so this spin lock will not consume too many CPU cycles.

contention is what determines the amount of wasted CPU cycles, not presence of data race.
Anyway, I'm against any solution for improving the performance at this stage unless it also clearly simplifies the code, and this does not.
The rationale is:

We don't even know if the current solution is too slow for our needs
We don't have a way to measure that the new solution is better

we do not have any data race in TcpStream, so this spin lock will not consume too many CPU cycles.

contention is what determines the amount of wasted CPU cycles, not presence of data race.
Anyway, I'm against any solution for improving the performance at this stage unless it also clearly simplifies the code, and this does not. The rationale is:

We don't even know if the current solution is too slow for our needs
We don't have a way to measure that the new solution is better

Improving the performance is not the main target of this PR, we are blocking in mixnet unit test and the changes solve the problem.

Improving the performance is not the main target of this PR, we are blocking in mixnet unit test and the changes solve the problem.

Why is this not mentioned anywhere in the PR? How am I supposed to know? :)
Please put all the necessary information in here so that reviewing is easier

Make mixnode handle bodies coming from the same source concurrently #372

Sorry for that. Here is the reference, https://github.com/logos-co/nomos-node/pull/372.

let's continue the conversation here
https://github.com/logos-co/nomos-node/pull/372#issuecomment-1706384843
It only looks like it got slower, but https://github.com/logos-co/nomos-node/pull/372#issuecomment-1706384843 might solve it independently from this

Closed to support #373


enum.equals expects String only

Having a column as TextColumn get status => textEnum<CapillaryScheduleStatus>()();, the query below should work:
final cs = select(capillarySchedules)
  ..where(
    (cs) =>
        cs.deleted.equals(false) &
        cs.userId.equals(userId) &
        cs.status.equals(status),
  );

But it complains that The argument type 'CapillaryScheduleStatus' can't be assigned to the parameter type 'String'..
status is an enum of type CapillaryScheduleStatus. I think that equals should expect CapillaryScheduleStatus.draft instead of CapillaryScheduleStatus.draft.name.

You can use equalsValue on columns with type converters to do that.
The reason this needs an extra method is that cs.status still needs to be an Expression<String> because it is a string in SQL - you can do stuff like .length on it. So we can't make it an Expression<CapillaryScheduleStatus> .


Call stack  in Debug panel only shows 20 frames.

Environment data

VS Code version: 1.30.2
Extension version : 2018.12.1

Expected behaviour
I want the full call stack, but it only shows the recent 20 frames.

This limit is coming from VSC, this is the stackTrace request:
{
    "command": "stackTrace",
    "arguments": {
        "threadId": 1,
        "startFrame": 0,
        "levels": 20
    },
    "type": "request",
    "seq": 9
}

We are going to always return full stack (PR open for this). But for best experience ptvsd will need to support delay loaded stacks. https://github.com/Microsoft/ptvsd/issues/1146

Debugger master now implements supportsDelayedStackTraceLoading. VSC can make use of that now.

Download and install https://pvsc.blob.core.windows.net/extension-builds/ms-python-release.vsix to test this issue.

validated


feat(config): define 'ts-jest' on ConfigGlobals interface in @jest/types

Summary

Define ts-jest on jest ConfigGlobals interface to ultilize TypeScript declaration merging.
Adjust docs to instruct users how to do it.

Close #1588 , thanks @G-Rath for suggested solution 👍
Test plan
Build ts-jest then copy dist folder to node_modules/ts-jest/dist of an example project and follow the docs. Check if your IDE gives the suggestion of ts-jest config options.
Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information
N.A.

Pull Request Test Coverage Report for Build 4673

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 92.865%

Totals

Change from base Build 4672:
0.0%

Covered Lines:
1067

Relevant Lines:
1103

💛  - Coveralls


Travis build for head commit failing

Opened a new issue per @brad4d's request in another issue, trying to organize all of the info we have so far.  Please edit as necessary.
From #2480:

The error when running  "travis_util/test_npm.sh" (click to expand)
gulp-google-closure-compiler: TypeError: Cannot read property 'b' of null
    at l6b (/home/travis/build/google/closure-compiler/node_modules/closure-compiler-npm/packages/google-closure-compiler-js/jscomp.js:8754:375)
    at xxd (/home/travis/build/google/closure-compiler/node_modules/closure-compiler-npm/packages/google-closure-compiler-js/jscomp.js:8173:160)
    at h2b (/home/travis/build/google/closure-compiler/node_modules/closure-compiler-npm/packages/google-closure-compiler-js/jscomp.js:6214:103)
    at Z1b (/home/travis/build/google/closure-compiler/node_modules/closure-compiler-npm/packages/google-closure-compiler-js/jscomp.js:8414:290)
    at $1b (/home/travis/build/google/closure-compiler/node_modules/closure-compiler-npm/packages/google-closure-compiler-js/jscomp.js:6685:102)
    at u7b (/home/travis/build/google/closure-compiler/node_modules/closure-compiler-npm/packages/google-closure-compiler-js/jscomp.js:7561:205)
    at E6b (/home/travis/build/google/closure-compiler/node_modules/closure-compiler-npm/packages/google-closure-compiler-js/jscomp.js:9304:502)
    at Q7b.R7b [as lj] (/home/travis/build/google/closure-compiler/node_modules/closure-compiler-npm/packages/google-closure-compiler-js/jscomp.js:9599:205421)
    at c8b (/home/travis/build/google/closure-compiler/node_modules/closure-compiler-npm/packages/google-closure-compiler-js/jscomp.js:5955:36)
    at s7b (/home/travis/build/google/closure-compiler/node_modules/closure-compiler-npm/packages/google-closure-compiler-js/jscomp.js:2432:23)
    at C6b (/home/travis/build/google/closure-compiler/node_modules/closure-compiler-npm/packages/google-closure-compiler-js/jscomp.js:8344:190)
    at M7b.N7b [as lj] (/home/travis/build/google/closure-compiler/node_modules/closure-compiler-npm/packages/google-closure-compiler-js/jscomp.js:9599:205206)
    at c8b (/home/travis/build/google/closure-compiler/node_modules/closure-compiler-npm/packages/google-closure-compiler-js/jscomp.js:5955:36)
    at TYd (/home/travis/build/google/closure-compiler/node_modules/closure-compiler-npm/packages/google-closure-compiler-js/jscomp.js:9248:94)
    at DYd (/home/travis/build/google/closure-compiler/node_modules/closure-compiler-npm/packages/google-closure-compiler-js/jscomp.js:9453:918)
    at cS (/home/travis/build/google/closure-compiler/node_modules/closure-compiler-npm/packages/google-closure-compiler-js/jscomp.js:2508:29)
    at fS (/home/travis/build/google/closure-compiler/node_modules/closure-compiler-npm/packages/google-closure-compiler-js/jscomp.js:4031:44)
    at /home/travis/build/google/closure-compiler/node_modules/closure-compiler-npm/packages/google-closure-compiler-js/jscomp.js:4293:46
    at CompilerJS.run (/home/travis/build/google/closure-compiler/node_modules/closure-compiler-npm/packages/google-closure-compiler/lib/node/closure-compiler-js.js:54:17)
    at CompilerJS.value (/home/travis/build/google/closure-compiler/node_modules/closure-compiler-npm/packages/google-closure-compiler/test/gulp.js:61:50)
    at CompilationStream._flush (/home/travis/build/google/closure-compiler/node_modules/closure-compiler-npm/packages/google-closure-compiler/lib/gulp/index.js:159:20)
    at CompilationStream.prefinish (_stream_transform.js:141:10)
    at CompilationStream.emit (events.js:198:13)
    at CompilationStream.EventEmitter.emit (domain.js:448:20)
    at prefinish (_stream_writable.js:635:14)
    at finishMaybe (_stream_writable.js:643:5)
    at endWritable (_stream_writable.js:663:3)
    at CompilationStream.Writable.end (_stream_writable.js:594:5)
    at CompilationStream.onend (_stream_readable.js:672:10)
    at Object.onceWrapper (events.js:286:20)
    at CompilationStream.emit (events.js:198:13)
    at CompilationStream.EventEmitter.emit (domain.js:448:20)
    at endReadableNT (_stream_readable.js:1145:12)
    at process._tickCallback (internal/process/next_tick.js:63:19)

Originally posted by @q2p in https://github.com/google/closure-compiler/issues/2480#issuecomment-656589719

From #3631:

I think we had two separate causes of the CI failing.
https://github.com/google/closure-compiler/pull/3627/files fixed the original cause of the broken CI, introduced when adding a J2CL build a few weeks ago.
While that PR was still in review, a change to source map lookup https://github.com/google/closure-compiler/commit/dac995ac563bfe3170280899112699845768e135 caused a different CI failure (the one Christian mentioned)
I compared the Travis builds before and after the source map change https://github.com/google/closure-compiler/commit/dac995ac563bfe3170280899112699845768e135. Both builds fail but the failure message changes.
That commit was actually attempt #2 at making the caching sourcemap lookup. I was originally submitted in late May then reverted in https://github.com/google/closure-compiler/commit/5f4e410752df4483c43e8b7e818bae32ab4c2a97 because of the CI failure. (The commit message does not specify that it's a rollback because of a quirk of how we scrub commits for GitHub). We probably didn't notice that the rollforward broke the CI again because it was already broken :(.
Originally posted by @lauraharker in https://github.com/google/closure-compiler/issues/3631#issuecomment-658460005

Oops, this is a dupe.


Objects with filters are rendered in lower quality if the renderer's resolution is greater than 1

Current Behavior
If the app's (or renderer's) resolution is set to anything other than 1, e.g. if window.devicePixelRatio is used and greater than 1, then filters with (default) resolution 1, render to textures of relatively lower resolution. Consequently the visual quality degrades as soon as a filter is applied and the filter's resolution isn't adjusted to the renderer's resolution. This behavior is best shown by the demo below.

Expected Behavior
The filter's resolution should be relative to renderer's/render texture's resolution. Manually setting the resolution of every filter used to the same resolution as the renderer doesn't seem like the right way to go, neither solving the problem by changing the settings globally like this, which at the moment is the best way to do it as far as I can tell:
PIXI.settings.RESOLUTION = window.devicePixelRatio;
PIXI.settings.FILTER_RESOLUTION = window.devicePixelRatio;

Possible Solution
After the resolution is determined that is used for the filters in FilterSystem.push(), we need to multiply it by the renderer's/render texture's resolution.
if (renderer.current) {
    // Rendering to a texture...
    const baseTexture = renderer.current.baseTexture as BaseRenderTexture;
    resolution *= baseTexture.resolution;
} else {
    // Rendering to the screen...
    resolution *= renderer.resolution;
}

I haven't tested it yet, but it seems like this would work.
Steps to Reproduce
Check out the demo here. To see it, you have to zoom in of course. Zoom in as far as possible and click Refresh.
Environment

pixi.js version: 5.3.3+
Browser & Version: Chrome 87, Firefox 83
OS & Version: Windows 10
Running Example: https://www.pixiplayground.com/#/edit/KXGbyIOJzQBv7MQVT_8QT

The linked change does what I intended,  but also it uncovered another bug I'm going to report separately.


Fix permission checking (bug 1178810)

https://bugzilla.mozilla.org/show_bug.cgi?id=1178810
It has never worked properly except for prerelease permissions and permissions that required an 'access' value. For the rest, because we continued before adding the permission to the set, we never
checked or returned them to the caller.

r+


Error on clever initialization

Hi!
I'm trying to install clever locally but I encounter and error when the CLI try to install angular-seed.
In the npm-debug.log I've got these lines:
0 info it worked if it ends with ok
1 verbose cli [ 'node',
1 verbose cli   '/Users/Alfred/.nvm/v0.10.38/bin/npm',
1 verbose cli   'run-script',
1 verbose cli   'setup-protractor' ]
2 info using<EMAIL_ADDRESS>3 info using<EMAIL_ADDRESS>4 verbose run-script [ 'presetup-protractor',
4 verbose run-script   'setup-protractor',
4 verbose run-script   'postsetup-protractor' ]
5 info presetup-protractor<EMAIL_ADDRESS>6 info setup-protractor<EMAIL_ADDRESS>7 verbose unsafe-perm in lifecycle true
8 info<EMAIL_ADDRESS>Failed to exec setup-protractor script
9 verbose stack Error<EMAIL_ADDRESS>setup-protractor: grunt webdriver:update
9 verbose stack Exit status 3
9 verbose stack     at EventEmitter. (/Users/Alfred/.nvm/v0.10.38/lib/node_modules/npm/lib/utils/lifecycle.js:213:16)
9 verbose stack     at EventEmitter.emit (events.js:98:17)
9 verbose stack     at ChildProcess. (/Users/Alfred/.nvm/v0.10.38/lib/node_modules/npm/lib/utils/spawn.js:24:14)
9 verbose stack     at ChildProcess.emit (events.js:98:17)
9 verbose stack     at maybeClose (child_process.js:766:16)
9 verbose stack     at Process.ChildProcess._handle.onexit (child_process.js:833:5)
10 verbose pkgid<EMAIL_ADDRESS>11 verbose cwd /Users/Alfred/Sites/clever-pillar/frontend
12 error Darwin 14.3.0
13 error argv "node" "/Users/Alfred/.nvm/v0.10.38/bin/npm" "run-script" "setup-protractor"
14 error node v0.10.38
15 error npm  v2.11.2
16 error code ELIFECYCLE
17 error<EMAIL_ADDRESS>setup-protractor: grunt webdriver:update
17 error Exit status 3
18 error Failed at the<EMAIL_ADDRESS>setup-protractor script 'grunt webdriver:update'.
18 error This is most likely a problem with the angular-seed package,
18 error not with npm itself.
18 error Tell the author that this fails on your system:
18 error     grunt webdriver:update
18 error You can get their info via:
18 error     npm owner ls angular-seed
18 error There is likely additional logging output above.
19 verbose exit [ 1, true ]
Any idea? Do you any other information?
Thanks

Hello! I have same problem as this. Please help!

Try this https://github.com/CleverStack/cleverstack-cli/issues/76#issuecomment-121777570

Hi! That works for  me, thank you very much!


When displaying a post, if the author is in the database, link to its page

I've added the association, see https://github.com/sic2/isamuni/commit/cdbacf3967b66a4c35bd58ce1f2bbe6f2af72120 , the author, if exists, can now be accessed as post.author

Anyone reading this, @vigliag just created a link between the Post and the User. The requirement  When displaying a post, if the author is in the database, link to its page is still not done yet.

See pull request #101

fixed by @aegroto in 9fb73402b37a0009bfe3eb907ff50cf3576b7064


adding fuller version of a component with a flag, and alias

I'm thinking of adding an optional flag when using component generator, something like --full, that will boilerplate the most used react stages etc, that I find myself tediously writing every time.
This is even more useful when using Reflux (btw, just added a pull request with Reflux support)
It should be something like this:
'use strict';

var React = require('react/addons');
//if (architecture=== 'reflux')
  var Reflux = require('reflux');
  //var Actions = require('actions/...');

//if (stylesLanguage === 'sass')
 require('styles/componentName.sass');

var  componentName = React.createClass({
//if (architecture=== 'reflux')
    mixins: [Reflux.ListenerMixin],

  getInitialState: function () {
        return {   };
   },

  componentDidMount: function () {
  },

  render: function () {
    return (

Content for componentName

      );
  }
});

discussion

I use getInitialState and componentDidMount, and reflux stuff all the time, what's yours boiler-plated code?
what will be a proper name for this option (e.g --full)
I think react-webpack:component is quite a lot of text. We can create an alias. like react-webpack:cmp or react-webpack:c - what do you think will be suitable? (and what about react-webpack:action and react-webpack:store?)

Seems to be integrated for quite a time. Closing this.


We should call the UnLoad methods when we detect an error during call…

…ing OnLoad
Motivation:
We should ensure we call *UnLoad when we detect an error during calling *OnLoad and previous *OnLoad calls were succesfull.
Modifications:
Correctly call *UnLoad when needed.
Result:
More correct code and no leaks when an error happens during loading the native lib.

This came up
https://github.com/netty/netty/pull/8231#discussion_r213451757.
And was also done for netty-tcnative https://github.com/netty/netty-tcnative/pull/384


Add the augmentation points' window. [#1]

It's supposed to be a dark rectangle with rounded edges. Preferably with a dark gray color, to make it look sleek (maybe 0x242424).

Unlocks after first augmentation.


Don't show level on singular enchantments

For example: Curse of Vanishing should not show up as Curse of Vanishing I
Any enchantment that is I/I should drop the I and just display the title.
Would just cleanup the tooltip a bit.

Implement in 1.3.5, only when shifting though


[Material3] DropdownMenu Text Overflow

Is there an existing issue for this?

[X] I have searched the existing issues
[X] I have read the guide to filing a bug

Steps to reproduce

Use dartpad here: https://api.flutter.dev/flutter/material/DropdownMenu-class.html
Update to multiply the string (create a long string so text overflows):

    for (final ColorLabel color in ColorLabel.values) {
      colorEntries.add(
        DropdownMenuEntry<ColorLabel>(
            value: color, label: color.label * 300, enabled: color.label != 'Grey'),
      );
    }

Update DropdownMenu definition to pass a width. (This stops the dropdown selector from overflowing)
Update DropdownMenu definition to pass a MenuStyle with maximumWidth. (This stops the dropdown selector from overflowing)
Neither changing DropdownMenu.textStyle or DropdownMenuEntry.style (ButtonStyle.textStyle) allows changing how the text overflows.

Expected results
Can choose whether the text is clipped/ellipsis/wraps etc.
Actual results
Text Render overflows
Code sample
Code sample
import 'package:flutter/material.dart';

/// Flutter code sample for [DropdownMenu]s. The first dropdown menu has an outlined border.

void main() => runApp(const DropdownMenuExample());

class DropdownMenuExample extends StatefulWidget {
  const DropdownMenuExample({super.key});

  @override
  State<DropdownMenuExample> createState() => _DropdownMenuExampleState();
}

class _DropdownMenuExampleState extends State<DropdownMenuExample> {
  final TextEditingController colorController = TextEditingController();
  final TextEditingController iconController = TextEditingController();
  ColorLabel? selectedColor;
  IconLabel? selectedIcon;

  @override
  Widget build(BuildContext context) {
    final List<DropdownMenuEntry<ColorLabel>> colorEntries =
        <DropdownMenuEntry<ColorLabel>>[];
    for (final ColorLabel color in ColorLabel.values) {
      colorEntries.add(
        DropdownMenuEntry<ColorLabel>(
            value: color, label: color.label * 300, enabled: color.label != 'Grey' ),
      );
    }

    final List<DropdownMenuEntry<IconLabel>> iconEntries =
        <DropdownMenuEntry<IconLabel>>[];
    for (final IconLabel icon in IconLabel.values) {
      iconEntries
          .add(DropdownMenuEntry<IconLabel>(value: icon, label: icon.label));
    }

    return MaterialApp(
      theme: ThemeData(
        useMaterial3: true,
        colorSchemeSeed: Colors.green,
      ),
      home: Scaffold(
        body: SafeArea(
          child: Column(
            crossAxisAlignment: CrossAxisAlignment.stretch,
            children: <Widget>[
              Padding(
                padding: const EdgeInsets.symmetric(vertical: 20),
                child: Row(
                  mainAxisAlignment: MainAxisAlignment.center,
                  children: <Widget>[
                    DropdownMenu<ColorLabel>(
                      controller: colorController,
                      label: const Text('Color'),
                      dropdownMenuEntries: colorEntries,
                      onSelected: (ColorLabel? color) {
                        setState(() {
                          selectedColor = color;
                        });
                      },
                      width: 200,
                      textStyle: TextStyle(overflow: TextOverflow.ellipsis),
                      menuStyle: MenuStyle(maximumSize: MaterialStatePropertyAll(Size.fromWidth(200))),
                    ),
                    const SizedBox(width: 20),
                    DropdownMenu<IconLabel>(
                      controller: iconController,
                      enableFilter: true,
                      leadingIcon: const Icon(Icons.search),
                      label: const Text('Icon'),
                      dropdownMenuEntries: iconEntries,
                      inputDecorationTheme: const InputDecorationTheme(
                        filled: true,
                        contentPadding: EdgeInsets.symmetric(vertical: 5.0),
                      ),
                      onSelected: (IconLabel? icon) {
                        setState(() {
                          selectedIcon = icon;
                        });
                      },
                    )
                  ],
                ),
              ),
              if (selectedColor != null && selectedIcon != null)
                Row(
                  mainAxisAlignment: MainAxisAlignment.center,
                  children: <Widget>[
                    Text(
                        'You selected a ${selectedColor?.label} ${selectedIcon?.label}'),
                    Padding(
                      padding: const EdgeInsets.symmetric(horizontal: 5),
                      child: Icon(
                        selectedIcon?.icon,
                        color: selectedColor?.color,
                      ),
                    )
                  ],
                )
              else
                const Text('Please select a color and an icon.')
            ],
          ),
        ),
      ),
    );
  }
}

enum ColorLabel {
  blue('Blue', Colors.blue),
  pink('Pink', Colors.pink),
  green('Green', Colors.green),
  yellow('Yellow', Colors.yellow),
  grey('Grey', Colors.grey);

  const ColorLabel(this.label, this.color);
  final String label;
  final Color color;
}

enum IconLabel {
  smile('Smile', Icons.sentiment_satisfied_outlined),
  cloud(
    'Cloud',
    Icons.cloud_outlined,
  ),
  brush('Brush', Icons.brush_outlined),
  heart('Heart', Icons.favorite);

  const IconLabel(this.label, this.icon);
  final String label;
  final IconData icon;
}

Screenshots or Video

Screenshots / Video demonstration
[Upload media here]

Logs
Logs
[Paste your logs here]

Flutter Doctor output
Doctor output
from api.flutter.dev ....

Here's a simpler code sample that demonstrates the problem:
import 'package:flutter/material.dart';

enum ColorItem {
  blue('Blue', Colors.blue),
  pink('Pink', Colors.pink),
  green('Green', Colors.green),
  yellow('Yellow', Colors.yellow),
  grey('Grey', Colors.grey);

  const ColorItem(this.label, this.color);
  final String label;
  final Color color;
}

class DropdownMenuIssue extends StatefulWidget {
  const DropdownMenuIssue({super.key});

  @override
  State<DropdownMenuIssue> createState() => _DropdownMenuIssueState();
}

class _DropdownMenuIssueState extends State<DropdownMenuIssue> {
  late final TextEditingController controller;

  @override
  void initState() {
    super.initState();
    controller = TextEditingController();
  }

  @override
  void dispose() {
    controller.dispose();
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    final ColorScheme colorScheme = Theme.of(context).colorScheme;
    return Scaffold(
      body: Center(
        child: DropdownMenu<ColorItem>(
          width: 200,
          controller: controller,
          initialSelection: ColorItem.green,
          label: const Text('Color'),
          onSelected: (ColorItem? color) {
            print('Selected $color');
          },
          dropdownMenuEntries: ColorItem.values.map<DropdownMenuEntry<ColorItem>>((ColorItem item) {
            return DropdownMenuEntry<ColorItem>(
              value: item,
              label: item.label * 20,
            );
          }).toList(),
        ),
      ),
    );
  }
}

void main() {
  runApp(
    MaterialApp(home: const DropdownMenuIssue()),
  );
}

If the maxWidth of the Text widget created for each dropdown menu item's label is constrained when DropdownMenu.width is specified, then the menu items will wrap, instead of overflowing:

For the app to have additional control over how the label is rendered, it might be best to allow a DropdownMenuEntry labelWidget to be specified, along with the label. That would make it possible to configure the number of lines the text widget can expand to, and how overflow is handled. And if you wanted to use something other than Text(label) you could do that too.
Sound reasonable?

@HansMuller I am facing this issue and yes, it sounds reasonable to me.

The PR linked above fixes the problem reported here and enables creating your own label widget with the new DropdownMenuEntry  labelWidget property

I tried to solve this yesterday, got a solution very close to yours, but I found 2 weird behaviours that I wanted to investigate further.
First, the Flutter Inspector overlay wasn't highlighting the menu items, and clicking for finding the widget was closing the drop down, instead of ignoring the click.
Second, there are 2 Rows inside the MenuItemLabel, and they were messing with the constraints.
I tried constraining the label, but I didn't add your padding, maybe that was what was missing. This fixed partially, as the label wasn't precisely the width of the DropDownMenu. Then I tried to constrain the MenuButton, but that didn't work either, the width was correct, but the 2 Rows made the text overflow.
I also used maxWidth at first, but then I thought this should be a tight constraint, to match the DropDownMenu width, and this made it worse.
I will test your PR and try to understand the difference that padding makes. Thanks Hans.

The inspector Select Widget Mode still doesn't work, so I am guessing it's a bug on how it deals with clickable overlays. I think my PR was missing the internal padding you added... thanks again for the PR.


Error creating symbolic link during swift run on Windows

Description
On a Windows 11 machine, either swift build or swift run work the first time, but on repeated execution they report an error:

Build of product 'win32test' complete! (0.10s)
warning: unable to create symbolic link at C:\src\scratch.build\debug: Error Domain=NSCocoaErrorDomain Code=516 "A file with the same name already exists."

Reproduction
Run:
swift package init --type executable --name win32test
swift build
swift run

Expected behavior
Expected that repeated swift run invocations are idempotent.
Environment
Swift version 6.0-dev (LLVM c3efe9282719c35, Swift b163fed2b3101e0)
Target: aarch64-unknown-windows-msvc
Additional information
No response

From what I've seen so far these links aren't really used. You can access the build results using the toolchain triple and then debug/release.
But yes, disconcerting. It's on my list of Windows bugs to look at. Unfortunately there are a few more ahead of it.

I have the same problem with release version of Swift 6.0 toolchain. Also it creates symlinks without "list content" permission.

That's a good clue. Thanks!

Digging into this now. This might be a bug in how swift-foundation is creating the symlink on Windows.

Yup, FileManager is incorrectly creating the link. Details here: https://github.com/apple/swift-foundation/issues/928
I'll keep this open until we have it resolved. I can link it absolute but then it wouldn't allow the directory to be moved which might be OK, but let's see how that issue progresses.

me too

Sounds like a fix is on the way to swift-foundation. I'll wait for that and make sure it fixes this.

The fix is in. Tested with the Sept 24 CI build. Best wait until an official development snapshot is released to try it.


Validate types during runtime

Fixes #20.
With this, the example from #20 gives:
>>> jax.jit(mpi4jax.Send)(jnp.ones(10), 1)
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/dion/codes/mpi4jax/mpi4jax/validation.py", line 70, in wrapped
    f'{func_name} got unexpected type for argument "{arg}" '
jax.traceback_util.FilteredStackTrace: TypeError: Send got unexpected type for argument "dest" (expected: int, got: <class 'jax.interpreters.partial_eval.JaxprTracer'>).

An abstract tracer was passed where a concrete value is expected. Try using the static_argnums argument of jax.jit.

The stack trace above excludes JAX-internal frames.
The following is the original exception that occurred, unmodified.

--------------------

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

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/dion/.virtualenvs/science/lib/python3.7/site-packages/jax/traceback_util.py", line 136, in reraise_with_filtered_traceback
    return fun(*args, **kwargs)
  File "/Users/dion/.virtualenvs/science/lib/python3.7/site-packages/jax/api.py", line 214, in f_jitted
    donated_invars=donated_invars)
  File "/Users/dion/.virtualenvs/science/lib/python3.7/site-packages/jax/core.py", line 1146, in bind
    return call_bind(self, fun, *args, **params)
  File "/Users/dion/.virtualenvs/science/lib/python3.7/site-packages/jax/core.py", line 1135, in call_bind
    outs = primitive.impl(fun, *args, **params)
  File "/Users/dion/.virtualenvs/science/lib/python3.7/site-packages/jax/interpreters/xla.py", line 530, in _xla_call_impl
    *unsafe_map(arg_spec, args))
  File "/Users/dion/.virtualenvs/science/lib/python3.7/site-packages/jax/linear_util.py", line 224, in memoized_fun
    ans = call(fun, *args)
  File "/Users/dion/.virtualenvs/science/lib/python3.7/site-packages/jax/interpreters/xla.py", line 601, in _xla_callable
    fun, pvals, instantiate=False, stage_out=True, bottom=True)
  File "/Users/dion/.virtualenvs/science/lib/python3.7/site-packages/jax/interpreters/partial_eval.py", line 422, in trace_to_jaxpr
    jaxpr, (out_pvals, consts, env) = fun.call_wrapped(pvals)
  File "/Users/dion/.virtualenvs/science/lib/python3.7/site-packages/jax/linear_util.py", line 150, in call_wrapped
    ans = self.f(*args, **dict(self.params, **kwargs))
  File "/Users/dion/codes/mpi4jax/mpi4jax/validation.py", line 70, in wrapped
    f'{func_name} got unexpected type for argument "{arg}" '
TypeError: Send got unexpected type for argument "dest" (expected: int, got: <class 'jax.interpreters.partial_eval.JaxprTracer'>).

An abstract tracer was passed where a concrete value is expected. Try using the static_argnums argument of jax.jit.

This works by introducing a decorator enforce_types that works like this:
>>> @enforce_types(
...     foo=(int, type(None)),
...     bar=str
... )
... def func(x, foo, bar):
...     print(bar)

>>> func(1, 2, 'hi there!')
hi there!

>>> func(1, 2, 3)
TypeError: func got unexpected type for argument "bar" (expected: str, got: <class 'int'>)

Since we are passing these objects as raw pointers to C it felt appropriate to be a bit stricter with types than usual.
This also means that something like this throws an error:
>>> func(1, np.uint64(2), 'hi there!')
TypeError: func got unexpected type for argument "foo" (expected: ['int', 'NoneType'], got: <class 'numpy.uint64'>).

which is acceptable collateral damage IMO.

Still to-do:

[ ] Unit tests

which is acceptable collateral damage IMO.

Are we sure we can't find a workaround to this? Maybe we could manually replace occurrences of int with int, np.uint32, np.uint64 and so on.
I think it's a feature of jax the possibility of passing arbitrary numpy stuff and get it converted to jax types.
However, you never check the 'array' argument in your pr, so... it seems like you avoid the problem.

However, you never check the 'array' argument in your pr, so... it seems like you avoid the problem.

This is just about the non-tracer arguments such as source or tag. The arrays that are communicated can be any type.

This now allows NumPy generic types:
@enforce_types(
    x=np.integer
)

would allow Python int and all NumPy integer types (np.uint64,  np.int32, ...).


Update gradle to 7.3

Upgrade to Gradle 7.3 to work better with some other Android tools.

CI gfxreconstruct build queued with queue ID 182964.

CI gfxreconstruct build # 4139 running.


Sort notes

Describe the solution you'd like
Good afternoon, can you please tell me if a tree view of notes is considered in the future?
Type of feature
User Interface (UI)
Additional context
No response

@ivanswip can you please elaborate or possibly give examples of what you mean by tree view of notes

Something like this
In practice this can be folders, but it can also be a note in a note or a tag in a tag , for example in bear notes the tag can be #one/two/three.


question: publish SauceLab result

Hi @guybedford
Are you still running tests on SauceLab ?
If yes, what do you think of publishing the result of them in the README with a badge like :

or

Thanks @douglasduteil for the suggestion, yes this would be great. I did previously disable this, but forgot to re-enable it. I just tried getting this going again but am hitting not authorized issues in https://travis-ci.org/ModuleLoader/es6-module-loader/jobs/76861005#L1360.
Any idea what the fix would be? I've verified that the SAUCE_USERNAME and SAUCE_ACCESS_TOKEN environment variables are correctly configured in Travis.

@douglasduteil any clues here?

This started working magically again... I've included the badge now. Thanks @douglasduteil for the suggestion.


Add support for precision and scale for decimal type

I suppose you can do it simply by changing createColumnDef function by adding one another if and using existing variable len (casual length property is inappropriate for decimals), for example:
  createColumnDef: function(name, spec, options, tableName) {
    var escapedName = util.format('`%s`', name),
        t = this.mapDataType(spec),
        len;
    if(spec.type === type.DECIMAL) {
       if(spec.precision && spec.scale){
         len = '(' + spec.precision + ',' + spec.scale + ')';
       }
    }
    else if(spec.type !== type.TEXT && spec.type !== type.BLOB) {
      len = spec.length ? util.format('(%s)', spec.length) : '';
      if (t === 'VARCHAR' && len === '') {
        len = '(255)';
      }
    }
    var constraint = this.createColumnConstraint(spec, options, tableName, name);
    return { foreignKey: constraint.foreignKey,
             constraints: [escapedName, t, len, constraint.constraints].join(' ') };
  },

Probably it will be more clear to use another variable (not len).
Second idea would be changing base function (from db-migrate-base) but I'm not sure if all databases have decimals with precision and scale. Additionally current function createColumnDef from db-migrate-mysql doesn't use base version so this change would not be sufficient.
I have tested my change and it seems to work and I added pull request with it.

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/32796152-add-support-for-precision-and-scale-for-decimal-type?utm_campaign=plugin&utm_content=tracker%2F12292998&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F12292998&utm_medium=issues&utm_source=github).

+1

https://github.com/db-migrate/mysql/pull/13


Use secret-channel instead of libsodium secretstream

Since libsodium's secretstream seems a bit much for what we need, I ended up making my own substitute for Box Stream, which I call "Secret Channel" (which is setup after the "Secret Handshake").
In truth, is more like Box Stream than I initially expected, so is really an upgraded Box Stream: drops the weird byte slicing, uses the latest cipher (ChaCha20-Poly1305, same as TLS 1.3), uses little-endian for the nonce so can be incremented with libsodium's increment function.
Happy for this pull request to stay open and not be merged. A new protocol, what gives!? Also I haven't tested this beyond the secret-handshake-ext tests.

Superseded by https://github.com/staltz/secret-handshake-ext/pull/4


Readme's example fix

This example contains error. Current library version does not contains function ltalloc_squeeze, it names ltsqueeze

I've tested this change on my code.

thanks :)


Pipenv lock is failing due to pytest version errror

Issue description
Unable to create or update lock files due to pytest version issue.
Expected result
Should install packages without version conflicts.
Actual result
pipenv.patched.notpip._internal.exceptions.UnsupportedPythonVersion: pytest requires Python '>=3.5' but the running Python is 2.7.5
File "/home/user/.local/lib/python2.7/site-packages/pipenv/resolver.py", line 126, in <module>
    main()
  File "/home/user/.local/lib/python2.7/site-packages/pipenv/resolver.py", line 119, in main
    parsed.requirements_dir, parsed.packages)
  File "/home/user/.local/lib/python2.7/site-packages/pipenv/resolver.py", line 85, in _main
    requirements_dir=requirements_dir,
  File "/home/user/.local/lib/python2.7/site-packages/pipenv/resolver.py", line 69, in resolve
    req_dir=requirements_dir
  File "/home/user/.local/lib/python2.7/site-packages/pipenv/utils.py", line 726, in resolve_deps
    req_dir=req_dir,
  File "/home/user/.local/lib/python2.7/site-packages/pipenv/utils.py", line 480, in actually_resolve_deps
    resolved_tree = resolver.resolve()
  File "/home/user/.local/lib/python2.7/site-packages/pipenv/utils.py", line 385, in resolve
    results = self.resolver.resolve(max_rounds=environments.PIPENV_MAX_ROUNDS)
  File "/home/user/.local/lib/python2.7/site-packages/pipenv/patched/piptools/resolver.py", line 102, in resolve
    has_changed, best_matches = self._resolve_one_round()
  File "/home/user/.local/lib/python2.7/site-packages/pipenv/patched/piptools/resolver.py", line 206, in _resolve_one_round
    for dep in self._iter_dependencies(best_match):
  File "/home/user/.local/lib/python2.7/site-packages/pipenv/patched/piptools/resolver.py", line 301, in _iter_dependencies
    dependencies = self.repository.get_dependencies(ireq)
  File "/home/user/.local/lib/python2.7/site-packages/pipenv/patched/piptools/repositories/pypi.py", line 234, in get_dependencies
    legacy_results = self.get_legacy_dependencies(ireq)
  File "/home/user/.local/lib/python2.7/site-packages/pipenv/patched/piptools/repositories/pypi.py", line 426, in get_legacy_dependencies
    results, ireq = self.resolve_reqs(download_dir, ireq, wheel_cache)
  File "/home/user/.local/lib/python2.7/site-packages/pipenv/patched/piptools/repositories/pypi.py", line 297, in resolve_reqs
    results = resolver._resolve_one(reqset, ireq)
  File "/home/user/.local/lib/python2.7/site-packages/pipenv/patched/notpip/_internal/resolve.py", line 274, in _resolve_one
    self.requires_python = check_dist_requires_python(dist, absorb=False)
  File "/home/user/.local/lib/python2.7/site-packages/pipenv/patched/notpip/_internal/utils/packaging.py", line 62, in check_dist_requires_python
    '.'.join(map(str, sys.version_info[:3])),)
pipenv.patched.notpip._internal.exceptions.UnsupportedPythonVersion: pytest requires Python '>=3.5' but the running Python is 2.7.5

Steps to replicate
pip install --user pipenv pytest==4.6
pipenv shell
pipenv install

$ pipenv --support
Pipenv version: '2018.11.26'
Pipenv location: '/home/user/.local/lib/python2.7/site-packages/pipenv'
Python location: '/usr/bin/python2'
Python installations found:

2.7.5: /home/user/.local/share/virtualenvs/jido.inventory-Y-_EA1m9/bin/python2
2.7.5: /usr/bin/python

PEP 508 Information:
{'implementation_name': 'cpython',
 'implementation_version': '0',
 'os_name': 'posix',
 'platform_machine': 'x86_64',
 'platform_python_implementation': 'CPython',
 'platform_release': '3.10.0-1062.4.1.el7.x86_64',
 'platform_system': 'Linux',
 'platform_version': '#1 SMP Wed Sep 25 09:42:57 EDT 2019',
 'python_full_version': '2.7.5',
 'python_version': '2.7',
 'sys_platform': 'linux2'}

System environment variables:

GILT_REPO
PYTHONDONTWRITEBYTECODE
LESSOPEN
SSH_CLIENT
SELINUX_USE_CURRENT_RANGE
LOGNAME
USER
HOME
PATH
PS1
LANG
TERM
SHELL
SHLVL
HISTSIZE
MANPATH
PYTHONFINDER_IGNORE_UNSUPPORTED
PIPENV_ACTIVE
XDG_RUNTIME_DIR
SSH_AUTH_SOCK
VIRTUAL_ENV
SELINUX_ROLE_REQUESTED
PIP_PYTHON_PATH
XDG_SESSION_ID
_
SSH_CONNECTION
SSH_TTY
HOSTNAME
SELINUX_LEVEL_REQUESTED
HISTCONTROL
PWD
PIP_SHIMS_BASE_MODULE
PIP_DISABLE_PIP_VERSION_CHECK
MAIL
LS_COLORS

Pipenv–specific environment variables:

PIPENV_ACTIVE: 1

Debug–specific environment variables:

PATH: /home/user/.local/share/virtualenvs/org.inventory-Y-_EA1m9/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/opt/puppetlabs/bin:/home/user/.local/bin:/home/user/bin
SHELL: /bin/bash
LANG: en_US.UTF-8
PWD: /home/user/org.inventory
VIRTUAL_ENV: /home/user/.local/share/virtualenvs/org.inventory-Y-_EA1m9

Contents of Pipfile ('/home/user/org.inventory/Pipfile'):
[[source]]
name = "jido"
url = "https://nexus.example.com/repository/pypi-simple-release/simple"
verify_ssl = true

[dev-packages]
python-vagrant = "*"
molecule = "*"
docker = "*"
invoke = "*"
jinja2 = "*"

[packages]
ansible = "~=2.8"
nailgun = "*"
apypie = "*"
#pywinrm = ">=0.3.0"

[requires]
python_version = "2.7"

Your pipenv installed in python 2.7. Use
[requires]
python_version = "3.5"

Python 3.5 is

RHEL 7 is python2.7 based and installing another python is not a solution but I guess this is going nowhere.

@kuwv You could use newer versions of python your virtual environments. So this shouldn't be an issue


bump object to 0.6

Signed-off-by: Igor Gnatenko<EMAIL_ADDRESS>

Coverage remained the same at 0.0% when pulling 8c4e75bb93a53a97d6ce8bc187cae41432769349 on ignatenkobrain:object-v0.6 into a995977ad35b3258c3bf890886bffcf7514cfc6c on gimli-rs:master.


Issue #14 implement prov api

First version of the prov-api that passes all tests

Changes Unknown when pulling 7be54a0aa72bcb771a783cf512aa1049e13ccab8 on issue-#14-Implement_Prov_Api into ** on master**.

Changes Unknown when pulling 7be54a0aa72bcb771a783cf512aa1049e13ccab8 on issue-#14-Implement_Prov_Api into ** on master**.


First entry for some emoji is slug, some are not

I'm trying to reliably match an emoji slug to the list, but this isn't currently possible.
Most use a slug as the first entry in the list:
https://github.com/muan/emojilib/blob/0e7aca39ae468df1012cc6ff2ef47a77cd55fdd1/dist/emoji-en-US.json#L2-L10
But some use spaces instead of underscore, so they can't be matched by slug:
https://github.com/muan/emojilib/blob/0e7aca39ae468df1012cc6ff2ef47a77cd55fdd1/dist/emoji-en-US.json#L12998-L13003
Is this intentional, or is it too late to fix?

The space separated one I think might only be the newer ones since the slug responsibility was moved over to https://github.com/muan/unicode-emoji-json since 3.x. See "slug" field.
However, I wouldn't say that is "reliable". The Unicode emoji spec itself changes name of emoji every now and then as well. For example Gun was changed to Water Gun between versions. If you want something reliable it might either have to be custom maintained yourself or  follow one of those platform specific short codes from GitHub, Slack, Discord, and the likes.
It's not too late to fixed but I'd say there isn't a standardized way for this yet. If I were to make a decision today I'd lean towards using space separated emoji names as keywords.

Thanks for the response. I'd expect a primary use case to be storing an emoji reference as a string in a db, whether standalone or in markdown. In either case a slug-style string is pretty much the norm.
At any rate, I've switched to mapping directly against unicode-emoji-json to address this.


passing HttpClientTimeout into DeploymentHelper

This will incorporate a customizable app setting SCM_HTTPCLIENT_TIMEOUT to control httpClient's timeout for ZipController and PushDeploymentController.

Looks good - let me know if it is ready for merge and I will merge it.  Thanks!


Update vcpkg_msbuild_install.md

Host value must be boolean or an error is caused

Thanks for the fix!


Update issue templates

Codecov Report

Merging #114 (5fe6e4d) into main (5b9e8c6) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #114   +/-   ##
=======================================
  Coverage   87.42%   87.42%
=======================================
  Files           7        7
  Lines         851      851
  Branches      117      117
=======================================
  Hits          744      744
  Misses         80       80
  Partials       27       27

Flag
Coverage Δ

unittests
87.42% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out 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 5b9e8c6...5fe6e4d. Read the comment docs.


change imports to code snippets

Hello!
There is option to change in ts transpiler to change import's on code snippets?
Currently
index.d.ts
import { ZodType } from "zod"

ZodType<import("@clack/prompts").MultiSelectOptions<{
		value: unknown;
		label: string;
		hint?: string | undefined;
}

What i want
index.d.ts
type ZodType<T> = {...}
type MultiSelectOptions<T> = {...}

ZodType<MultiSelectOptions<{
		value: unknown;
		label: string;
		hint?: string | undefined;
}

Context
I'm doing my own package which is bundled with webpack and takes only needed code.
Im using Types to my config type so i want to take only types which i need to not download full package because it's not needed.
Example
https://www.npmjs.com/package/commitsmile?activeTab=code

Hi,
I think this might be one for the library I'm wrapping with this package (dts-bundle-generator) if it's a new feature around the bundling itself.
libraries.inlinedLibraries
from timocov's library might be worth a look?  You should find this is supported already when using this webpack plugin.


Service annotation (tags) causes target group and rule not be be created.

Tried to specify a user-friendly name of the target group that gets created from the ingress instead of the cryptic hash.  In this example, the desired target name if 'tg-foo-dev'.
apiVersion: v1
kind: Service
metadata:
  name: foo-dev
  annotations:
    alb.ingress.kubernetes.io/healthcheck-path: '/v1/diagnostics/healthcheck'
    alb.ingress.kubernetes.io/healthy-threshold-count: '2'
    alb.ingress.kubernetes.io/unhealthy-threshold-count: '3'
    alb.ingress.kubernetes.io/healthcheck-interval-seconds: '10'
    alb.ingress.kubernetes.io/healthcheck-timeout-seconds: '5'
    alb.ingress.kubernetes.io/tags: 'Name:tg-foo-dev'
spec:
  ports:
    - port: 80
      targetPort: 9999
      protocol: TCP
  type: NodePort
  selector:
    run: foo-dev

When the ingress is applied, the new ALB is created, but the target group is NOT created nor is the associated rule created.  Removing the 'Name' tag does not cause the target group and rule to get created unless the ingress is recreated.
The expected behavior would be the target group to get the friendly name, or the Name tag is ignored and the hash is used, but instead got no target group nor rule created.

The alb.ingress.kubernetes.io/tags annotation should be a comma separated list of key=value pairs. For this example, please use
    alb.ingress.kubernetes.io/tags: 'Name=tg-foo-dev'
If errors persist, please share the error snippet from the ingress controller logs.

When I used the correct format
alb.ingress.kubernetes.io/tags: 'Name=tg-foo-dev'
the Name tag appears to be ignored.  The target group is still created, given a hash for its name, the targets register, and the listener rule is created.  Everything appears to work as normal.
No tag with key 'Name' appears in the target group's list of tags.

In my tests, I see that the tags for target groups and sg get updated as expected. However, for the loadbalancer resource, I see behavior similar to the one mentioned in https://github.com/kubernetes-sigs/aws-alb-ingress-controller/issues/945 -- looks like an existing issue, if you can confirm the behavior, we will mark it a bug.
Are there any errors in the ingress controller logs?

I ran the test again, I see nothing associated with the 'Name' tag, but I expected as much.  Scanning thru the source code makes me believe this tag (Name) would be ignored.  Ideally, it would be nice if the name tag i.e. Name=tg-foo-dev would actually name the target group by overriding the hash name.  Also, a new annotation for overriding the name of the associated ALB would be nice too.
I didn't see any errors in the ingress controller logs.
` $ kubectl logs  alb-ingress-controller-6c5bc6cf5-mxr72 -n kube-system
AWS ALB Ingress controller
Release:    v1.1.8
Build:      git-ec387ad1
Repository: https://github.com/kubernetes-sigs/aws-alb-ingress-controller.git
W0904 17:58:03.671434       1 client_config.go:549] Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.

I0904 17:58:20.942348       1 leaderelection.go:214] successfully acquired lease kube-system/ingress-controller-leader-alb
I0904 17:58:20.942452       1 recorder.go:53] kubebuilder/manager/events "level"=1 "msg"="Normal"  "message"="alb-ingress-controller-6c5bc6cf5-mxr72_2dcf4b75-eed8-11ea-9b5f-7204d5696b5f became leader" "object"={"kind":"ConfigMap","namespace":"kube-system","name":"ingress-controller-leader-alb","uid":"0cc57532-3d10-4e26-b4c5-e9ae133761a4","apiVersion":"v1","resourceVersion":"2995353"} "reason"="LeaderElection"
I0904 17:58:21.043008       1 controller.go:134] kubebuilder/controller "level"=0 "msg"="Starting Controller"  "controller"="alb-ingress-controller"
I0904 17:58:21.143217       1 controller.go:154] kubebuilder/controller "level"=0 "msg"="Starting workers"  "controller"="alb-ingress-controller" "worker count"=1
W0904 18:35:15.947177       1 reflector.go:270] pkg/mod/k8s.io/client-go@v0.0.0-20181213151034-8d9ed539ba31/tools/cache/reflector.go:95: watch of *v1beta1.Ingress ended with: too old resource version: 2990472 (3004239)
W0904 18:50:05.265343       1 reflector.go:270] pkg/mod/k8s.io/client-go@v0.0.0-20181213151034-8d9ed539ba31/tools/cache/reflector.go:95: watch of *v1beta1.Ingress ended with: too old resource version: 3004239 (3007800)
E0904 18:58:50.378603       1 controller.go:217] kubebuilder/controller "msg"="Reconciler error" "error"="no object matching key "dev/eks-ingress-linux" in local store"  "controller"="alb-ingress-controller" "request"={"Namespace":"dev","Name":"eks-ingress-linux"}
I0904 18:58:51.899217       1 security_group.go:36] dev/eks-ingress-linux: creating securityGroup a7feb6d1-dev-eksingresslin-273f:managed LoadBalancer securityGroup by ALB Ingress Controller
I0904 18:58:52.098057       1 tags.go:69] dev/eks-ingress-linux: modifying tags {  ingress.k8s.aws/cluster: "eks-preprod",  ingress.k8s.aws/stack: "dev/eks-ingress-linux",  ingress.k8s.aws/resource: "ManagedLBSecurityGroup",  kubernetes.io/cluster-name: "eks-preprod",  kubernetes.io/namespace: "dev",  kubernetes.io/ingress-name: "eks-ingress-linux"} on sg-063f9294659de0ac9
I0904 18:58:52.231577       1 security_group.go:75] dev/eks-ingress-linux: granting inbound permissions to securityGroup sg-063f9294659de0ac9: [{    FromPort: 80,    IpProtocol: "tcp",    IpRanges: [{        CidrIp: "<IP_ADDRESS>/0",        Description: "Allow ingress on port 80 from <IP_ADDRESS>/0"      }],    ToPort: 80  }]
I0904 18:58:52.478291       1 loadbalancer.go:212] dev/eks-ingress-linux: creating LoadBalancer a7feb6d1-dev-eksingresslin-273f
I0904 18:58:53.306631       1 loadbalancer.go:229] dev/eks-ingress-linux: LoadBalancer a7feb6d1-dev-eksingresslin-273f created, ARN: arn:aws:elasticloadbalancing:us-east-1:606925484741:loadbalancer/app/a7feb6d1-dev-eksingresslin-273f/1aa6c47b0ba5b3ab
I0904 18:58:53.306940       1 recorder.go:53] kubebuilder/manager/events "level"=1 "msg"="Normal"  "message"="LoadBalancer a7feb6d1-dev-eksingresslin-273f created, ARN: arn:aws:elasticloadbalancing:us-east-1:606925484741:loadbalancer/app/a7feb6d1-dev-eksingresslin-273f/1aa6c47b0ba5b3ab" "object"={"kind":"Ingress","namespace":"dev","name":"eks-ingress-linux","uid":"ecb79cde-b29d-4af0-86e3-356a415d05a7","apiVersion":"extensions/v1beta1","resourceVersion":"3009903"} "reason"="CREATE"
I0904 18:58:54.292752       1 targetgroup.go:126] dev/eks-ingress-linux: creating target group a7feb6d1-b5517b8db65e3e783bd
I0904 18:58:54.455421       1 targetgroup.go:145] dev/eks-ingress-linux: target group a7feb6d1-b5517b8db65e3e783bd created: arn:aws:elasticloadbalancing:us-east-1:606925484741:targetgroup/a7feb6d1-b5517b8db65e3e783bd/1710947b73f83474
I0904 18:58:54.469970       1 tags.go:43] dev/eks-ingress-linux: modifying tags {  kubernetes.io/namespace: "dev",  kubernetes.io/ingress-name: "eks-ingress-linux",  ingress.k8s.aws/stack: "dev/eks-ingress-linux",  ingress.k8s.aws/cluster: "eks-preprod",  kubernetes.io/service-name: "foo",  kubernetes.io/service-port: "80",  ingress.k8s.aws/resource: "dev/eks-ingress-linux-foo:80",  kubernetes.io/cluster/eks-preprod: "owned"} on arn:aws:elasticloadbalancing:us-east-1:606925484741:targetgroup/a7feb6d1-b5517b8db65e3e783bd/1710947b73f83474
I0904 18:58:54.505810       1 targets.go:93] dev/eks-ingress-linux: Adding targets to arn:aws:elasticloadbalancing:us-east-1:606925484741:targetgroup/a7feb6d1-b5517b8db65e3e783bd/1710947b73f83474: i-015ea4e2aee7037f6:31585, i-0ccf258d6482cc7e8:31585, i-0ede3ed5f9d666f4b:31585, i-00ae0a1aa5c8b15d3:31585, i-0953bf471dd43bc4b:31585, i-0ff46a9e6f97ec2e1:31585
I0904 18:58:54.770819       1 listener.go:110] dev/eks-ingress-linux: creating listener 80
E0904 18:58:54.805868       1 controller.go:217] kubebuilder/controller "msg"="Reconciler error" "error"="failed to reconcile listeners due to failed to reconcile rules due to ListenerNotFound: One or more listeners not found\n\tstatus code: 400, request id: 54d7be21-1914-4012-8fd8-5d4bfd7e79f2"  "controller"="alb-ingress-controller" "request"={"Namespace":"dev","Name":"eks-ingress-linux"}
I0904 18:58:56.049164       1 rules.go:64] dev/eks-ingress-linux: creating rule 1 on arn:aws:elasticloadbalancing:us-east-1:606925484741:listener/app/a7feb6d1-dev-eksingresslin-273f/1aa6c47b0ba5b3ab/7c11073d9dc5cc7d
I0904 18:58:56.083506       1 rules.go:81] dev/eks-ingress-linux: rule 1 created with conditions [{    Field: "host-header",    HostHeaderConfig: {      Values: ["foo-dev.sgn.samtec.internal"]    }  }]
I0904 18:58:56.083659       1 recorder.go:53] kubebuilder/manager/events "level"=1 "msg"="Normal"  "message"="rule 1 created with conditions [{    Field: "host-header",    HostHeaderConfig: {      Values: ["foo-dev.sgn.samtec.internal"]    }  }]" "object"={"kind":"Ingress","namespace":"dev","name":"eks-ingress-linux","uid":"ecb79cde-b29d-4af0-86e3-356a415d05a7","apiVersion":"extensions/v1beta1","resourceVersion":"3009903"} "reason"="CREATE"
I0904 18:58:56.375531       1 instance_attachment_v2.go:192] dev/eks-ingress-linux: granting inbound permissions to securityGroup sg-0778514122456599e: [{    FromPort: 0,    IpProtocol: "tcp",    ToPort: 65535,    UserIdGroupPairs: [{        GroupId: "sg-063f9294659de0ac9"      }]  }]
I0904 18:58:56.506037       1 controller.go:236] kubebuilder/controller "level"=1 "msg"="Successfully Reconciled"  "controller"="alb-ingress-controller" "request"={"Namespace":"dev","Name":"eks-ingress-linux"}
I0904 18:58:57.157790       1 controller.go:236] kubebuilder/controller "level"=1 "msg"="Successfully Reconciled"  "controller"="alb-ingress-controller" "request"={"Namespace":"dev","Name":"eks-ingress-linux"}
`

I suppose this issue is similar to #1331, but I would also like to name the target groups in addition to the ALB via the Name tag.


Swift Unit Tests fail to run after adding Firebase to the project.

Xcode version: 9.3 (9E145)
Firebase SDK version: latest (4.x)
Firebase Component: Remote Config and Core
Component version: latest

[REQUIRED] Step 3: Describe the problem
Same as #58, the Firebase module is expected for Tests but isn't included. No Tests depend on the module. Also tracked in Cocoapods here https://github.com/CocoaPods/CocoaPods/issues/6891
We have a handful of other Pods like Realm, Crashlytics, etc. Those have been functioning fine with the same basic podfile setup. So while it feels like a Cocoapod's issue, its unique to Firebase for some reason.
Steps to reproduce:
I added Firebase to our Podfile, setup Firebase configure and a remote config test with a string value. Firebase worked as expected. Then after pushing CI noted the tests failed to build because of a missing Firebase dependency. Verified locally and received the same error listed in #58. Its unclear if this is a Firebase or Cocoapods issue so I am alerting both parties.
pod 'Firebase/Core'
pod 'Firebase/RemoteConfig'

Steps tried
We were using Cocoapods 1.4.0 at the time. I updated to 1.5.0 and updated the project, but that did not solve the problem.
The workaround adding ${PODS_ROOT}/Firebase/Core/Sources to our test target Header Search Paths did work.

Thanks for the report @EmperiorEric. Are you able to share a reproducible test case? We're likely to need that to make progress on this issue.
The other route would be trying the CocoaPods master branch since there have been some related changes for 1.5.1 and 1.6.0.

Closing for now. Will reopen with a repro case.


gmp cleanup

BEGINRELEASENOTES

CMake improvements and modularization
CPP modernization

ENDRELEASENOTES

Also please add the && to the test script to it aborts if any of the cmake or make steps fail (or set -e or something)

Fixed!


Provide a way to strip symbols from release builds in a way that stack traces can still be symbolicated offline

This is to address the regression mentioned on https://github.com/flutter/flutter/issues/8188.
cc @rmacnak-google @abarth

@fsc8000
Why does this issue have the 'spec-violation' label on it?
Why was the issue closed, is the size increase not a problem anymore?

Is this something we would only do in product (aka Flutter release) mode?

Yes.

By the way, there's a commonly used file format for symbols that many tools know how to interpret.  Ideally the Dart AOT compiler would generate symbols in the same format (e.g., as gcc and llvm do) so that tools that already understand that format can symbolicate stack traces without too much modification.


[CI] Upgrade to actions/checkout@v4

Node.js 16 actions are deprecated, so update to v4 which uses Node 20.

Thanks!  It's probably a good idea to set up dependabot indeed, as we tend to forget about updating dependencies.


Implement @ZeroingWeak annotation which will translate annotated fields to "weak" in ARC, and convert to WeakReference in MRC which will be translated to zeroing IOSReference in ObjC.

Implement @ZeroingWeak annotation which will translate annotated fields to "weak" in ARC, and convert to WeakReference in MRC which will be translated to zeroing IOSReference in ObjC.
The @ZeroingWeak annotation is designed to be safe to use, unlike existing @Weak annotation which gets translated to __unsafe_unretained and can introduce crashes caused by dangling pointers. @ZeringWeak can only be used for @Nullable fields, which requires users to handle nullability.

Hello @tomball. Do you have an ETA for this feature? This would solve a lot of crashes for our app.

It's merged and available now: just clone the GitHub repository, then build it as usual.
If you are concerned about having a build that's equivalent to a release distribution, use scripts/build_distribution.sh. We'll be releasing 2.7 soon, but need to finish merging the latest Android source into java.io first.


Add debug builds with Nix

Default build is release. To build debug, run:
nix build .#debug

Before merging, we need to update evm-assigner:

NilFoundation/evm-assigner/pull/17

@makxenov also, what about GTest? I don't have debug mode for it r.n. Do you think we should add it? I suppose you won't need debug info from GTest to debug tests.

@makxenov also, what about GTest? I don't have debug mode for it r.n. Do you think we should add it? I suppose you won't need debug info from GTest to debug tests.

I think it's not necessary.


implement assembly_script_address_from_public_key

Currently we return an hardcoded value in the vm mock.
We can check how core is doing the transformation and try to implement a javascript version.

Maybe it's simpler to have a setter to get the expected value.
If not, here is the golang version of how an address is generated from the public key.


DOC: Remove link to alpha in scipy.stats.dirichlet

Reference issue
Closes: #14190

What does this implement/fix?
Removes link to alpha and add math styling to an equation.

Additional information

Is there a way to meaningfully fix the links to the methods at the bottom?

@madphysicist I don't think Sphinx renders the documentation of methods of dirichlet_gen class. I don't think we can link them. What do you suggest @ilayn?

 I've requested some reviews and I'm sure one of them will stop by.

I don't think I can help much here, either, for a number of reasons.
I'll just mention that numpydoc standards for "parameters" states that "variables" are supposed to be in single-backticks.
I'm not sure how to link to method documentation.  There are a number of related issues; see e.g. gh-12848.

This is turning into more of a can of worms than I had initially expected.

I'd suggest making these dirichlet-specific fixes here and wait for a more complete response to gh-12848 to handle the rest.

I'm not sure how to link to method documentation.
@mdhaber are method documentation generated by Sphinx?

@NamamiShanker Maybe the problem is that there is an explicit "Methods" section; perhaps if it's not there Sphinx will automatically generate it. gh-14207 tests this idea based on the fact that NumericalInverseHermite does not have an explicit Methods section and Sphinx seems to generate it.

@mdhaber @madphysicist I will look into generating method documentation for objects from this observation. Meanwhile, should we merge this PR?


Enhance Data for Deployments

Is your feature request related to a problem? Please describe.
I need to be able to sort the deployments by date/time, and would like more contextual data I can work with.
Describe the solution you'd like
I would like to see more information for a deployment, like this:

running currently is a boolean, so if we check on the frontend for this as a status, it means we can only show the user that the deployment is either "running" or "stopped", but if it's failed it will just show as "stopped"
date/time to be able to sort by date/time
errors maybe an array of errors or warnings?
Any other information people might want to know about a deployment, like cluster and namespace, maybe version, or even number of steps could be interesting? I doubt we could show who deployed it, like the user but in the future that'd be nice.

datetime can be returned.
namespace is kind of dummy to return right now because it is included as a parameter on the query to return the list of deployments. But we can add it, just in case we extend it to support multiple namespaces.
Problematic data:
errors is kind of problematic because it means reading from the log of the camel-k operator (or whatever operator we use if we move beyond camel) and check what is happening. I will return an empty array for now, but not sure how to fill this. Even for a human reading the camel-k operator log it is sometimes not clear where is the error and to what deployment it refers to.
For the same reason, running may be difficult to map to something that is not a "Running" or "Stopped". Each type of CustomResource have a different set of statuses. The boolean simplifies the whole list. If we allow more statuses... what would they be? Do we mimic KameletBindings?
version is a concept we don't have right now. To return it we need first to define what version means for us.
cluster is also weird because clusters don't have a name. What should I return then?
number of steps is also an advanced feature that probably requires a bit more definition once we enter the EIP world. I can parse each CRD and try to get the number of steps, but is it not a bit overkill for just the list of deployments?
user that deployed it is something we also don't have.


KYLIN-4348 Fix distributed concurrency lock bug

issue link : https://issues.apache.org/jira/browse/KYLIN-4348

Codecov Report

Merging #1096 into master will decrease coverage by 0.14%.
The diff coverage is 0.8%.

@@             Coverage Diff              @@
##             master    #1096      +/-   ##
============================================
- Coverage     25.05%   24.91%   -0.15%
  Complexity     6223     6223
============================================
  Files          1440     1446       +6
  Lines         87830    88396     +566
  Branches      12275    12341      +66
============================================
+ Hits          22006    22024      +18
- Misses        63666    64212     +546
- Partials       2158     2160       +2

Impacted Files
Coverage Δ
Complexity Δ

...java/org/apache/kylin/rest/service/JobService.java
0% <0%> (ø)
0 <0> (ø)
:arrow_down:

...a/org/apache/kylin/source/hive/MRHiveDictUtil.java
0% <0%> (ø)
0 <0> (ø)
:arrow_down:

.../mr/steps/BuildGlobalHiveDictTotalBuildMapper.java
0% <0%> (ø)
0 <0> (?)

...va/org/apache/kylin/source/hive/HiveInputBase.java
5.78% <0%> (-0.92%)
4 <0> (ø)

...apache/kylin/source/hive/CreateMrHiveDictStep.java
0% <0%> (ø)
0 <0> (ø)
:arrow_down:

...n/job/lock/zookeeper/ZookeeperDistributedLock.java
49.35% <0%> (ø)
18 <0> (ø)
:arrow_down:

...ne/mr/steps/BuildGlobalHiveDicPartPartitioner.java
0% <0%> (ø)
0 <0> (?)

...gine/mr/steps/BuildGlobalHiveDictPartBuildJob.java
0% <0%> (ø)
0 <0> (?)

.../org/apache/kylin/source/kafka/KafkaInputBase.java
0% <0%> (ø)
0 <0> (ø)
:arrow_down:

.../org/apache/kylin/engine/mr/JobBuilderSupport.java
0% <0%> (ø)
0 <0> (ø)
:arrow_down:

... and 18 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 33c9f75...0304549. Read the comment docs.

Pull Request Test Coverage Report for Build 5587

5 of 621 (0.81%)  changed or added relevant lines in 17 files are covered.
11 unchanged lines in 4 files lost coverage.
Overall coverage decreased (-0.2%) to 27.362%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

core-job/src/main/java/org/apache/kylin/job/lock/zookeeper/ZookeeperDistributedLock.java
0
1
0.0%

source-kafka/src/main/java/org/apache/kylin/source/kafka/KafkaInputBase.java
0
1
0.0%

engine-mr/src/main/java/org/apache/kylin/engine/mr/BatchCubingJobBuilder2.java
0
8
0.0%

engine-spark/src/main/java/org/apache/kylin/engine/spark/SparkBatchCubingJobBuilder2.java
0
8
0.0%

server-base/src/main/java/org/apache/kylin/rest/service/JobService.java
0
14
0.0%

engine-mr/src/main/java/org/apache/kylin/engine/mr/steps/BuildGlobalHiveDicPartPartitioner.java
0
18
0.0%

engine-mr/src/main/java/org/apache/kylin/engine/mr/steps/BuildGlobalHiveDicPartBuildReducer.java
0
27
0.0%

core-common/src/main/java/org/apache/kylin/common/KylinConfigBase.java
1
35
2.86%

engine-mr/src/main/java/org/apache/kylin/engine/mr/JobBuilderSupport.java
0
40
0.0%

source-hive/src/main/java/org/apache/kylin/source/hive/MRHiveDictUtil.java
0
41
0.0%

Files with Coverage Reduction
New Missed Lines
%

server-base/src/main/java/org/apache/kylin/rest/service/JobService.java
1
0%

core-cube/src/main/java/org/apache/kylin/cube/cuboid/TreeCuboidScheduler.java
2
68.46%

core-job/src/main/java/org/apache/kylin/job/impl/threadpool/DefaultScheduler.java
2
80.23%

source-hive/src/main/java/org/apache/kylin/source/hive/HiveInputBase.java
6
6.46%

Totals

Change from base Build 5579:
-0.2%

Covered Lines:
24187

Relevant Lines:
88396

💛  - Coveralls

Merge pr: https://github.com/apache/kylin/pull/1097


Remove version: Tencent.COSBrowser version 2.11.19

[Automated] It returns code over 400 in all urls
Microsoft Reviewers: Open in CodeFlow

URL: https://cos5.cloud.tencent.com/cosbrowser/cosbrowser-setup-2.11.19.exe
Response status code does not indicate success: 404 (Not Found).
(Automated message - build 896)


Make tabs closable

Fixes

Fixes #1835 by @obulat
Description

This PR adds a Close button to VTabs component for the new mobile modal implementation:

Testing Instructions

Run `pnpm storybook` and look at the VTabs story. The closable story should have a cross Close button, and on clicking it, you should see a `close` event in the Actions tab of storybook:
Checklist

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

Developer Certificate of Origin

Developer Certificate of Origin
Developer Certificate of Origin
Version 1.1

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

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

Developer's Certificate of Origin 1.1

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

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

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

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

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

I'm not sure the Close button should live inside of VTabs like this. Couldn't it just live in the specific implementation of the mobile modal instead, something like this?
<VMobileModal>
 <VTabs label="#copy-license-title" :selected-id="tabs[0]">
   <template #tabs>
      <VTab v-for="tab in tabs" :id="tab" :key="tab">
        {{ $t(`media-details.reuse.copy-license.${tab}`) }}
      </VTab>
      <VIconButton
        class="ml-auto border-none text-dark-charcoal-70 ms-auto hover:text-dark-charcoal"
        size="search-medium"
        :icon-props="{ iconPath: closeIcon }"
        :aria-label="$t('modal.close').toString()"
        :button-props="{ variant: 'plain' }"
        @click="$emit('close')"
      />
   </template>
   <ContentTypeTabPanel />
   <FiltersTabPanel />
</VMobileModal>

I'm not sure the Close button should live inside of VTabs like this. Couldn't it just live in the specific implementation of the mobile modal instead, something like this?
<VMobileModal>
 <VTabs>
   <template #tabs>
      <VTab v-for="tab in tabs" :id="tab" :key="tab">
        {{ 'tab name here' }}
      </VTab>
      <VIconButton
        class="ms-auto"
        @click="$emit('close')"
      />
   </template>
   <ContentTypeTabPanel />
   <FiltersTabPanel />
 </VTabs>
</VMobileModal>

Thank you, @zackkrida, this is a much better suggestion!


Resolve Internal Server Error when rendering /help/requesting

The changes introduced in mysociety/alaveteli@50f9f33269aa223b7e1178dac1d18a23dcdccbf7 were not reflected in alavetelitheme which means sites directly using this template would encounter the following exception:
No route matches {:action=>"unhappy", :controller=>"help"} missing required keys: [:template]

Note to self: needs the use-with-<IP_ADDRESS> and use-with-<IP_ADDRESS> tags


Implement Radio Support

Radio Communications Layer
Radio Drivers

Closed by https://kubostech.atlassian.net/browse/KUBOS-94


Indentation is off when autoformatting code

Used autoformat with "validateIndentation": 4, resulted in incorrect indentation. Using jscs version 1.8.0.
Example:

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/25079015-indentation-is-off-when-autoformatting-code?utm_campaign=plugin&utm_content=tracker%2F281640&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F281640&utm_medium=issues&utm_source=github).

At this point only major and CST related bugs will be fixed.


fixing register-env issue by using persift flag explicitly and adding…

… filtering capability

:+1:


"Open windows from a previous session" executes even if a window is open.

Windows Terminal version
1.18.10301.0
Windows build number
10.0.19045.4046
Other Software
No response
Steps to reproduce

Open Settings,
Find "When Terminal starts" and set it to "Open windows from a previous session"
Open a few tabs
Open a console program like neovim from the start menu or desktop

Expected Behavior
It should just launch the new window
Actual Behavior
The current session duplicates.
https://github.com/microsoft/terminal/assets/112382253/6ee384d0-9b4f-407c-acc7-fa5f724f5712

I'm gonna dupe this into #16487, which I've been using for tracking everything like this.
You do have a good observation though, about the way it reacts when you launch neovim. That definitely helps narrow down the search space here. Thanks!
/dup #16487


Global UV scale option?

Since all of the nodes read from a uv value for their calculations, it'd be nice if each material had a global UV scale value, starting at (1.0, 1.0) that could be adjusted independently of the nodes. It's frustrating to make a cool pattern with non symetric noise and then not be able to get a 2x2 version of it with unique quadrants. Would this be hard to implement?

I'm pretty sure it woud not work with the current implementation. Most shaders are written to generate seamless textures, and scaling UVs by 2 would generate 2x2 versions with identical quadrants. And transform shaders would completely break the result.

Ahh I see, okay.


[BUG] Wrong dtype for random vectors used in KFAC's deterministic checks

Resolves #132.
The problem was that the deterministic checks generate random numpy vectors which were then converted to the incorrect PyTorch data dtype.
Interestingly, I found that the other linear operators, such as Hessian, GGN, Fisher, EF, were not affected by this problem. I'm not 100% sure why. @runame any thoughts?

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

3 of 3 (100.0%)  changed or added relevant lines in 1 file are covered.
56 unchanged lines in 2 files lost coverage.
Overall coverage decreased (-3.7%) to 88.794%

Files with Coverage Reduction
New Missed Lines
%

curvlinops/examples/utils.py
10
31.25%

curvlinops/fisher.py
46
26.47%

Totals

Change from base Build<PHONE_NUMBER>4:
-3.7%

Covered Lines:
1347

Relevant Lines:
1517

💛  - Coveralls


[BUG] chat_agent update message

Required prerequisites

[X] I have read the documentation https://camel-ai.github.io/camel/camel.html.
[X] I have searched the Issue Tracker and Discussions that this hasn't already been reported. (+1 or comment there if it has.)
[ ] Consider asking first in a Discussion.

What version of camel are you using?
0.1.0
System information
3.10.12 | packaged by Anaconda, Inc. | (main, Jul  5 2023, 19:01:18) [MSC v.1916 64 bit (AMD64)] win32
0.1.0
Problem description
I have added a function web_search into camel recently, but it didn't work correctly:

The user can't provide instructions, but the assistant can, which is against the prompt.
In chat_agent.py , there are these codes:

When agent update message, it always named 'user' even it's an assistant agent.  And the same as submit_message function:

The message comes from assistant have been updated to user's, I guess this is the reason why agent got confused, but it
didn't confuse agents in other conversation types.
In role_playing.py init_chat function, there is also a strange code:

The assistant message given to user, and user message given to assistant. But here the assistant_response = self.assistant_agent.step(user_msg) haven't been used, it's just update the message to assistant agent's stored_messages list, in most example files, the init_chat just used in this way:

The response from the agent.step have been throwed away. More important, it generates a message with user role type and assistant content:

The init_chat can work correctly in this way:

I have created a test with two steps of role_playing to output the agent's stored_messages:

here I only printed the role type,
This is the original code result:

This is the modified code result:

The conversation runs alternate in two agents, shouldn't the messages store in the same way?
After these modify, the agent back to normal:

Reproducible example code
python role_playing_with_function.py
Traceback
No response
Expected behavior
No response
Additional context
No response

I think the misunderstanding comes from the following.
There are two AI agents:

AI user
AI assistant

And there are two orthogonal "roles at backend":

user
assistant
which are related to OpenAI API.

This is quite untrivial and the naming is not ideal, I agree. Please take this into account and update us if you think that the bug is still there.
@lightaime

Anyway, @zhiyu-01 please create a PR for this ticket and put the test that you made earlier here.

I have printed out the user's ChatRecord, it should be in sequence as ['system', 'assistant', 'user'], but we just get a chaos:

The intersting thing is the agent didn't get confused in other role plyaing example, even the chatrecord is also out of order:

Besides, the ChatRecord containts two properties, role_at_back_end and message, the message is also containts the role type and content properties, what openai api need is {'role': role, 'content': content}, here seems have a little redundant. Should we consider a chage in the ChatRecord class?
@Obs01ete

@zhiyu-01 Please take the test
def test_role_playing_role_sequence(model_type=None):

and put it into a new PR for this ticket. Make sure that the test checks for the following sequence:
[lightaime](https://github.com/lightaime) [yesterday](https://github.com/camel-ai/camel/issues/298#r1335667054)
I have some doubts about this test. Should it be ['system', 'user', 'assistant', 'user', 'assistant', ...] normally?

@lightaime


CIV-7606 - Welsh - Bilingual language preference - Submit Notifications

JIRA link (if applicable)
https://tools.hmcts.net/jira/browse/CIV-7606
Change description
This PR has code changes to send a notification to claimant and defendant when caseworker upload's translated document.
Does this PR introduce a breaking change? (check one with "x")
[ ] Yes
[x] No

Do you need FlowStateEngine changes as we discussed before? can you submit a reply from claimant?


Some downloads failing from nhk.or.jp with IndexError

Checklist

[x] I'm reporting a broken site support
[x] I've verified that I'm running youtube-dl version 2021.12.17
[x] I've checked that all provided URLs are alive and playable in a browser
[x] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[x] I've searched the bugtracker for similar issues including closed ones

Verbose log
From a Mac:
❯ youtube-dl -v -o "Dining with the Chef - S2022E15 %(title)s.%(ext)s" https://www3.nhk.or.jp/nhkworld/en/ondemand/video/2019324/
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'-o', u'Dining with the Chef - S2022E15 %(title)s.%(ext)s', u'https://www3.nhk.or.jp/nhkworld/en/ondemand/video/2019324/']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2021.12.17
[debug] Python version 2.7.16 (CPython) - Darwin-20.6.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 5.0.1, ffprobe 5.0.1, rtmpdump 2.4
[debug] Proxy map: {}
[NhkVod] 2019-324: Downloading JSON metadata
Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/local/bin/youtube-dl/__main__.py", line 19, in <module>
  File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 475, in main
  File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 465, in _real_main
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2069, in download
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 808, in extract_info
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 815, in wrapper
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 836, in __extract_info
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 534, in extract
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/nhk.py", line 130, in _real_extract
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/nhk.py", line 32, in _extract_episode_info
IndexError: list index out of range

From Ubuntu 20.04 (python3)
❯ youtube-dl -v -o "Dining with the Chef - S2022E15 %(title)s.%(ext)s" https://www3.nhk.or.jp/nhkworld/en/ondemand/video/2019324/
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '-o', 'Dining with the Chef - S2022E15 %(title)s.%(ext)s', 'https://www3.nhk.or.jp/nhkworld/en/ondemand/video/2019324/']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2021.12.17
[debug] Python version 3.8.10 (CPython) - Linux-5.4.0-113-generic-x86_64-with-glibc2.29
[debug] exe versions: ffmpeg 5.0.1-1, ffprobe 5.0.1-1
[debug] Proxy map: {}
[NhkVod] 2019-324: Downloading JSON metadata
Traceback (most recent call last):
  File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/usr/local/bin/youtube-dl/__main__.py", line 19, in <module>
  File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 475, in main
  File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 465, in _real_main
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2068, in download
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 808, in extract_info
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 815, in wrapper
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 836, in __extract_info
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 534, in extract
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/nhk.py", line 130, in _real_extract
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/nhk.py", line 31, in _extract_episode_info
IndexError: list index out of range

Description
Downloads are failing on some video files from NHK (nhk.or.jp) but others are working fine. I have tried this from both my Mac and an Ubuntu 20.04 box, the mac is running python 2 (thanks Apple), the Ubuntu box has defaults to python 3. Both throw the same error.
Another failing URL: https://www3.nhk.or.jp/nhkworld/en/ondemand/video/4026164/
This may only be happening with the most recent episode of a series. The URL above fails, but the previous episode of the same show at https://www3.nhk.or.jp/nhkworld/en/ondemand/video/2019323/ works fine. https://www3.nhk.or.jp/nhkworld/en/ondemand/video/4026161/ is another example of a working URL, while the one above (4026164) fails.
You can find their full VOD catalog at https://www3.nhk.or.jp/nhkworld/en/ondemand/latest/?type=tvEpisode&.

play the video and press F12 on your keyboard to bring up the developer tools,
go to network tab, in the search box, type  chunklist.m3u8, the first hit that shows,
right click and copy link address then just feed the link into youtube-dl to download the video.

Same problem as https://github.com/yt-dlp/yt-dlp/issues/4066.
This patch will be pushed to the git master soon:
--- old/youtube_dl/extractor/nhk.py
+++ new/youtube_dl/extractor/nhk.py
@@ -8,7 +8,7 @@ from ..utils import urljoin

 class NhkBaseIE(InfoExtractor):
-    _API_URL_TEMPLATE = 'https://api.nhk.or.jp/nhkworld/%sod%slist/v7a/%s/%s/%s/all%s.json'
+    _API_URL_TEMPLATE = 'https://nwapi.nhk.jp/nhkworld/%sod%slist/v7b/%s/%s/%s/all%s.json'
     _BASE_URL_REGEX = r'https?://www3\.nhk\.or\.jp/nhkworld/(?P<lang>[a-z]{2})/ondemand'
     _TYPE_REGEX = r'/(?P<type>video|audio)/'

Thanks for the patch! The workaround is roughly the same thing I do with This Old House since it seems to be hit or miss as to how much they have obscured the URL on any given episode.

"This Old House" is supposed to be a supported site, with URLs like https://www.thisoldhouse.com/how-to/how-to-build-storage-bench (various other patterns after the domain are handled):
$ python test/test_download.py TestDownload.test_ThisOldHouse
[ThisOldHouse] how-to-build-storage-bench: Downloading webpage
[Zype] 5dcdddf673c3f956ef5db202: Downloading JSON metadata
[Zype] 5dcdddf673c3f956ef5db202: Downloading m3u8 information
[info] Writing video description metadata as JSON to: test_ThisOldHouse_5dcdddf673c3f956ef5db202.info.json
.
----------------------------------------------------------------------
Ran 1 test in 9.488s

OK
$

Feel free to raise a broken site support issue if a TOH page isn't being properly handled.

Fixed in 8a158a936c8b002ef536e9e2b778ded02c09c0fa.

@dirkf I will have to see if the TOH issue reoccurs when they post a new episode. It may be something specific to their authenticated "Insiders" pages. I just checked, and the non-protected new videos do download correctly. I have opened a couple of issues for them in the past - they like to change their URLs and break things. :)


Dispose IDisposable objects

It may be better to call Dispose on objects than leaving them to the GC.

Moved to dotnet/dotnet-api-docs#1491


Automated Package Upgrade

:tada: This PR is included in version 25.6.5 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Overriden form text field with FileUpload field.

Checklist

[X] The bug is reproducible against the latest release or master.
[X] There are no similar issues or pull requests to fix it yet.

Describe the bug
Since I already have a solution but I don't know whether it's useful or not, I will be short. I have a simple logic in my app. User can upload a .json file, async def on_model_change(self, data, model, is_created, request): will open it, load json and pass it further as a dict to save it to postgres' JSONB field. The problem is that the SQLAdmin itself still considers it being of type UploadFile and hence line 689 in application.py was raising an AttributeError: 'dict' object has no attribute 'name'. My solution is to basically just pass f's value as is since there's no case when f can have name or read attribute in this elif.
Steps to reproduce the bug
No response
Expected behavior
No response
Actual behavior
No response
Debugging material
os, python, sqladmin version
Environment

OS: macOS Sonoma 14.2.1
Python: 3.11.3
SQLAdmin: 0.16.1

Additional context
No response

I think I understand what the issue is, but this was specifically added to make sqladmin work with fastapi-storages.
But I assume you are not using fastapi-storages but just using a FileUpload field, right?

Yeah, I use JSONB field in SQLAlchemy, override it with FileUpload field in the admin form, parse Joan from the file in the on_model_updateand pass the resulting data forward. According to my tests, there's no such case except for mine to get into the elif statement I changed. It also passes all the tests hence it's definitely not a destructive change!

Yeah that makes sense.
I will add a minor change to your PR as I think the current code was because of a hacky workaround I did for fastapi-storages.

@smbrine I think I was a bit confused and my previous comment was not accurate.
The issue is that when uploading the file everything works es you explained, you open the file and pass the content as dict to be saved in DB.
The issue comes up when you want to edit the inserted object. You are storing the file content in JSONB but in the edit form you want to show FileField with WTForms. SQLAdmin expects that since this is a FileField, previously a file was stored for this.
Maybe a good question is why don'y you specify a TextField and validate the JSON with the hooks? Since you aren't really storing/editing the file.

Because in that case there will be no way to submit a file (except for fully custom form but it's definitely not what I want since it takes way more time to do).

But is this accomplished in any tool like Django admin and flask-admin without modifying the behaviour completely? The reason I ask is that is that this is a very specific use-case that you want the create form to accept a file, but in the edit form you want to edit a JSON field.

Seems like I have incorrectly explained my point. It's not that I want to have a JSON field in the edit form, there is also UploadForm since I don't want users to deal with TextAreas. The idea is for example if one wants to store, say, parseable text file in db in a parsed way (just like my case when I store .json file as JSONB instead of the file itself). I haven't used flask-admin, nor do I have expertise in Django admin hence I can't judge here. My point is that I have handled my specific scenario without affecting any other scenarios and now it's fully up to you but there's always a chance that there will be someone else who will also decide to override a field with a FileUpload!


linuxPackages_latest: 5.11 -> 5.12

Motivation for this change
I think someone missed bumping this when they added the 5.12 kernel.
cc. @NeQuissimus
Things done

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

[ ] 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
[ ] Fits CONTRIBUTING.md.

Dupe: https://github.com/NixOS/nixpkgs/pull/122598