time arg does not work in delete() and multi_delete()

Hello,
Setting time in delete and multi_delete functions raise error in Pylibmc 1.3.0.
TypeError: 'time' is an invalid keyword argument for this function
and if I set it as argument:
TypeError: delete() takes exactly 1 argument (2 given)
The docs say I should be able to use time in delete(). What's the deal?
Thanks,
Eras

Here is a repro:
import pylibmc
print pylibmc.__version__
print pylibmc.libmemcached_version
mc = pylibmc.Client(['localhost:11211'])
mc.set('test_key', 'test_data')
mc.delete('test_key', time = 10)

And the output:
1.5.0
1.0.18
Traceback (most recent call last):
  File "repro.py", line 6, in <module>
    mc.delete('test_key', time = 10)
TypeError: delete() takes no keyword arguments

It fails also if time is passed as a positional argument:
mc.delete('test_key', 10)
Traceback (most recent call last):
  File "repro.py", line 6, in <module>
    mc.delete('test_key', 10)
TypeError: delete() takes exactly 1 argument (2 given)

It is clear from
https://github.com/lericson/pylibmc/blob/master/src/_pylibmcmodule.c#L1428
that the time argument is ignored and 0 is passed to memcached_delete.

I have attempted a patch but found that libmemcached-1.0.18 does not support expiration.
1.5.100-dev
1.0.18
Traceback (most recent call last):
  File "repro.py", line 8, in <module>
    mc.delete(key, 4)
pylibmc.Error: error 38 from memcached_delete(test_key): (0xda05b0) INVALID ARGUMENTS, Memcached server version does not allow expiration of deleted items -> libmemcached/delete.cc:159

After reading the libmemcached docs, I realized the delete command is actually much less useful than I thought. From docs/source/memcached_delete.rst:

Expiration works by placing the item into a delete queue, which means that
it won't be possible to retrieve it by the "get" command. The "add" and
"replace" commands with this key will also fail (the "set" command will
succeed, however). After the time passes, the item is finally deleted from server memory.

So apparently, the item appears deleted to clients immediately after setting the expiration. I thought that the item would remain accessible for the given time.

What an odd feature. I think the story is that the time argument used to exist, was never removed from documentation, but subsequently removed as a feature due to it not working as you noticed.
What do you think is the right way to go here? Remove it from the documentation as well?

On 7 mars 2016, at 23:55, jhausauer-kanerai<EMAIL_ADDRESS>wrote:
After reading the libmemcached docs, I realized the delete command is actually much less useful than I thought. From docs/source/memcached_delete.rst:
Expiration works by placing the item into a delete queue, which means that
it won't be possible to retrieve it by the "get" command. The "add" and
"replace" commands with this key will also fail (the "set" command will
succeed, however). After the time passes, the item is finally deleted from server memory.
So apparently, the item appears deleted to clients immediately after setting the expiration. I thought that the item would remain accessible for the given time.
—
Reply to this email directly or view it on GitHub.

Yeah, I agree that it should be removed from the documentation.
On Mon, Mar 14, 2016 at 5:18 AM, Ludvig Ericson<EMAIL_ADDRESS>wrote:

What an odd feature. I think the story is that the time argument used to
exist, was never removed from documentation, but subsequently removed as a
feature due to it not working as you noticed.
What do you think is the right way to go here? Remove it from the
documentation as well?

On 7 mars 2016, at 23:55, jhausauer-kanerai<EMAIL_ADDRESS>wrote:
After reading the libmemcached docs, I realized the delete command is
actually much less useful than I thought. From
docs/source/memcached_delete.rst:
Expiration works by placing the item into a delete queue, which means
that
it won't be possible to retrieve it by the "get" command. The "add" and
"replace" commands with this key will also fail (the "set" command will
succeed, however). After the time passes, the item is finally deleted
from server memory.
So apparently, the item appears deleted to clients immediately after
setting the expiration. I thought that the item would remain accessible for
the given time.
—
Reply to this email directly or view it on GitHub.

—
Reply to this email directly or view it on GitHub
https://github.com/lericson/pylibmc/issues/169#issuecomment-196215799.

--
This message contains confidential information and is intended only for the
individual named. If you are not the named addressee, you should not
disseminate, distribute, alter or copy this e-mail. Please notify the
sender immediately by e-mail if you have received this e-mail by mistake
and delete this e-mail from your system. E-mail transmissions cannot be
guaranteed to be secure or without error as information could be
intercepted, corrupted, lost, destroyed, or arrive late or incomplete. The
sender, therefore, does not accept liability for any errors or omissions in
the contents of this message which arise during or as a result of e-mail
transmission. If verification is required, please request a hard-copy
version. This message is provided for information purposes and should not
be construed as a solicitation or offer to buy or sell any securities or
related financial instruments in any jurisdiction.


fix: allow readonly arrays in compoundVariants

Description
This PR allows developers to use as const inside compoundVariants for arrays of variants, not just single variants.
import { cva } from 'class-variance-authority';

export const demoVariants = cva('bg-red-500', {
  variants: {
    foo: {
      a: 'p-1',
      b: 'p-2',
      c: 'p-3',
    },
    bar: {
      x: 'm-1',
      y: 'm-2',
      z: 'm-3',
    },
  },
  compoundVariants: [
    {
      foo: 'a' as const,          // ⬅ previously possible
      bar: ['x', 'y'] as const,   // ⬅ previously not allowed by typings: Type 'readonly ["x", "y"]' is not assignable to type '"x" | "y" | "z" | ("x" | "y" | "z")[] | null | undefined' ts(2322)
      class: 'm-0 p-0',
    },
  ],
  defaultVariants: {
    foo: 'a',
    bar: 'x',
  },
});

Adding support for as const after arrays is helpful for users of eslint-plugin-tailwindcss with tailwindcss/no-custom-classname enabled. Here is why: https://github.com/francoismassart/eslint-plugin-tailwindcss/issues/193#issuecomment-1429895036.
Additional context
See https://github.com/joe-bell/cva/discussions/195
I don’t know a full range of versions where ReadonlyArray is supported, but it’s mentioned in TS 3.4 release (3 years ago). Guess it’s safe to use this utility type.

What is the purpose of this pull request?

[x] Bug fix (for TS users)
New Feature
Documentation update
Other

Before submitting the PR, please make sure you do the following

[x] Read the Contributing Guidelines.
[x] Follow the Style Guide.
[x] Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
[x] Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123).

I need to do some proper digging on this to see how it'll play with other frameworks/libraries – but rest assured we can revisit this after<EMAIL_ADDRESS>– thanks again for taking the time to make this!
https://github.com/joe-bell/cva/discussions/195#discussioncomment-6750163


remove duplicated condition in gateway.

Remove duplicated condition in gateway, since they have defined in requirements.yaml

@ymesika I think enabled  field can be remove from values.yaml for each subchart, while it should be kept in top parent’s values.yaml, because we need it in requirements .yaml.

@morvencao: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-integ-k8s-tests.sh
2b80c6179b611e6aae108fa1fcddc21e77dee81e
link
/test istio-integ-k8s-tests

prow/istio-pilot-multicluster-e2e.sh
b3bd56de27b92af164fa30d77140f1bb0f79074d
link
/test istio-pilot-multicluster-e2e

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@morvencao: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-pilot-multicluster-e2e.sh
b3bd56de27b92af164fa30d77140f1bb0f79074d
link
/test istio-pilot-multicluster-e2e

prow/istio-integ-k8s-tests.sh
b3bd56de27b92af164fa30d77140f1bb0f79074d
link
/test istio-integ-k8s-tests

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@morvencao I believe the subtly of these configuration options are difficult to understand.  IIRC, the objective was to permit all services to be enabled and disabled independently of whether or not the gatways are enabled or enabled.
Use Case: Enable all addons, but only eanble gateways for kiali and grafana.
I think this PR breaks that use case.  If not, I'd suggest opening against master, as release-1.1 is frozen without an issue ticket.
Cheers
-steve

IIRC, the objective was to permit all services to be enabled and disabled independently of whether or not the gatways are enabled ... Use Case: Enable all addons, but only eanble gateways for kiali and grafana.

This is correct. This PR breaks that functionality. It was requested (I forget by whom) that we provide a way to enable the addons independently of whether or not some or all are exposed via the gateway. That feature goes away if we merge this PR.

/hold
Holding until we can sort out what the proper behavior should be from other reviewers.
Sadly I don't recall who requested this functionality.  @douglas-reid any ideas?

Thanks @sdake

@morvencao: PR needs rebase.

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.


Map instantiation bug

There used to be several map instantiations when widget dataviews are added to the dataviewsCollection. It generated problems in the map rendering, more requests to the API than expected, etc.
So, from now on, when a dashboard (deep-insights) is created, it will skip the map instantiation until dataviews collection is generated (@viddo idea's, and totally makes sense).
CR: @viddo
cc @javisantana @alonsogarciapablo @javierarce @acanimal
Deep-insights PR.

LGTM


Request: Please don't deprecate the ID type aliases

They're much less confusing to read than Id<TypeMarker> imo. I'd rather not maintain my own list of aliases since the ID type could change in the future, as they did in 0.9.0.

If you need to retain the readability of the old form of ID types, you can re-export in your own code in the same way the library used to do it:
pub type ApplicationId = Id<ApplicationMarker>;

It's not planned to keep those type aliases. I personally don't think that there will be another significant change related to the ID names, but of course I cannot make a guarantee there.
Therefore as 7596ff has pointed out you can keep your own list of type aliases.
I will close this issue, since I think this has been answered. Feel free to reopen if you should think differently.


memory is not cleared when using egui::Button (possible bug)

Here is my code as a example
egui::ScrollArea::vertical().show(ui, |ui| {
                                    for (column_index, button_label) in
                                        self.merged_array[1].iter().enumerate()
                                    {
                                        if button_label.to_string() == self.selected.clone() {
                                            if ui
                                                .add(
                                                    egui::Button::new(button_label.to_string())
                                                        .fill(egui::Color32::from_rgb(153, 0, 153)),
                                                )
                                                .clicked()
                                            {
                                                if env::args().any(|arg| arg == "-d") {
                                                println!(
                                                    "Clicked item is in column: {}",
                                                    column_index
                                                );}
                                            }
                                        } else {
                                            if ui
                                                .add(
                                                    egui::Button::new(button_label.to_string())
                                                        .fill(egui::Color32::from_rgb(102, 0, 102)),
                                                )
                                                .clicked()
                                            {
                                            }
                                        }
                                    }
                                });

Merged_array[1] has around 10,000 elements in it, only adding around 10 MB to my total memory usage.
While the code above, when I run it against those 10,000 elements, it goes up to around 400 MB. I'm fine with that, but the problem is that when I overwrite the array with, let's say, 10 items, it stays the same allocation because of the buttons. It does not seem to clear the allocation when I loop over new items.
(Just to clarify, I add 10,000 items to the array. I loop over them with the code above. Then, I change the array to fewer items. Then, I loop over those items using the code block above. It should, in theory, since the old array is gone with all of its buttons, shrink to size, so to speak, and lower the memory allocation.)

You mean memory isn't being freed? Are you sure? Have you hooked up the allocator and counted (e.g. with re_memory? You cannot trust what the OS tells you!
Also: you should be using https://docs.rs/egui/latest/egui/containers/scroll_area/struct.ScrollArea.html#method.show_rows

Also: you should be using https://docs.rs/egui/latest/egui/containers/scroll_area/struct.ScrollArea.html#method.show_rows

Thank you i didn't see that it really helps :)

You mean memory isn't being freed? Are you sure? Have you hooked up the allocator and counted (e.g. with re_memory? You cannot trust what the OS tells you!

I used heaptrack to try and get the memory usage. Ill try using re_memory and see what the results is

re_memory should be able to point you to the exact callstack of what is eating up your RAM

re_memory should be able to point you to the exact callstack of what is eating up your RAM

haven't used re_memory yet but switching to .show_rows did fix it 200 MB lower now and i did nothing but implement .show_rows
im going to close this for now since it's technically solved for me (if i had to guess id assume using the normal .show to render that many buttons without culling was the reason for the high memory )


LR Finder for RNN network

Hi,
I want to find lr for my RNN network which will have sequence as an input. When i try with torch_lr_finder it throws error as
File "/usr/local/lib/python3.5/dist-packages/torch_lr_finder/lr_finder.py", line 125, in range_test
    inputs, labels = next(iterator)
ValueError: too many values to unpack (expected 2)

Can you help me to get over this error
@davidtvs

Hi @PariksheetPinjari909 ,
It seems like there are multiple values without being packed in a single data sample, so that it resulted this error while unpacking. Could you try to get the information of the shape of each object in a data sample?
e.g. print([v.shape for v in iter(trainloader).__next__())], and the correct result should be a list with length of 2. If it isn't, you may need to make a wrapper to pack the input data and labels to this format (inputs, labels).
Beside, if you are working on a NLP task and going to feed multiple embeddings as a single sample (e.g. sentence), you might need to use this helper function pack_padded_sequence.
Please feel free to let me know if there is still any problem!

@NaleRaphael Yes you are correct. My dataset loader have three arguments. It worked after making changes to lr_finder.py. Thanks anyway.

Closing the issue


[Engine] Building android tests has lots of warning compile spam

Logs below:
> Task :compileDebugUnitTestJavaWithJavac
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/embedding/android/KeyboardManagerTest.java:32: warning: [deprecation] Assert in junit.framework has been deprecated
import junit.framework.Assert;
                      ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/embedding/engine/plugins/shim/ShimPluginRegistryTest.java:18: warning: [deprecation] Registrar in PluginRegistry has been deprecated
import io.flutter.plugin.common.PluginRegistry.Registrar;
                                              ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/platform/PlatformViewsControllerTest.java:5: warning: [deprecation] Assert in junit.framework has been deprecated
import static junit.framework.Assert.assertEquals;
                             ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/platform/PlatformViewsControllerTest.java:6: warning: [deprecation] Assert in junit.framework has been deprecated
import static junit.framework.Assert.assertTrue;
                             ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/platform/SingleViewPresentationTest.java:6: warning: [deprecation] Assert in junit.framework has been deprecated
import static junit.framework.Assert.assertEquals;
                             ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/embedding/android/SplashShadowResources.java:26: warning: [deprecation] <T>directlyOn(T,Class<T>) in Shadow has been deprecated
    return Shadow.directlyOn(resources, Resources.class).getDrawable(id);
                 ^
  where T is a type-variable:
    T extends Object declared in method <T>directlyOn(T,Class<T>)
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/embedding/android/SplashShadowResources.java:26: warning: [deprecation] getDrawable(int) in Resources has been deprecated
    return Shadow.directlyOn(resources, Resources.class).getDrawable(id);
                                                        ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/embedding/android/SplashShadowResources.java:40: warning: [deprecation] <T>directlyOn(T,Class<T>) in Shadow has been deprecated
    return Shadow.directlyOn(resources, Resources.class).getDrawable(id, theme);
                 ^
  where T is a type-variable:
    T extends Object declared in method <T>directlyOn(T,Class<T>)
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/embedding/android/KeyboardManagerTest.java:492: warning: [deprecation] Assert in junit.framework has been deprecated
    Assert.assertEquals(0, (int) combiner.applyCombiningCharacterToBaseCharacter(0));
    ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/embedding/android/KeyboardManagerTest.java:493: warning: [deprecation] Assert in junit.framework has been deprecated
    Assert.assertEquals('A', (int) combiner.applyCombiningCharacterToBaseCharacter('A'));
    ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/embedding/android/KeyboardManagerTest.java:494: warning: [deprecation] Assert in junit.framework has been deprecated
    Assert.assertEquals('B', (int) combiner.applyCombiningCharacterToBaseCharacter('B'));
    ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/embedding/android/KeyboardManagerTest.java:495: warning: [deprecation] Assert in junit.framework has been deprecated
    Assert.assertEquals('B', (int) combiner.applyCombiningCharacterToBaseCharacter('B'));
    ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/embedding/android/KeyboardManagerTest.java:496: warning: [deprecation] Assert in junit.framework has been deprecated
    Assert.assertEquals(0, (int) combiner.applyCombiningCharacterToBaseCharacter(0));
    ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/embedding/android/KeyboardManagerTest.java:497: warning: [deprecation] Assert in junit.framework has been deprecated
    Assert.assertEquals(0, (int) combiner.applyCombiningCharacterToBaseCharacter(0));
    ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/embedding/android/KeyboardManagerTest.java:499: warning: [deprecation] Assert in junit.framework has been deprecated
    Assert.assertEquals('`', (int) combiner.applyCombiningCharacterToBaseCharacter(DEAD_KEY));
    ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/embedding/android/KeyboardManagerTest.java:500: warning: [deprecation] Assert in junit.framework has been deprecated
    Assert.assertEquals('`', (int) combiner.applyCombiningCharacterToBaseCharacter(DEAD_KEY));
    ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/embedding/android/KeyboardManagerTest.java:501: warning: [deprecation] Assert in junit.framework has been deprecated
    Assert.assertEquals('À', (int) combiner.applyCombiningCharacterToBaseCharacter('A'));
    ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/embedding/android/KeyboardManagerTest.java:503: warning: [deprecation] Assert in junit.framework has been deprecated
    Assert.assertEquals('`', (int) combiner.applyCombiningCharacterToBaseCharacter(DEAD_KEY));
    ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/embedding/android/KeyboardManagerTest.java:504: warning: [deprecation] Assert in junit.framework has been deprecated
    Assert.assertEquals(0, (int) combiner.applyCombiningCharacterToBaseCharacter(0));
    ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/embedding/android/KeyboardManagerTest.java:506: warning: [deprecation] Assert in junit.framework has been deprecated
    Assert.assertEquals('A', (int) combiner.applyCombiningCharacterToBaseCharacter('A'));
    ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/embedding/android/KeyboardManagerTest.java:508: warning: [deprecation] Assert in junit.framework has been deprecated
    Assert.assertEquals(0, (int) combiner.applyCombiningCharacterToBaseCharacter(0));
    ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/embedding/android/KeyboardManagerTest.java:509: warning: [deprecation] Assert in junit.framework has been deprecated
    Assert.assertEquals('`', (int) combiner.applyCombiningCharacterToBaseCharacter(DEAD_KEY));
    ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/embedding/android/KeyboardManagerTest.java:510: warning: [deprecation] Assert in junit.framework has been deprecated
    Assert.assertEquals('À', (int) combiner.applyCombiningCharacterToBaseCharacter('A'));
    ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/embedding/android/FlutterActivityAndFragmentDelegateTest.java:79: warning: [deprecation] <T>setupActivity(Class<T>) in Robolectric has been deprecated
    when(mockHost.getActivity()).thenReturn(Robolectric.setupActivity(Activity.class));
                                                       ^
  where T is a type-variable:
    T extends Activity declared in method <T>setupActivity(Class<T>)
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/embedding/android/FlutterActivityAndFragmentDelegateTest.java:410: warning: [deprecation] <T>setupActivity(Class<T>) in Robolectric has been deprecated
    when(customMockHost.getActivity()).thenReturn(Robolectric.setupActivity(Activity.class));
                                                             ^
  where T is a type-variable:
    T extends Activity declared in method <T>setupActivity(Class<T>)
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/embedding/android/FlutterFragmentTest.java:300: warning: [deprecation] <T>setupActivity(Class<T>) in Robolectric has been deprecated
    FragmentActivity activity = Robolectric.setupActivity(FragmentActivity.class);
                                           ^
  where T is a type-variable:
    T extends Activity declared in method <T>setupActivity(Class<T>)
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/embedding/android/FlutterFragmentTest.java:334: warning: [deprecation] <T>setupActivity(Class<T>) in Robolectric has been deprecated
    FragmentActivity activity = Robolectric.setupActivity(FragmentActivity.class);
                                           ^
  where T is a type-variable:
    T extends Activity declared in method <T>setupActivity(Class<T>)
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/embedding/android/FlutterAndroidComponentTest.java:272: warning: [deprecation] <T>setupActivity(Class<T>) in Robolectric has been deprecated
        activity = Robolectric.setupActivity(Activity.class);
                              ^
  where T is a type-variable:
    T extends Activity declared in method <T>setupActivity(Class<T>)
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/embedding/engine/FlutterEngineGroupCacheTest.java:78: warning: [deprecation] application in RuntimeEnvironment has been deprecated
    FlutterEngineGroup flutterEngineGroup1 = new FlutterEngineGroup(RuntimeEnvironment.application);
                                                                                ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/embedding/engine/FlutterEngineGroupCacheTest.java:79: warning: [deprecation] application in RuntimeEnvironment has been deprecated
    FlutterEngineGroup flutterEngineGroup2 = new FlutterEngineGroup(RuntimeEnvironment.application);
                                                                                ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/embedding/engine/plugins/shim/ShimPluginRegistryTest.java:50: warning: [deprecation] Registrar in PluginRegistry has been deprecated
    Registrar registrarUnderTest = registryUnderTest.registrarFor("test");
    ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/embedding/engine/plugins/shim/ShimPluginRegistryTest.java:71: warning: [deprecation] Registrar in PluginRegistry has been deprecated
    Registrar registrarUnderTest1 = registryUnderTest.registrarFor("test1");
    ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/embedding/engine/plugins/shim/ShimPluginRegistryTest.java:72: warning: [deprecation] Registrar in PluginRegistry has been deprecated
    Registrar registrarUnderTest2 = registryUnderTest.registrarFor("test2");
    ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/embedding/engine/plugins/shim/ShimPluginRegistryTest.java:92: warning: [deprecation] Registrar in PluginRegistry has been deprecated
    Registrar registrarUnderTest = registryUnderTest.registrarFor("test");
    ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/embedding/engine/loader/ApplicationInfoLoaderTest.java:60: warning: [deprecation] getApplicationInfo(String,int) in PackageManager has been deprecated
    when(packageManager.getApplicationInfo(anyString(), anyInt())).thenReturn(applicationInfo);
                       ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/embedding/engine/systemchannels/SettingsChannelTest.java:35: warning: [deprecation] send(String,ByteBuffer,BinaryReply) in DartExecutor has been deprecated
    verify(executor).send(eq("flutter/settings"), messageCaptor.capture(), isNull());
                    ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/embedding/engine/systemchannels/KeyboardChannelTest.java:45: warning: [deprecation] setMessageHandler(String,BinaryMessageHandler) in DartExecutor has been deprecated
        .setMessageHandler(any(String.class), binaryMessageHandlerCaptor.capture());
        ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/embedding/engine/deferredcomponents/PlayStoreDeferredComponentManagerTest.java:97: warning: [deprecation] getApplicationInfo(String,int) in PackageManager has been deprecated
    when(packageManager.getApplicationInfo(any(String.class), any(int.class)))
                       ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/platform/PlatformPluginTest.java:148: warning: [deprecation] getText() in ClipboardManager has been deprecated
    verify(clipboardManager, never()).getText();
                                     ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/platform/PlatformPluginTest.java:334: warning: [deprecation] SYSTEM_UI_FLAG_LAYOUT_STABLE in View has been deprecated
              View.SYSTEM_UI_FLAG_LAYOUT_STABLE
                  ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/platform/PlatformPluginTest.java:335: warning: [deprecation] SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION in View has been deprecated
                  | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
                        ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/platform/PlatformPluginTest.java:336: warning: [deprecation] SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN in View has been deprecated
                  | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
                        ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/platform/PlatformPluginTest.java:337: warning: [deprecation] SYSTEM_UI_FLAG_HIDE_NAVIGATION in View has been deprecated
                  | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
                        ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/platform/PlatformPluginTest.java:338: warning: [deprecation] SYSTEM_UI_FLAG_FULLSCREEN in View has been deprecated
                  | View.SYSTEM_UI_FLAG_FULLSCREEN);
                        ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/platform/PlatformPluginTest.java:333: warning: [deprecation] setSystemUiVisibility(int) in View has been deprecated
          .setSystemUiVisibility(
          ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/platform/PlatformPluginTest.java:344: warning: [deprecation] SYSTEM_UI_FLAG_IMMERSIVE in View has been deprecated
              View.SYSTEM_UI_FLAG_IMMERSIVE
                  ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/platform/PlatformPluginTest.java:345: warning: [deprecation] SYSTEM_UI_FLAG_LAYOUT_STABLE in View has been deprecated
                  | View.SYSTEM_UI_FLAG_LAYOUT_STABLE
                        ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/platform/PlatformPluginTest.java:346: warning: [deprecation] SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION in View has been deprecated
                  | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
                        ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/platform/PlatformPluginTest.java:347: warning: [deprecation] SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN in View has been deprecated
                  | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
                        ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/platform/PlatformPluginTest.java:348: warning: [deprecation] SYSTEM_UI_FLAG_HIDE_NAVIGATION in View has been deprecated
                  | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
                        ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/platform/PlatformPluginTest.java:349: warning: [deprecation] SYSTEM_UI_FLAG_FULLSCREEN in View has been deprecated
                  | View.SYSTEM_UI_FLAG_FULLSCREEN);
                        ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/platform/PlatformPluginTest.java:343: warning: [deprecation] setSystemUiVisibility(int) in View has been deprecated
          .setSystemUiVisibility(
          ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/platform/PlatformPluginTest.java:355: warning: [deprecation] SYSTEM_UI_FLAG_IMMERSIVE_STICKY in View has been deprecated
              View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY
                  ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/platform/PlatformPluginTest.java:356: warning: [deprecation] SYSTEM_UI_FLAG_LAYOUT_STABLE in View has been deprecated
                  | View.SYSTEM_UI_FLAG_LAYOUT_STABLE
                        ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/platform/PlatformPluginTest.java:357: warning: [deprecation] SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION in View has been deprecated
                  | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
                        ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/platform/PlatformPluginTest.java:358: warning: [deprecation] SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN in View has been deprecated
                  | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
                        ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/platform/PlatformPluginTest.java:359: warning: [deprecation] SYSTEM_UI_FLAG_HIDE_NAVIGATION in View has been deprecated
                  | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
                        ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/platform/PlatformPluginTest.java:360: warning: [deprecation] SYSTEM_UI_FLAG_FULLSCREEN in View has been deprecated
                  | View.SYSTEM_UI_FLAG_FULLSCREEN);
                        ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/platform/PlatformPluginTest.java:354: warning: [deprecation] setSystemUiVisibility(int) in View has been deprecated
          .setSystemUiVisibility(
          ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/platform/PlatformPluginTest.java:368: warning: [deprecation] SYSTEM_UI_FLAG_LAYOUT_STABLE in View has been deprecated
              View.SYSTEM_UI_FLAG_LAYOUT_STABLE
                  ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/platform/PlatformPluginTest.java:369: warning: [deprecation] SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION in View has been deprecated
                  | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
                        ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/platform/PlatformPluginTest.java:370: warning: [deprecation] SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN in View has been deprecated
                  | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN);
                        ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/platform/PlatformPluginTest.java:367: warning: [deprecation] setSystemUiVisibility(int) in View has been deprecated
          .setSystemUiVisibility(
          ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/platform/PlatformPluginTest.java:390: warning: [deprecation] SYSTEM_UI_FLAG_FULLSCREEN in View has been deprecated
        .dispatchSystemUiVisibilityChanged(View.SYSTEM_UI_FLAG_FULLSCREEN);
                                               ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/platform/PlatformPluginTest.java:390: warning: [deprecation] dispatchSystemUiVisibilityChanged(int) in View has been deprecated
        .dispatchSystemUiVisibilityChanged(View.SYSTEM_UI_FLAG_FULLSCREEN);
        ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/platform/PlatformPluginTest.java:416: warning: [deprecation] dispatchSystemUiVisibilityChanged(int) in View has been deprecated
    fakeActivity.getWindow().getDecorView().dispatchSystemUiVisibilityChanged(0);
                                           ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/platform/PlatformPluginTest.java:444: warning: [deprecation] SYSTEM_UI_FLAG_LAYOUT_STABLE in View has been deprecated
            View.SYSTEM_UI_FLAG_LAYOUT_STABLE
                ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/platform/PlatformPluginTest.java:445: warning: [deprecation] SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION in View has been deprecated
                | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
                      ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/platform/PlatformPluginTest.java:446: warning: [deprecation] SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN in View has been deprecated
                | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN);
                      ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/platform/PlatformPluginTest.java:443: warning: [deprecation] setSystemUiVisibility(int) in View has been deprecated
        .setSystemUiVisibility(
        ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/platform/PlatformPluginTest.java:468: warning: [deprecation] FLAG_TRANSLUCENT_STATUS in LayoutParams has been deprecated
            WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS
                                      ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/platform/PlatformPluginTest.java:469: warning: [deprecation] FLAG_TRANSLUCENT_NAVIGATION in LayoutParams has been deprecated
                | WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION);
                                            ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/platform/PlatformPluginTest.java:518: warning: [deprecation] <T>setupActivity(Class<T>) in Robolectric has been deprecated
    FragmentActivity activity = spy(Robolectric.setupActivity(FragmentActivity.class));
                                               ^
  where T is a type-variable:
    T extends Activity declared in method <T>setupActivity(Class<T>)
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/platform/PlatformPluginTest.java:544: warning: [deprecation] <T>setupActivity(Class<T>) in Robolectric has been deprecated
    FragmentActivity activity = spy(Robolectric.setupActivity(FragmentActivity.class));
                                               ^
  where T is a type-variable:
    T extends Activity declared in method <T>setupActivity(Class<T>)
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/platform/PlatformViewsControllerTest.java:1526: warning: [deprecation] FlutterView(Context,RenderMode) in FlutterView has been deprecated
        new FlutterView(context, RenderMode.surface) {
        ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/platform/PlatformViewsControllerTest.java:1526: warning: [deprecation] FlutterView(Context,RenderMode) in FlutterView has been deprecated
        new FlutterView(context, RenderMode.surface) {
                                                     ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/platform/SingleViewPresentationTest.java:41: warning: [deprecation] application in RuntimeEnvironment has been deprecated
    Context context = spy(RuntimeEnvironment.application);
                                            ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/platform/SingleViewPresentationTest.java:63: warning: [deprecation] application in RuntimeEnvironment has been deprecated
    Context context = spy(RuntimeEnvironment.application);
                                            ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/mouse/MouseCursorPluginTest.java:35: warning: [deprecation] <T>setupActivity(Class<T>) in Robolectric has been deprecated
    FlutterView testView = spy(new FlutterView(Robolectric.setupActivity(Activity.class)));
                                                          ^
  where T is a type-variable:
    T extends Activity declared in method <T>setupActivity(Class<T>)
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/editing/SpellCheckPluginTest.java:59: warning: [deprecation] setMessageHandler(String,BinaryMessageHandler) in DartExecutor has been deprecated
        .setMessageHandler(any(String.class), binaryMessageHandlerCaptor.capture());
        ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/editing/TextInputPluginTest.java:138: warning: [deprecation] send(String,ByteBuffer,BinaryReply) in DartExecutor has been deprecated
    verify(dartExecutor, times(1)).send(channelCaptor.capture(), bufferCaptor.capture(), isNull());
                                  ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/editing/TextInputPluginTest.java:999: warning: [deprecation] InputMethodSubtype(int,int,String,String,String,boolean,boolean) in InputMethodSubtype has been deprecated
        new InputMethodSubtype(0, 0, /*locale=*/ "en", "", "", false, false);
        ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/editing/TextInputPluginTest.java:1169: warning: [deprecation] send(String,ByteBuffer,BinaryReply) in DartExecutor has been deprecated
    verify(dartExecutor, times(1)).send(channelCaptor.capture(), bufferCaptor.capture(), isNull());
                                  ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/editing/TextInputPluginTest.java:1178: warning: [deprecation] send(String,ByteBuffer,BinaryReply) in DartExecutor has been deprecated
    verify(dartExecutor, times(2)).send(channelCaptor.capture(), bufferCaptor.capture(), isNull());
                                  ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/editing/TextInputPluginTest.java:1187: warning: [deprecation] send(String,ByteBuffer,BinaryReply) in DartExecutor has been deprecated
    verify(dartExecutor, times(3)).send(channelCaptor.capture(), bufferCaptor.capture(), isNull());
                                  ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/editing/TextInputPluginTest.java:1202: warning: [deprecation] InputMethodSubtype(int,int,String,String,String,boolean,boolean) in InputMethodSubtype has been deprecated
        new InputMethodSubtype(0, 0, /*locale=*/ "en", "", "", false, false);
        ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/editing/TextInputPluginTest.java:1450: warning: [deprecation] <T>setupActivity(Class<T>) in Robolectric has been deprecated
    FlutterView testView = new FlutterView(Robolectric.setupActivity(Activity.class));
                                                      ^
  where T is a type-variable:
    T extends Activity declared in method <T>setupActivity(Class<T>)
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/editing/TextInputPluginTest.java:1540: warning: [deprecation] <T>setupActivity(Class<T>) in Robolectric has been deprecated
    FlutterView testView = new FlutterView(Robolectric.setupActivity(Activity.class));
                                                      ^
  where T is a type-variable:
    T extends Activity declared in method <T>setupActivity(Class<T>)
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/editing/TextInputPluginTest.java:1592: warning: [deprecation] <T>setupActivity(Class<T>) in Robolectric has been deprecated
    FlutterView testView = new FlutterView(Robolectric.setupActivity(Activity.class));
                                                      ^
  where T is a type-variable:
    T extends Activity declared in method <T>setupActivity(Class<T>)
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/editing/TextInputPluginTest.java:1726: warning: [deprecation] <T>setupActivity(Class<T>) in Robolectric has been deprecated
    FlutterView testView = new FlutterView(Robolectric.setupActivity(Activity.class));
                                                      ^
  where T is a type-variable:
    T extends Activity declared in method <T>setupActivity(Class<T>)
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/editing/TextInputPluginTest.java:1870: warning: [deprecation] <T>setupActivity(Class<T>) in Robolectric has been deprecated
    FlutterView testView = new FlutterView(Robolectric.setupActivity(Activity.class));
                                                      ^
  where T is a type-variable:
    T extends Activity declared in method <T>setupActivity(Class<T>)
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/editing/TextInputPluginTest.java:1954: warning: [deprecation] setMessageHandler(String,BinaryMessageHandler) in DartExecutor has been deprecated
        .setMessageHandler(any(String.class), binaryMessageHandlerCaptor.capture());
        ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/editing/TextInputPluginTest.java:1985: warning: [deprecation] setMessageHandler(String,BinaryMessageHandler) in DartExecutor has been deprecated
        .setMessageHandler(any(String.class), binaryMessageHandlerCaptor.capture());
        ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/editing/TextInputPluginTest.java:2014: warning: [deprecation] setMessageHandler(String,BinaryMessageHandler) in DartExecutor has been deprecated
        .setMessageHandler(any(String.class), binaryMessageHandlerCaptor.capture());
        ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/editing/TextInputPluginTest.java:2033: warning: [deprecation] <T>setupActivity(Class<T>) in Robolectric has been deprecated
    FlutterView testView = spy(new FlutterView(Robolectric.setupActivity(Activity.class)));
                                                          ^
  where T is a type-variable:
    T extends Activity declared in method <T>setupActivity(Class<T>)
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/editing/TextInputPluginTest.java:2034: warning: [deprecation] SYSTEM_UI_FLAG_LAYOUT_STABLE in View has been deprecated
    when(testView.getWindowSystemUiVisibility()).thenReturn(View.SYSTEM_UI_FLAG_LAYOUT_STABLE);
                                                                ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/editing/TextInputPluginTest.java:2034: warning: [deprecation] getWindowSystemUiVisibility() in View has been deprecated
    when(testView.getWindowSystemUiVisibility()).thenReturn(View.SYSTEM_UI_FLAG_LAYOUT_STABLE);
                 ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/editing/TextInputPluginTest.java:2109: warning: [deprecation] <T>setupActivity(Class<T>) in Robolectric has been deprecated
    FlutterView testView = spy(new FlutterView(Robolectric.setupActivity(Activity.class)));
                                                          ^
  where T is a type-variable:
    T extends Activity declared in method <T>setupActivity(Class<T>)
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/editing/TextInputPluginTest.java:2112: warning: [deprecation] SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION in View has been deprecated
            View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);
                ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/editing/TextInputPluginTest.java:2112: warning: [deprecation] SYSTEM_UI_FLAG_HIDE_NAVIGATION in View has been deprecated
            View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);
                                                             ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/editing/TextInputPluginTest.java:2110: warning: [deprecation] getWindowSystemUiVisibility() in View has been deprecated
    when(testView.getWindowSystemUiVisibility())
                 ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/editing/TextInputPluginTest.java:2187: warning: [deprecation] <T>setupActivity(Class<T>) in Robolectric has been deprecated
    FlutterView testView = spy(new FlutterView(Robolectric.setupActivity(Activity.class)));
                                                          ^
  where T is a type-variable:
    T extends Activity declared in method <T>setupActivity(Class<T>)
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/editing/TextInputPluginTest.java:2188: warning: [deprecation] SYSTEM_UI_FLAG_LAYOUT_STABLE in View has been deprecated
    when(testView.getWindowSystemUiVisibility()).thenReturn(View.SYSTEM_UI_FLAG_LAYOUT_STABLE);
                                                                ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/editing/TextInputPluginTest.java:2188: warning: [deprecation] getWindowSystemUiVisibility() in View has been deprecated
    when(testView.getWindowSystemUiVisibility()).thenReturn(View.SYSTEM_UI_FLAG_LAYOUT_STABLE);
                 ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/editing/InputConnectionAdaptorTest.java:150: warning: [deprecation] hasText() in ClipboardManager has been deprecated
    assertTrue(clipboardManager.hasText());
                               ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/editing/InputConnectionAdaptorTest.java:163: warning: [deprecation] hasText() in ClipboardManager has been deprecated
    assertFalse(clipboardManager.hasText());
                                ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/editing/InputConnectionAdaptorTest.java:168: warning: [deprecation] hasText() in ClipboardManager has been deprecated
    assertTrue(clipboardManager.hasText());
                               ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/editing/InputConnectionAdaptorTest.java:178: warning: [deprecation] setText(CharSequence) in ClipboardManager has been deprecated
    clipboardManager.setText(textToBePasted);
                    ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/editing/InputConnectionAdaptorTest.java:224: warning: [deprecation] send(String,ByteBuffer,BinaryReply) in DartExecutor has been deprecated
    verify(dartExecutor, times(1)).send(channelCaptor.capture(), bufferCaptor.capture(), isNull());
                                  ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/editing/InputConnectionAdaptorTest.java:268: warning: [deprecation] send(String,ByteBuffer,BinaryReply) in DartExecutor has been deprecated
    verify(dartExecutor, times(1)).send(channelCaptor.capture(), bufferCaptor.capture(), isNull());
                                  ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/editing/InputConnectionAdaptorTest.java:301: warning: [deprecation] send(String,ByteBuffer,BinaryReply) in DartExecutor has been deprecated
    verify(dartExecutor, times(1)).send(channelCaptor.capture(), bufferCaptor.capture(), isNull());
                                  ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/editing/InputConnectionAdaptorTest.java:336: warning: [deprecation] send(String,ByteBuffer,BinaryReply) in DartExecutor has been deprecated
    verify(dartExecutor, times(1)).send(channelCaptor.capture(), bufferCaptor.capture(), isNull());
                                  ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/editing/InputConnectionAdaptorTest.java:369: warning: [deprecation] send(String,ByteBuffer,BinaryReply) in DartExecutor has been deprecated
    verify(dartExecutor, times(1)).send(channelCaptor.capture(), bufferCaptor.capture(), isNull());
                                  ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/editing/InputConnectionAdaptorTest.java:405: warning: [deprecation] send(String,ByteBuffer,BinaryReply) in DartExecutor has been deprecated
    verify(dartExecutor, times(1)).send(channelCaptor.capture(), bufferCaptor.capture(), isNull());
                                  ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/editing/InputConnectionAdaptorTest.java:440: warning: [deprecation] send(String,ByteBuffer,BinaryReply) in DartExecutor has been deprecated
    verify(dartExecutor, times(1)).send(channelCaptor.capture(), bufferCaptor.capture(), isNull());
                                  ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/editing/InputConnectionAdaptorTest.java:475: warning: [deprecation] send(String,ByteBuffer,BinaryReply) in DartExecutor has been deprecated
    verify(dartExecutor, times(1)).send(channelCaptor.capture(), bufferCaptor.capture(), isNull());
                                  ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/editing/InputConnectionAdaptorTest.java:510: warning: [deprecation] send(String,ByteBuffer,BinaryReply) in DartExecutor has been deprecated
    verify(dartExecutor, times(1)).send(channelCaptor.capture(), bufferCaptor.capture(), isNull());
                                  ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/plugin/editing/InputConnectionAdaptorTest.java:543: warning: [deprecation] send(String,ByteBuffer,BinaryReply) in DartExecutor has been deprecated
    verify(dartExecutor, times(1)).send(channelCaptor.capture(), bufferCaptor.capture(), isNull());
                                  ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/view/AccessibilityBridgeTest.java:473: warning: [deprecation] getSystemWindowInsetLeft() in WindowInsets has been deprecated
    when(insets.getSystemWindowInsetLeft()).thenReturn(expectedInsetLeft);
               ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/view/AccessibilityBridgeTest.java:522: warning: [deprecation] getSystemWindowInsetLeft() in WindowInsets has been deprecated
    when(insets.getSystemWindowInsetLeft()).thenReturn(expectedInsetLeft);
               ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/view/AccessibilityBridgeTest.java:571: warning: [deprecation] getSystemWindowInsetLeft() in WindowInsets has been deprecated
    when(insets.getSystemWindowInsetLeft()).thenReturn(expectedInsetLeft);
               ^
/Users/reidbaker/engine/src/flutter/shell/platform/android/test/io/flutter/view/AccessibilityBridgeTest.java:619: warning: [deprecation] getSystemWindowInsetLeft() in WindowInsets has been deprecated
    when(insets.getSystemWindowInsetLeft()).thenReturn(expectedInsetLeft);

Gradle command I am running.
/Users/reidbaker/engine/src/third_party/gradle/bin/gradle -Pflutter_jar=/Users/reidbaker/engine/src/out/android_debug_unopt/flutter.jar -Pbuild_dir=/Users/reidbaker/engine/src/out/android_debug_unopt/robolectric_tests/build testDebugUnitTest --tests=AndroidTouchProcessorTest --rerun-tasks --no-daemon --project-cache-dir=/Users/reidbaker/engine/src/out/android_debug_unopt/robolectric_tests/.gradle --gradle-user-home=/Users/reidbaker/engine/src/out/android_debug_unopt/robolectric_tests/.gradle -D=org.gradle.java.home=/Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home


z/OSMF - Dual use case (Sysprog & Dev)

Some customers will not allow developers to use z/OSMF because it is viewed as a Sysprog interface. Research and document the separation of access roles, and recommend any code changes need.

Will reopen if needed - role based access implementation may address the concerns


Added endpoints for importing modules and deliverables

#2471  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @tommylau523 and the rest of your teammates on  Graphite


Anchors would not work if titles contain CJK punctuation mark like "，。？"

+1

+1
:sob:  Github anchors skip CJK punctuation mark.


Can't locate object method "cookie_jar" via package "WWW::Mechanize::Chrome"

I use WWW::Mechanize::Chrome to produce pdf from urls.
at https://metacpan.org/pod/HTTP::CookieMonster I found example from SYNOPSYS:
use HTTP::CookieMonster;

my $monster = HTTP::CookieMonster->new( $mech->cookie_jar );

and get the error:
Can't locate object method "cookie_jar" via package "WWW::Mechanize::Chrome" at

How to setup cookies for WWW::Mechanize::Chrome?

The commit above (to be released in v0.29, on its way to CPAN) adds a ->cookie_jar method that returns a prefilled cookie jar. I don't know what you want to do with it and what HTTP::CookieMonster does. Randomly trying to call methods that are not even documented on an object is not a strategy for success.

I think probably part of the confusion might be that one might expect the methods from WWW::Mechanize to be inherited. I know I wondered the same thing: https://metacpan.org/pod/WWW::Mechanize#cookie_jar

@Corion I was trying to setup cookies for the request. Tried to login to a site


[BrokenLinksH2] Fix path in link

Fixing TOC. yml for right link on Automatic support for nested paths with [EnableNestedPaths] line 161.

Hi @tfosmark,
This PR is related to TOC.yml, broken link was related to in that section. Please can you review!

Global effort to fix broken links
@xuzhg
The Content & Learning team is fixing broken links on docs.microsoft.com for the rest of H2. This effort will eliminate potential accessibility, security, and usability issues. This PR includes only link fixes and does not change other content. Please review within five business days and merge, or comment in the PR with any changes you'd like to see. Thanks!


base_margin not copied by XGDMatrixSliceDMatrix. Leads to loss of base_margin when performing cross-validation with xgb.cv()

On latest version of the R package.
base_margin is not passed down to test / train data during cross-validation.
On the other hand other setinfo attributes such as weights and labels are passed down and handled properly (split into test / train sets).
Most likely the problem occurs when calling slice in xgb.cv, which can be traced down to these lines, where we can see that weights and labels are copied, but not base_margin. Presumabely this is a very quick fix, would it be possible to add a line to copy base_margin?
https://github.com/dmlc/xgboost/blob/7078c41dad5c92da6a81afaecd49768c80c9242a/src/c_api/c_api.cc#L397-L405

hmm, can you open a PR to fix this? Thanks!

I can try, but I hardly know any C++ :)

I just ran into this in the current version on pypi.

Is this fix in the most recent release?
Why was the issue reopened?

It was fixed in the development but so far it got into neither pypi nor CRAN release.

@khotilov thanks. Is there a schedule for next pypi release?


Howto get an copy of DepthStream

Before opening a new issue, we wanted to provide you with some useful suggestions (Click "Preview" above for a better view):

Consider checking out SDK examples.
Have you looked in our documentations?
Is you question a frequently asked one?
Try searching our GitHub Issues (open and closed) for a similar issue.

All users are welcomed to report bugs, ask questions, suggest or request enhancements and generally feel free to open new issue, even if they haven't followed any of the suggestions above :)

Required Info

Camera Model
{ D400 }

Firmware Version
(Open RealSense Viewer --> Click info)

Operating System & Version
{Win (8.1/10) /

Kernel Version (Linux Only)
(e.g. 4.14.13)

Platform
PC/

SDK Version
{ legacy / 2.. }

Language
C#}

Segment
{Robot/Smartphone/VR/AR/others }

Issue Description
Hi, i have start new project from c# example cs-tutorial-3-processing . I have need to pause, by press a key, the stream image for best object measure.  How-to try to have an copy of DepthStream ? How-to pause the stream ?

@gdiiorio Please check to see if frame.keep() API below can meet your requirement. Thanks!
https://github.com/IntelRealSense/librealsense/blob/master/wrappers/csharp/Intel.RealSense/Frames/Frame.cs#L104-L115
PR link: https://github.com/IntelRealSense/librealsense/pull/1015

@gdiiorio Any other questions about this ticket? Looking forward to your update. Thanks!

@gdiiorio If no other questions will close this accordingly. Thanks!


Not an issue

Sorry, this is not an issue. I can not figure it out how to use it. This is my code:
import AwesomeMask from "awesome-mask";
new Vue({
el: "#my-vue-element",
directives: {
"mask": AwesomeMask
}
});
I get this: [Vue warn]: Property or method "mask" is not defined on the instance but referenced during render. Make sure to declare reactive data properties in the data option.
(found in )
Thanks for your help.

You should use it in your desired component, and use the directive in the template..

https://github.com/moip/awesome-examples/blob/master/src/App.vue
You can check an example here @rvizcaino80


Demographics validation

Implement in the notebooks a quick validation of the run with data from
https://www.ons.gov.uk/file?uri=%2Fpeoplepopulationandcommunity%2Fpopulationandmigration%2Fpopulationestimates%2Fdatasets%2Fpopulationestimatesforukenglandandwalesscotlandandnorthernireland%2Fmid2001tomid2019detailedtimeseries/ukdetailedtimeseries20012019.zip
In the zip folder, MYEB1_detailed_population_estimates_series_UK_(2019) is the population by age/sex/year/LAD, MYEB3_summary_components_of_change_series_UK_(2019) is the components of change by year/LAD.

Work in progress, see the issues here: https://github.com/alan-turing-institute/daedalus/projects/1


"Rescan all" in tray menu?

Hi. I'm sorry if this isn't the proper way to wish for a feature but I didn't think the Syncthing forum was the right place and I couldn't find any other method.
Would it be possible to include the "Rescan all" option in the SyncTraysor system tray right click menu?

This will be in the next release.


⚠ Bofrost.com has degraded performance

In ac1f4ff, Bofrost.com (https://www.bofrost.com) experienced degraded performance:

HTTP code: 200
Response time: 10185 ms

Resolved: Bofrost.com performance has improved in bed95ec after 6 minutes.


Syntax update for Solidity 0.8.5: Add verbatim builtin in assembly

This PR adds highlighting for the verbatim family of assembly builtins introduced in 0.8.5.  Rather than handling these by the crazy way I handled fixed-point types (I should probably redo those at some point...) I just used a regular expression.  So this means it gets its own mode rather than just being a keyword.
Also, while I was at it, I added a second commit to require that numbers are followed by a word break, since we didn't have that previously.

@frangio @joshgoebel @marcoscaceres @pospi Hey, does anyone know who has permission to add people to this repo?  @frangio has said he no longer has time to help out with this, so I need someone else who can check my work, including the Solidity-specific parts.  However I don't seem to have permission to add people to this repo so I can ask them for reviews.

I can. Who would you like added.

Well, I asked other people here at Truffle, and @cds-amal and @eggplantzzz have both said they'd be willing to do this. :)

Added with Write permissions.

Thank you!

Well, the current way we have tests set up is not great, so testing is a bit difficult (we don't have tests for most things...) but I could add a quick test that verbatim is indeed highlighted.

OK, I added a quick test, if it helps.


Improper cleanup of ETL files

On lab machines during CoreFX runs we will occasionally start to see errors like this. I investigated this and the problem is that the System process is still holding a handle to an ETL file in that workspace. When we then try to delete the workspace we can't because that handle prevents deletion. We need to do a better job of cleaning up our ETL sessions in xunit-performance.
@billwert @brianrob
ERROR: [WS-CLEANUP] Cannot delete workspace: remote file operation failed: C:\J\w\perf_windows_---356c2fc4 at hudson.remoting.Channel@7fecbfe2:JNLP4-connect connection from <IP_ADDRESS>/<IP_ADDRESS>:5616: java.io.IOException: Unable to delete 'C:\J\w\perf_windows_---356c2fc4\artifacts\bin\tests\System.Text.Encoding.Performance.Tests\netcoreapp-Windows_NT-Release-x64'. Tried 3 times (of a maximum of 3) waiting 0.1 sec between attempts.

@DrewScoggins Could you please give more details on the run. Did the run timed out? Was the process killed? Generally, these issues where the ETW session stays open occurs when those two cases occur and the application is not given the chance to exit gracefully. In those cases, you will need to stop the open sessions, or reboot the machine.

It is unclear why it happened. It could have been a timeout it could have been a crash. Regardless, we need to make the process more resilient to this kind of failure. I could believe that this is not the right place to do it and we should do the checking for closed sessions at a higher level in the stack, but the answer being manual intervention on the machines is not good enough.

Just to be clear, I was suggesting for manual intervention. Automation should know how to reboot machines, or you could add an extra tool to automation to query for providers, and stop sessions that are holding files on that folder.

Without more information this issue seems external.

Yeah, I can agree with moving this issue to both coreclr and corefx to track how we handle this outside of the tool. Let me do that and then I will close this issue.

https://github.com/dotnet/corefx/issues/33535


Do not require RSpec if not already loaded

Summary
Fixes #446
How Has This Been Tested?

Types of changes

[x] Bug fix (non-breaking change which fixes an issue).
[ ] New feature (non-breaking change which adds functionality).
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected).

Checklist:

[ ] I've added tests for my code.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.

Actually having re-reviewed the codebase. If you want to add a 1liner to include the extra file. I'm happy with that as a bug request fix. But altering the requires would be a feature change (which is fine), but I'd want that tweaking in other files ideally.
Also there's some argument it might be a major change (Again not a problem), but would need treating accordingly.

Whilst the file already has conditionals. Given these are procedural loaders I'd rather remove conditionals.
Maybe look into making another file for minitest?

We could do something to the inverse maybe to avoid the breaking change? Maybe something like: if minitest is loaded and RSpec is not, then dont require RSpec?

@luke-hill Would that translate to: change the else to another if defined?(...) conditional around the second [Cucumber::Rails::World, ActionDispatch::Integration::Session].each do |klass| ?

Possibly. But I think a better approach would be to have a minitest initializer and an rspec one. Because at the moment, the rspec one (named as such), is controlling minitest because we (perhaps incorrectly), assumed that if one existed, the other didn't. And one always existed.
In the truth table, there's 4 situations. We need to cover each of them ideally. The OP did suggest we could cover 2 of the use cases (1 is loaded and the other isn't), by just checking for each of them

@jsmestad any thoughts on this?

@luke-hill I think the request became larger than what I was expecting and had to move onto other tasks. Since then we just switched to RSpec completely to avoid the issue altogether.
I agree with the approach, but the time involved was going to be too much for me to take on during year-end scramble.

I'll kill the PR @jsmestad but leave the issue open so someone else can come into it. I'm thinking this will be hard to fix in a regular PR, but we could make a brute force change and cut a 3.0 release and just say
"cucumber rails always had an assumption you would use rspec, but now you need to explicitly tell it you want to use rspec, or minitest"


Variable substition: ${packagePath}

In the spirit of https://github.com/Microsoft/vscode/issues/396, please consider adding a new variable that can be used in launch.json and that will refer to the package directory (packageRoot) of the currently opened file within the editor.
This is going to be useful to reduce the number of profiles necessary to debug each package. As an example, here's what we have to do currently such that we can debug our tape unit tests directly from the code editor:
Given that we have a mono repo structure like this:
Root
  package.json
  Packages
    api
      package.json
      src
      dist
    orm
      package.json
      src
      dist

Given we develop in Typescript and we resolve the current file name using ${fileBasenameNoExtension}, Given we have both a "api" package and a "orm" package in a git mono repo,
We are stuck doing this to debug our tests inside the code editor:
{
        "type": "node",
        "request": "launch",
        "name": "Debug::api current test",
        "sourceMaps": true,
        "protocol": "inspector",
        "stopOnEntry": false,
        "program": "${workspaceRoot}/node_modules/tape/bin/tape",
        "args": [
          "${workspaceRoot}/packages/api/dist/_test/**/${fileBasenameNoExtension}.js"
        ],
        "cwd": "${workspaceRoot}/packages/api",
        "console": "internalConsole"
      },
      {
        "type": "node",
        "request": "launch",
        "name": "Debug::orm current test",
        "sourceMaps": true,
        "protocol": "inspector",
        "stopOnEntry": false,
        "program": "${workspaceRoot}/node_modules/tape/bin/tape",
        "args": [
          "${workspaceRoot}/packages/orm/dist/_test/**/${fileBasenameNoExtension}.js"
        ],
        "cwd": "${workspaceRoot}/packages/orm",
        "console": "internalConsole"
      }

The request is for a variable that identifies the root directory of each package so that we could re-write our launch.json like this:
 {
        "type": "node",
        "request": "launch",
        "name": "Debug unit test with tape",
        "sourceMaps": true,
        "protocol": "inspector",
        "stopOnEntry": false,
        "program": "${workspaceRoot}/node_modules/tape/bin/tape",
        "args": [
          "${packageRoot}/dist/_test/**/${fileBasenameNoExtension}.js"
        ],
        "cwd": "${packageRoot}",
        "console": "internalConsole"
      }

I believe that ${workspaceRootFolderName} solves your problem.
The whole list of variables can be found here https://code.visualstudio.com/docs/editor/tasks#_variable-substitution
If none of them solve your issue than please let me know for the path
/a/b/c/d/e.txt   and the repository is /a/b   what do you want extracted with the variable

@isidorn Thanks for your quick response on this. As identified above, we are already using the ${workspaceRoot} variable which is identical to ${workspaceRootFolderName} in that it actually returns the root directory. In a git mono repo, you have multiple root, one for each package. By default, a mono repo has a folder into which all package (what would equate to a single git repo) lives in. The standard i've seen is to create subfolder named packages. Under that 'packages' folder lives each different component. There is really 2 things I think for this to work.

A way to tell vscode that you have multiple packages and that the package folder is named 'xyz'
A way, by using the configured package root, to return into a variable each package root folder.

Let's take my example above. On my system I have my git repository in c:\git\myrepo. Within the myrepo git repository, I have a structure as identified above:
myrepo
  package.json
  Packages
    api
      package.json
      src
      dist
    orm
      package.json
      src
      dist

Given the above example, that means I have c:\git\myrepo\packages set as my root for every different package that I manage in that mono repo. In the example, my mono repo handles 2 different packages that are in the following folders on my system:

api which lives in c:\git\myrepo\packages\api
orm which lives in c:\git\myrepo\packages\orm

The request is that in launch.json, I have access to a new variable $(packageRoot} that knows that when I got a file open under the api project, for example c:\git\myrepo\packages\api\src\__test\blabla.ts, the new variable returns c:\git\myrepo\packages\api. Similarly, when I have a file open in the orm project, that new variable would return c:\git\myrepo\packages\orm
Hope this makes sense, let me know if you need more information.

@omniscient thanks for providing more information however what you seem to be needing seems very specific for mono debugging. On the VSCode side we are language agnostic and do not provide any variable subsitition that is speicifc for some language.
This should in theory be handled by the mono debug extension, however our current extension API is not strong enough to support this use case.
Due to the following leaving this open as a feature request and assiging to backlog.

@isidorn : I am sorry to have to digress here but to be 100% clear, nowhere did I mention a programming language of any sort. What I am talking about is monolithic version control using git.
Would you mind taking a 2nd look at this with that fact in mind? I would really appreciate if you could at least indicate where/what would need to be changed and how, at a high-level, it could done? Maybe I could PR it for you guys if it's not too bad?
Once again, we are talking about a way to identify, that #1, we are dealing with a mono repo and #2, we have a variable that identifies the packages root folder.

Thanks for additional clarification. This sounds like a very speicifc feature request.
Code pointer https://github.com/Microsoft/vscode/blob/master/src/vs/workbench/services/configurationResolver/node/configurationResolverService.ts#L48
We accept PRs, however keep in mind that if it is too complex or too language specific we will not accept it.
Also keep in mind that we currently have no code that detects the type of a repo. Due to that I believe this would be hard to do.

Would https://github.com/Microsoft/vscode/issues/25786 get the job done? It helps to get into the relative nested folders.

I think there is a way you can do this already.

Specify an environment variable that has the relative path to your packages folder in VS Code's workspace settings. Example:

	"terminal.integrated.env.linux": {
		"packagePath": "packages"
	},

Use that variable in you launch.json. Example:

 {
        "type": "node",
        "request": "launch",
        "name": "Debug unit test with tape",
        "sourceMaps": true,
        "protocol": "inspector",
        "stopOnEntry": false,
        "program": "${workspaceRoot}/node_modules/tape/bin/tape",
        "args": [
          "${workspaceRoot}/${env:packagePath}/dist/_test/**/${fileBasenameNoExtension}.js"
        ],
        "cwd": "${workspaceRoot}/${env:packagePath}",
        "console": "internalConsole"
      }


bst build could use a --track option

In GitLab by @tristanvb on May 19, 2017, 04:06
Instead of insisting that bst track always be a separate activity as bst build, we could optionally allow the user to launch the build so that it tracks, fetches and builds in tandum (we already do this for fetching and building anyway).
Note that this should never be the default, and should not be considered as a fallback solution for issue #32

In GitLab by @tristanvb on May 28, 2017, 11:53
This is now implemented in master.
Running bst build --track will automatically build with refreshed, new sources.

In GitLab by @tristanvb on May 28, 2017, 11:53
closed


Add left recursion

Coverage increased (+1.1%) to 92.777% when pulling 690a33372b7bdb3f686cdf1e34a056ee1654d823 on left-recursion into ce45fc42265387dd11065c0b2aed88a69023a950 on master.


Uploaded folders not shown when listing

I'm trying to list the items of a bucket but it does not return what I expected.
Here is my setup:
1/ In the web UI, drag & drop a folder into the bucket (f.e. my_uploaded_folder with uploaded1.txt)
2/ In the web UI, click the button to create a folder (f.e. my_created_folder)
3/ Drag & drop a file into my_created_folder (f.e. uploaded2.txt)
With this setup, I've tried the following:

GET <bucket_url>/o?prefix=&delimiter=/
It returns:
- my_uploade_folder
- my_created_folder
It returns it in the prefixes section and nothing in the items section (as expected).
GET <bucket_url>/o?prefix=
It returns:
- my_uploaded_folder/uploaded1.txt
- my_created_folder
- my_created_folder/uploaded2.txt
Note that the folder my_uploaded_folder does not appear anywhere alone.

I've verified this behaviour with the python library too and also with gsutil. For instance, take a look at those gsutil outputs:
$ gsutil ls gs://<bucket>/
gs://<bucket>/my_created_folder/
gs://<bucket>/my_uploaded_folder/

gsutil ls gs://<bucket>/**
gs://<bucket>/my_created_folder/
gs://<bucket>/my_created_folder/uploaded2.txt
gs://<bucket>/my_uploaded_folder/uploaded1.txt

gsutil ls -R gs://<bucket>/
gs://<bucket>/my_created_folder/:
gs://<bucket>/my_created_folder/
gs://<bucket>/my_created_folder/uploaded2.txt

gs://<bucket>/my_uploaded_folder/:
gs://<bucket>/my_uploaded_folder/uploaded1.txt

Why I can't get my_uploaded_folder as an item alone when returning the items recursively?
Thank you

Folders, per se, don't exist in Google Cloud Storage.  Per the Object Naming API doc:

Object names reside in a flat namespace within a bucket, which means that different buckets can have objects with the same name. It also means that objects do not reside within subdirectories in a bucket. For example, you can name an object /europe/france/paris.jpg to make it appear that paris.jpg resides in the subdirectory /europe/france, but to Cloud Storage, the object simply exists in the bucket and has the name /europe/france/paris.jpg.

The console web UI synthesizes folders based on those names, but there is no actual folder to be listed.

Ah, I think I understand it now. Thanks.


Fix n-dialog throws an error when dialog has been closed

added an optional chaining to check if dialog exists

Hey, thank you for your report. To investigate further, please open the issue via: https://github.com/tusen-ai/naive-ui/issues/new?assignees=&labels=untriaged&projects=&template=bug_report.yml and fill out all required details.


[Bug] Reponse Templating for Path doesn't match while using Json stubbing

As per docs request.pathSegments.[x] should pick the path segment at 'x+1' position. However, this doesn't work while stubbing requests using json.
What works though is request.path.[x].
We should update the doc to reflect the same.
Wiremock version : 2.24.1
What I used that didn't work
{
  "request": {
    "method": "GET",
    "urlPattern": "/proxy/.*/api/v1/applications/.*/executors"
  },
  "response": {
       "status" : 200,
       "bodyFileName" : "responses/apps/{{request.pathSegments.[1]}}.json"
   }
}

What works after some modification
{
  "request": {
    "method": "GET",
    "urlPattern": "/proxy/.*/api/v1/applications/.*/executors"
  },
  "response": {
       "status" : 200,
       "bodyFileName" : "responses/apps/{{request.path.[1]}}.json"
   }
}

Can you elaborate what you mean by "doesn't work"? A failing test case that demonstrates this would be great.

Sure. By 'doesn't work', I wanted to mean request.pathSegments.[1] expands to an empty string. This leads to searching for the file responses/apps/.json
If I want to load and return the path.json, I had to use 'request.path.[1]' instead.

The correct usage is request.requestLine.pathSegments.[1]. I've fixed the docs to reflect this now.

That fixed it for me too...
But the documentation at http://wiremock.org/docs/response-templating/ still shows

request.pathSegments.[]- URL path segment (zero indexed) e.g. request.pathSegments.[2]

Yeah the docs haven't been updated at all


Fix text overflow on various components

Closes #82
Added css property overflow-wrap: anywhere to components with overflow issues for long single worded text strings
Before:

After:

Would it not be a better solution to crop it with "This is my foobar ev..." so that the styling of the other boxes wont be unnecessarily tall ?


[Bug Report] Most youtube videos don't work

Describe the bug
When I try to play video from youtube it says in console this https://pastebin.com/5sTvV3Zg
To Reproduce

-play https://www.youtube.com/watch?v=2Nc-X1wlU3Q
that's all

Expected behaviour
Just play a video as normal
Screenshots
If applicable, add screenshots to help explain your problem.
Debug Info
Docker container, latest version

Duplicate of #369. You should wait for the next Jar release or compile the jar file yourself.


[50-52, MariaDB] Fall back to 'localhost' on empty host string

The MariaDB driver doesn't like an empty host in the URL. E.g. this
works with the MySQL driver but doesn't with the MariaDB driver:
jdbc:mysql:///activerecord_unittest
Simply fall back to 'localhost' if host is empty for MariaDB driver.
While at it, make #mysql_connection() a bit easier to read.

This makes the Rails tests run for MariaDB on Travis.
(Only noticed the failure on Travis since I had my config.yml pointing to a different host...)


Update chromedriver download version

Looks like a lot of updates have happened since we first added this!
Let's download the most recent stable version.
Closes #611

Ah actually @MartinKavis is gonna take a look at this


Move nearley.js and generated grammars to strict mode

First I want to thank you for this library. It made me able to experiment freely with the syntax of my toy language. It saved me a lot of time.
Now to the point of this post: while I was making small change here and there in the code I noticed that the nearly.js file and the generated grammar js file are not in strict mode. Adding the 'use strict' directive made the code ~2x faster when parsing my grammar on node.js 4.0. This may not be the case for other grammars and other environments, but I think it is worth trying.

Oh, wow, a 2x increase in speed is amazing! I did a code review against https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode and it looks like nearley is strict-mode compatible. I'll make the necessary changes and push an update asap. Thanks!

(EDIT: Actually, looks like using strict mode breaks certain things. Hmm. Do you have a working copy with strict mode enabled which I can merge in as-is?)

Sorry, I don't have one. I had problem with this, maybe on this line https://github.com/Hardmath123/nearley/blob/master/lib/nearley.js#L146. I passed this as a second argument to forEach:
rules.forEach(function(r) {...}, this);

Hmm, yeah, it appears "use strict" does some messing about with this. I'll work on getting this working, but feel free to file a PR if you get it working before I do. :-)

I have a very simple grammar for parsing emojis and adding 'use strict'; to the generated file doesn't seem to provide any speedup.

Beau Gunderson, try to add 'use strict'; to lib/nearley.js file too. I'm experimenting with a simple language very similar to Smalltalk. The problem is that Nearley takes too much time to parse larger chunks of code (I mean no offense here, Nearly is a wonderful library). What I did was to create a simple lexer/tokenizer to feed the parser with tokens. That sped the parsing a lot. I also tried to parse a sentence by sentence (e.g. foo: bar. bar: foo.' is split to two chunks foo: bar.andbar: foo.`). This was slower for small pieces of code but was 2-3 times faster when parsing 50-100kb chunks of code. I'm still not able to get the speed of the Marpa parser (https://github.com/jeffreykegler/libmarpa) (what I read was that the author was able to parse tens of thousands lines of code per second). Maybe I'm doing something wrong, I just don't know, since I'm still a beginner in these things.

Ah, @ipelovski, you're trying to pit a turtle against a hare. Marpa runs natively in C, whereas Nearley runs in a browser. Also, Marpa has had many many years of aggressive optimizations from the brilliant Jeffrey Kegler. There's really no competition: Marpa will always be faster by a gigantic margin, despite all our efforts.
Tokenizing is definitely the way to go for larger files. There isn't as much documentation on tokenization because the .ne compiler assumes no tokenizer (each character is a token!). It is not hard, however, to use the parser to parse an array of tokens, such as [print, open_paren, "hello, world!", close_paren].
Splitting into individual sentences is also a good idea, but you need to be careful not to split things like
Transcript show: "This is some text. This is more text.".
Transcript show: (3.14 + 0.00)

incorrectly!
One thing you might want to check on is whether your grammar is ambiguous or not. Smalltalk, particularly, has this issue. Cow makeSound: moo withLoudness: loud can be naïvely parsed in two ways:
Cow makeSound: (moo) withLoudness: (loud).```

Ambiguous grammars are much slower to parse because nearley keeps track of all the different parsings.

How large are your test files? Can you share your grammar and tests?

I'm still very interested in getting "strict mode" working properly. If anyone here has some serious experience with using strict mode as an optimization technique, please weigh in. :-)

Wow, thank you for responding so quickly!
I have no problems with Transcript show: "This is some text. This is more text."., since it is a job for the tokenizer to split it to correct tokens. What I get is ['Transcript', 'show:', '"This is some text. This is more text."', period]. So this is a single sentence.
I'm 100% sure that my grammar is not ambiguous since my code throws an error if it founds more than one result from the Nearley parser :) Also I have no problem with code like Cow makeSound: (moo) withLoudness: (loud). because the parenthesis are obligatory in my grammar for this case :)
This weekend, if I'm not too lazy, I'll try to make a pull request with added 'use strict'; directive and to share some code with test results.
What results do you get from your grammars and test files?

@Hardmath123 What if we rewrote nearley as a fork of marpa, and ported it to JavaScript with node modules on the console and asmjs in the browser? Hehehehe

This weekend I decided to make some tests with and without the 'use strict'; directive. I used the sample javascript.ne grammar in the examples directory and the content of lib/lint.js file for input. The result is that I saw no difference in the time execution of the tests :) My explanation for the better times I get for my grammar is that either it is quite badly written, or because I use a lot of post-processing functions that are somehow sped up with the directive, or maybe both :)

Wow, good to know. Did you add 'use strict'; to nearleyc.js, nearley.js, or the compiled js grammar file? I would expect the best results from strictifying nearley.js.
Also, the javascript.ne grammar is kind of outdated and weird (written by @JacobEdelman like a year ago). Maybe you should try using nearley-language-bootstrapped.ne (in lib/) with nearley-language-bootstrapped.ne as input? It's a bit meta, but it's ironically one of the best test cases we have. :-)

It's worth noting javascript.ne doesn't use preprocessors to the extent a normal nearley grammar would.

Ah, yes, @bobbybee makes a good point here. This would be fixed by #33, so maybe we should prioritize that.

@Hardmath123, I first tried running the tests with test/launch.sh and it was then when I saw there is no difference in the execution time. Then I tried running ./bin/nearleyc.js ./lib/nearley-language-bootstrapped.ne and got the same result (i.e. no difference).

Wow, good to know. Did you add 'use strict'; to nearleyc.js, nearley.js, or the compiled js grammar file? I would expect the best results from strictifying nearley.js.

I added 'use strict'; to nearley.js and the compiled js grammar file.

Awesome, @ipelovski, that's great to know.
I'm curious why the grammar in your initial post got faster when in strict mode. I imagine it might have used a postprocessor that was sped up by the strict mode optimizations. Let me know if you figure it out. :-)

@Hardmath123 Is there any reason nearleyc doesn't output files with strict mode? :)

How do you know the user's postprocessors are strict-mode compliant? I suppose it can be an option in nearleyc, but you could just put @{% "use strict; "%} at the top of your grammar, right?

How do you know the user's postprocessors are strict-mode compliant?

Oh dear. I somehow feel like we shouldn't have to ask this question in 2017, but I think that's just me wishing JS had somehow gotten better :P


BUG doesn't support options with single dash

e.g. isort's -o

need to figure out what to do about the .nbqa.ini file...for a start, I'm not parsing it correctly. And second...I think it should override existing configurations, I just need to think about how to do that


Implement support for metrics

Summary
We need for monitoring implement support of Prometheus metrics. The same functionality was before implemented directly in controller-runtime manager.
You can read more about implementation here: https://prometheus.io/docs/guides/go-application/
We need implement only base support for metrics in this issue. Implementation of custom metrics will do in another issue.
Motivation
Rise quality of service

@hardikdr @lukasfrank do you want to implement metrics server somewhere in shared library (example: IRI server) or every app will implement it own way?

@lukas016 I will approach you offline to discuss the details

it was merged into osc/dev


Analytics 10.23.1

Analytics 10.23.1 #no-changelog

I'll merge and continue testing and staging from #12647


Fixing compiling on Windows using clang

clang on Windows also sets the _MSC_VER flag
to compile with msvc on Windows we need to check for _MSC_VER and !clang
to compile with clang on Windows we need to check for clang

Thanks @christophpurrer


[FEAT]: Find a way for capturing the image of the whole bottle circumference

Description
The bottles we should recognize and classify have in most cases a round section.
This implies that there are no mechanical ways for aligning the bottles and make sure that the OAK-D-Lite camera can always see them from one preferred angle (i.e. the one where the label is attached)
In order to increase the accuracy of the image detection we should probably design a way for capturing an image of the whole bottle circumference.
Also with OpenCV we should be able to detect the label position in the circumference and realign the total picture to have it centered inside the timage.
Additional Information
Possible alternatives:

Place multiple OAK-D-Lites (we have up to 3) and use OpenCV to create a panorama photo
Have the bottle conveyor perform a rotation of the bottle when in front of the OAK-D-Lite(s)
A combination of 1. and 2. (that should minimize the recognition time as well as the ARNEIS system cost)

Notice that each of the proposed alternative will have a different impact on

the image detection (and training) algorithm
the mechanic/automation design of the conveyor

Maybe the following module of FREE OpenCV Crash Course may help:
⌨ (1:23:57) Module 9: Image Stitching and Creating Panoramas

Maybe the following module of FREE OpenCV Crash Course may help:
⌨ (1:23:57) Module 9: Image Stitching and Creating Panoramas

It is what I was referring to when I said, we can have multiple images of a single item/bottle and we can "merge" them 😄


update the api group

fixed: https://github.com/cloudtty/cloudtty/issues/6
/kind feature
update the api group.

/cc @panpan0000

lgtm. a minor comments: should we check-in those auto-generated files by kube-builder ? like subfolders under config?

lgtm. a minor comments: should we check-in those auto-generated files by kube-builder ? like subfolders under config?

I think those are necessary,  although these config is generated by using kube-builder,  users still need them to install the service manually. Unless we provide a makefile that generates these files.


Leave management UI and calculation

Figma
https://www.figma.com/file/4gdPDRPqGqQqPYsO3Qj8CG/Miru-App?node-id=16947%3A316009&mode=dev
What

User can view all the applied leaves with date, type of leave and number of hours.
Users can also view the leave balance with net hours and days for each leave type.
Admins/owners can view other team member's leaves and balances.

Demo
https://github.com/saeloun/miru-web/assets/52771571/a319494b-f2bf-4bf8-ba0d-5b73807c173b

@prasanthchaduvula Please add specs for service


Merge full working SEV keepldr

Merge working SEV keepldr.
Note - any existing tests are not checked, and probably don't make sense with the latest version.  This may need work to resolve.

So, this is a DRAFT? Do you want me to convert this into proper commits?

So, this is a DRAFT? Do you want me to convert this into proper commits?

OK, I'm not sure what's going on here.  I need to work out the issues - I guess I need to rebase again.  Soz.


[WIP]: Create dotnet-dsrouter.md

✔ Internal Preview: dotnet-dsrouter

/CC @tommcdon @josalem @hoyosjs

I have some suggestions for improvement, thanks for creating this. We also need to add this to the TOC.

Thanks for suggestions to improve and align documentation. Do I need to do anything more in this PR to add it to TOC?

I have some suggestions for improvement, thanks for creating this. We also need to add this to the TOC.

@IEvangelist, thanks for suggestions to improve and align documentation. Do I need to do anything more in this PR to add it to TOC?

Hi @lateralusX - yeah, you'd need to update the corresponding toc.yml file. This content should probably be referenced in the same TOC node as other related content. See this file:
https://github.com/dotnet/docs/blob/main/docs/fundamentals/toc.yml#L669-L686

Hi @lateralusX - yeah, you'd need to update the corresponding toc.yml file. This content should probably be referenced in the same TOC node as other related content. See this file:
https://github.com/dotnet/docs/blob/main/docs/fundamentals/toc.yml#L669-L686

Updated toc.yml to include reference to new documentation page.


Allow CORS on keys and token endpoints

As discussed in https://github.com/coreos/dex/pull/766 this PR is to allow a js client to access keys and token end points.

LGTM

@xeonx, it would be great if you could add your implicit flow example as an example-app for dex (refer: https://github.com/coreos/dex/tree/master/cmd/example-app).


Deprecation warning due to the use of scoped_properties instead of setings

The Atom.io deprecation cop shows the following deprecation warning:
Store package settings files in the settings/ directory instead of scoped-properties/
Called 2 times:
Package.loadSettings - C:\Users\lezar\AppData\Local\atom\app-0.189.0\resources\app\src\package.js:565:9
<unknown> - C:\Users\lezar\AppData\Local\atom\app-0.189.0\resources\app\src\package.js:187:43

Perhaps I'm being dense, but I'm still receiving this deprecation even though Atom thinks the package is up-to-date.

I don't think that the changes have been pushed out as an update yet. My package version is still at 1.4.0, which is from the 6th of March.

This should now be resolved

I can confirm that the deprecation warning no longer shows on my system after the update to 1.5.0.


Documentation suggests normal multicursor mode "u" is bound to both "lowercase" and "undo"

The Normal mode keymaps dropdown says "u" is bound to both, however in config.lua it appears there is no "undo" function outside of Extend mode.
Pretty new to neovim, so maybe I'm missing something! But I can't find a way to undo insert mode changes, outside of exiting multicursor completely and sending a bunch of undo events.

You're right, I'll push a fix.


Misc updates

Switch from nose to py.test.
Update to latest pypi-template.

Coverage remained the same at 100.0% when pulling<PHONE_NUMBER>cb4f0ded6f2650adb145e09f028c67 on docopt into ccd80514662d782afa23396559990ce995a8bc2d on master.


Markdown file in-link can't skip right when there are some Chinese punctuation

VSCode Version: 1.24.1
OS Version: win 10 latest

<!-- TOC -->

- [test，test](#testtest)  <!-- work wrong -->
- [test,demo](#testdemo)  <!-- work right-->

<!-- /TOC -->

## test，test
## test,demo

When use Ctrl+right click, it has no reply.
If change the ， to ,, it can work right.
However, it can work well at Github, so I treat it as a BUG.

Does this issue occur when all extensions are disabled?: Yes/No

Root cause: We remove known punctuators when slugifying headers. ， is not included. Fix would be to use the puctuator unicode character class on this line instead of a hardcoded list. However this is not supported in our current node version

So this problem will not be fixed recently？

If you want to submit a PR that makes it so we correctly handle this one character please do so. Here's the relevant code again: https://github.com/Microsoft/vscode/issues/53590

I'm not good at JS. So all I need to change is that line?

Thanks for receive this PR.
I just looked at it again. However, it seems lack some English punctuation such as \".