Training a multi-branch CNN using a generator causes a global loss ambiguious evolution

I ' am trying to train a network with two separate branches, each branch is a ResNet50. That means I have two partial losses and a global loss which is a weigthed summation of partial ones. I used a generator to get batches. During the training, the global loss is much higher than the theorical weighted summation of the obtained partial ones. Here is the code:
 import numpy as np
 from keras_preprocessing.image import ImageDataGenerator
 from keras.models import Model
 import keras
 import resnet

 img_channels=3
 img_rows=224
 img_cols=224
 num_classes=10
 image_dir1='Path_to_directory1'
 image_dir2='Path_to_directory2'

 def multi_loss_model():
     model_rgb  = resnet.ResnetBuilder.build_resnet_50((img_channels, img_rows,                        img_cols), num_classes)
    model_disp = resnet.ResnetBuilder.build_resnet_50((img_channels, img_rows, img_cols), num_classes)
    custom_resnet_model = Model(inputs=[model_rgb.input,model_disp.input],         outputs=[model_rgb.output,model_disp.output])

    return custom_resnet_model

model_resnet_multi_class= multi_loss_model()

model_resnet_multi_class.compile(loss='categorical_crossentropy',
              loss_weights=[0.5,0.5],
              optimizer='sgd', metrics=['accuracy'])

  batch_size=32
  image_size=(224,224)
  train_samples=340
  validation_samples=84
  epoch_num=100
  train_datagen = ImageDataGenerator(rescale=1./255, validation_split=0.2)

  def multiple_outputs(generator, image_dir1, image_dir2,batch_size, image_size,             subset):
      gen1 = generator.flow_from_directory(
                 image_dir1,
                target_size=image_size,
                batch_size=batch_size,
                class_mode='categorical', shuffle=True, seed=42,
                subset=subset)
      gen2 = generator.flow_from_directory(
                image_dir2,
                target_size=image_size,
                batch_size=batch_size,
                class_mode='categorical',shuffle=True, seed=42,
                subset=subset)

      while True:
          gnext1 = gen1.next()
          gnext2 = gen2.next()
          yield [gnext1[0],gnext2[0]], [gnext1[1],gnext2[1]]

  train_generator = multiple_outputs(
            train_datagen,
            image_dir1=image_dir1,
            image_dir2=image_dir2,
            batch_size=batch_size,
            image_size=image_size,
            subset='training')

  validation_generator = multiple_outputs(
      train_datagen,
      image_dir1=image_dir1,
      image_dir2=image_dir2,
      batch_size=batch_size,
      image_size=image_size,
      subset='validation')

  model_resnet_multi_class.fit_generator(train_generator,
                      steps_per_epoch = train_samples // batch_size,
                      validation_data = validation_generator,
                      validation_steps = validation_samples // batch_size,
                      epochs = epoch_num)

Here is the result of the first training epoch
Epoch 1/10
10/10 [==============================] - 512s 51s/step - loss:
12.7830 - dense_5_loss: 2.0693 - dense_6_loss: 2.2488 - dense_5_accuracy:
0.3031 - dense_6_accuracy: 0.2406 - val_loss: 21.3956 - val_dense_5_loss: 14.6704
- val_dense_6_loss: 6.3336 - val_dense_5_accuracy: 0.1562 -val_dense_6_accuracy:
0.0781

Could anyone explain to me what is wrong with my code to result in such global loss aspect? Theoretically, it should be the average of the two partial losses since I affected a weight of 0.5 for each loss. When I tried the same with one branch, the global loss computation works correctly. However, it is not the case with two branches.

@fchollet I would be so gratefull if you could help me and figure out the key problem of my issue.

@Emnaa12
Moving this issue to closed status as there has been no activity, in case you still face the error please create a new issue.


Support for small molecules & Protein Ligands

This issue serves as the starting point for developing features to support small molecule graphs.
Ligands from Mol2 files:

This should be straightforward using BioPandas support for Mol2 files: https://rasbt.github.io/biopandas/api_subpackages/biopandas.mol2/

Ligands from SDF files
I'm not aware of any lightweight parsers for SDF files. We could use the parsers in OpenBabel/RDKit as optional dependencies, or lift the parsers from these libraries if they're sufficiently compact (and licensing is sufficiently permissive).
Ligands from SMILES
Similar to the issues described for SDF files.
Ligands from PDB Files
This should be straightforward to extract from the current PDB file parsing, we can extract them from the HETATM df, which is separated from the main polypeptide dataframe. The trickiness here comes from distinguishing cofactors/crystallographic adjuvants from 'true' ligands of interest. We could circumnavigate this by allowing users to remove typical species of these types - we maintain a dictionary of them here
Inferring connectivity
Distance-based connectivity (eucl. threshold, KNN etc) should be straightforward and can likely leverage the existing code used for protein graphs. The more complicated scenario is inferring the covalent bonding from PDBs. PDB files may provide CONNECT records specifying ligand structure but I am not sure this is a guarantee.
Features
Some idea of the sorts of features users would like to use would be quite helpful. I think having RDKit as an optional dependency and allowing users to interact with it would be the most straightforward solution here.
Keen to hear thoughts :)

Hey Arian, I will be working on it :D

I agree that both RDKit and OpenBabel could be optionally dependency packages as they are much easier to install these days with conda and building the small molecule support with these two packages should be great.

Yep, I think of the two RDKit is the better choice since it is now pip installable. OpenBabel could be trickier (I’ve had some issues getting the python bindings working properly in the past).


DLPAdvCond-chrisda to Main

Docs Build status updates of commit 0e384cb:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

exchange/exchange-ps/exchange/New-DlpComplianceRule.md
:white_check_mark:Succeeded
View (exchange-ps)

exchange/exchange-ps/exchange/Set-DlpComplianceRule.md
:white_check_mark:Succeeded
View (exchange-ps)

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


added a couple of new icons

The code for adding/updating the icons fine. Not sure who should review the actual icons, I noticed there was icons named facebook and google that sounds a bit odd, but not knowing what this is for that is hard for me to review.
@LauraAB Is this perhaps for you ?
@OblivionSY perhaps add images of the icons to the pull request description ?


Add demo of sdc usage

Hello @akharche! Thanks for opening this PR.


ci(e2e): use the QA environment

What
Run e2e targetting QA
Why
QA is a long-running environment
QA is more aimed for testing against to
Test: https://github.com/elastic/elastic-otel-dotnet/actions/runs/11974026009?pr=185

Included these changes in #184


How to solve the issues

Can any one help me here I'm stuck here

want do you need
On Mon, Apr 27, 2020 at 10:50 AM RONIZAM Razali<EMAIL_ADDRESS>wrote:

Closed #4 https://github.com/MyEtherWallet/MEWconnect/issues/4.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/MyEtherWallet/MEWconnect/issues/4#event-3276431946,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJ74DUMFLK76NSAUVK5CQLTROWSVTANCNFSM4MR7SZCQ
.


Documentation clarification of topic "Modules Resolution"?

It's very important to be aware that this plugin uses TypeScript's, not webpack's modules resolution. It means that you have to setup tsconfig.json correctly. For example if you set files: ['./src/index.ts'] in tsconfig.json, this plugin will check only index.ts for errors.

-- https://github.com/TypeStrong/fork-ts-checker-webpack-plugin#modules-resolution
Does this mean that imports of index.ts will not be explored/checked?  That was my initial interpretation, but then that behavior wouldn't match typescript's module resolution either - it would be basically no module resolution.  I guess if build: true it would match, but if build: false then files array is just the entry points for the transpilation graph.
I'm trying to debug a build issue, and I need to gain confidence on this point, please.  I'm running forked v6.2.1 and not getting any errors listed.  Kind of like https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/issues/319 except that's claimed to be fixed in v6.

That's a good point - you're right, we should update the doc :) Would you like to create a PR to update it?

Thanks!  But I don't know the complete correct answer to know what to replace it with.

The plugin will use the same module resolution as TypeScript. The simplest option to check whether it's a configuration issue or a bug in the plugin is running the tsc command - in your case, it should be tsc --build --watch. If it works in TypeScript, then the issue is in the plugin, otherwise, the issue is in the configuration or TypeScript itself :)

I will close this issue - if you find any problems with the build mode, please open another one with a description and reproduction repository :)


Support authentication with bearer tokens.

@modax thanks, much appreciated. Apologies for taking a while to get to looking at these PRs.


fix addWiggleEffect function not work

by replace the 2nd's arg to string and move WiggleEffect to Shader.hx

it's good
but it needs a HEAT_WAVE_BOTH option otherwise some specific person might not be too happy abt it!!!!!!!!

it's good
but it needs a HEAT_WAVE_BOTH option otherwise some specific person might not be too happy abt it!!!!!!!!

here i fix

oh i forgot add verticalStrength and horizontalStrength args

here i add

i tested complete


fix: prevent open search on onboarding route

Explanation of Change

Fixed Issues

$ https://github.com/Expensify/App/issues/52260
$ https://github.com/Expensify/App/issues/50981
PROPOSAL:
Tests

Sign in with a new account
In onboarding task, try to open search modal using Cmd+K
Verify that: search modal is not opened

[x] Verify that no errors appear in the JS console

Offline tests

QA Steps

// TODO: These must be filled out, or the issue title must include "[No QA]."

Sign in with a new account
In onboarding task, try to open search modal using Cmd+K
Verify that: search modal is not opened

[x] Verify that no errors appear in the JS console

PR Author Checklist

[x] I linked the correct issue in the ### Fixed Issues section above
[x] I wrote clear testing steps that cover the changes made in this PR

[x] I added steps for local testing in the Tests section
[x] I added steps for the expected offline behavior in the Offline steps section
[x] I added steps for Staging and/or Production testing in the QA steps section
[x] I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
[x] I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
[x] I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).

[x] I included screenshots or videos for tests on all platforms
[x] I ran the tests on all platforms & verified they passed on:

[x] Android: Native
[x] Android: mWeb Chrome
[x] iOS: Native
[x] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[x] MacOS: Desktop

[x] I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
[x] I followed proper code patterns (see Reviewing the code)

[x] I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick)
[x] I verified that comments were added to code that is not self explanatory
[x] I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
[x] I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method

[x] If any non-english text was added/modified, I verified the translation was requested/reviewed in #expensify-open-source and it was approved by an internal Expensify engineer. Link to Slack message:

[x] I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
[x] I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
[x] I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
[x] I verified the JSDocs style guidelines (in STYLE.md) were followed

[x] If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
[x] I followed the guidelines as stated in the Review Guidelines
[x] I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
[x] I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
[x] I verified any variables that can be defined as constants (ie. in CONST.js or at the top of the file that uses the constant) are defined as such
[x] I verified that if a function's arguments changed that all usages have also been updated correctly
[x] If any new file was added I verified that:

[x] The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory

[x] If a new CSS style is added I verified that:

[x] A similar style doesn't already exist
[x] The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))

[x] If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
[x] If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
[x] If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
[x] If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
[x] If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:

[x] I verified that all the inputs inside a form are aligned with each other.
[x] I added Design label and/or tagged @Expensify/design so the design team can review the changes.

[x] If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
[x] If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.

Screenshots/Videos

Android: Native
https://github.com/user-attachments/assets/e62a42cd-2a50-4804-92d7-3a5e74ff4584

Android: mWeb Chrome
https://github.com/user-attachments/assets/3dfa788e-9ef2-4eea-a9f0-c43d8c06cf65

iOS: Native
https://github.com/user-attachments/assets/25f48628-63e2-4df7-9cba-fa73fa355416

iOS: mWeb Safari
https://github.com/user-attachments/assets/2448274a-6683-4daa-9886-7dda11329c29

MacOS: Chrome / Safari
https://github.com/user-attachments/assets/f169a0f5-5297-4553-979e-07507d2a9b02

MacOS: Desktop
https://github.com/user-attachments/assets/83ba29eb-bfff-48b4-b085-b7f6b0eed6ca

@daledah @dukenv0307 can you think of a way to add unit test for this behaviour?

Alright, can you complete the checklist?

:hand: This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.


default for compcor?

in https://www.sciencedirect.com/science/article/pii/S1053811917302288?via%3Dihub n_compcor was set to 10 for anatCompCor and to 6 for tempCompCor. This is (very) different from the current default which can use dozens of regressors for anatCompCor. We may want to revisit this choice.

unless we get some push back, happy with current defaults.


CommonJS + Browserify

What's the appropriate way to use this with a CommonJS + Browserify setup?
Should I be including a script tag in my index.html for le.js, or should I require("libs/le.js") in every file I want to use it?
Where should I be calling LE.init()?

Although i have not done it personally yet, i believe you can npm install le_js --save and then require("le.js")
after you have required the logger somewhere in your code you can call the init() function probably best doing it first thing.
subsequent require's will not need to call init()

@dmwyatt did you mange to use le_je successfully in your browserify project ?

I'm going to close this- @dmwyatt if you have any subsequent issues / suggestions / fixes, feel free to open another issue :)


Java: Check compilation unit of the same element in both disjuncts.

It can happen that an annotation on a field and the field originate from separate compilation units in which case getAnnotatedElement could end up missing come cases.

Java-Differences/285 showed no changes, but qltest failed.
In the field declaration of the failing qltest
@SuppressWarnings("rawtypes") java.util.List l, m;

we extract the annotation and attach it to l, and both the annotation and the field satisfy .getCompilationUnit().fromSource().  The location of this annotation is fields/FieldTest.java:6:9:6:37.  However, we also extract an annotation with location fields/FieldTest.class:0:0:0:0 and attach it to m, and this causes the qltest failure.  I'm not sure where in the extractor this additional annotation comes from.


Function not defined not handled correctly

Noticed that the following isn't handled well by the extension. It basically isn't aware there was a crash at all. It also doesn't print the line Function is not defined in component's namespace (runtime error &h91) in pkg:/components/ui/XXXX/XXXX.brs(21) which makes it hard to figure out what the problem even is.
Suspending threads...
Thread selected:  1*   ...ons/XXXXXX.brs(21)    Navigation_createPushAndFocusPage("XXXX")

Current Function:
014:  sub XXX(message as Object)
015:    index = message.getData()
016:
017:    button = m.layoutList.getChild(index)
018:    if button.id = "XXX" then
019:        Navigation_createPushAndFocusPage("XXXX")
020:    else if button.id = "XXX" then
021:*       Navigation_createPushAndFocusPage("XXXX")
022:    else if button.id = "XXX" then
023:        startMainApp()
024:    end if
025:  end sub
Function is not defined in component's namespace (runtime error &h91) in pkg:/components/ui/XXXX/XXXX.brs(21)
021:        Navigation_createPushAndFocusPage("XXXX")
Backtrace:
#0  Function onlayoutlistitemselectedchanged(message As Object) As Void
   file/line: pkg:/components/ui/XXXX/XXXX.brs(21)
Local Variables:
message          roSGNodeEvent refcnt=2
global           Interface:ifGlobal

@triwav we have made a few changes to the error handling recently. Could you re-test this to see if it's still happening?

@triwav any update?

@TwitchBronBron yes it seems to be working better. Closing.


The script doesn't work - giving "Try Again Tomorrow", Its the first time I have used it.

I have followed the README and trying out un-send (A)

In the same browser when i put the url https://i.instagram.com/api/v1/direct_v2/threads/<id>/ in the address bar. I get this:
{"message":"useragent mismatch","status":"fail"}

Chrome Version Version 113.0.5672.64 (Official Build) (64-bit)

Duplicate of https://github.com/pishangujeniya/instagram-helper/issues/95

any new updates regarding this?

I am unable to reproduce so not fixed yet.


Changed to java.util.concurrent Collections and removed unnecessary syncs.

Hello!
As I already wrote, I replaced your self-written queue with a queue specially designed for such tasks from the standard Java library (BlockingDeque). I also removed synchronizations from the KafkaOpenMetadataEventConsumer class by replacing the usual HashMap with ConcurrentHashMap that provide concurrent access using atomic methods and do not require additional synchronization. At the same time, they work much faster than just synchronized collections.

@planetf1 Please to assign @mandy-chessell and @davidradl too

Open

@wbittles @planetf1  I am wondering where we are with this one? It looks like there is a fix for this. Can we merge or reject this please?


cmd/export: fix help

Closes #819
Change-Id: I273b0117bddf7e32c4f6f5bf5d706a889144b7ff

There was a typo yes, but the behaviour seems to have changed also...


Fix local testnet link in README files

This corrects a couple outdated links for starting a local testnet.
Previous link https://chainsafe.github.io/lodestar/usage was outdated.
It has been split up across pages for public and local testnets.

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


Issue in reading param file through docker

Hi,
Thank you for developing such a tool.
I have an issue in reading param files. Before this issue, I had another issue in reading input files but I figured it out.
I followed steps below:

BASE="${HOME}/margin_phasing"
INPUT_DIR="${BASE}/input/data"
REF="Mus_musculus..fa"
BAM="Remora.bam"
paramfile="allParams.haplotag.ont-r94g507.json"
THREADS="10"
OUTPUT_DIR="${BASE}/output"
OUTPUT_PREFIX="Ep300"
OUTPUT_VCF="Ep300.vcf.gz"
TRUTH_VCF="FVB_NJ.vcf"
mkdir -p "${OUTPUT_DIR}"
mkdir -p "${INPUT_DIR}"
paramdirectory="${BASE}/paramfiles"
mkdir -p "${paramdirectory}"
sudo docker pull jmcdani20/hap.py:v0.3.12
sudo docker pull kishwars/pepper_deepvariant:r0.8
sudo docker run -v "${INPUT_DIR}":"${INPUT_DIR}"
-v "${OUTPUT_DIR}":"${OUTPUT_DIR}"
kishwars/pepper_deepvariant:r0.8 margin phase
"${INPUT_DIR}/${BAM}"
"${INPUT_DIR}/${REF}"
"${INPUT_DIR}/${TRUTH_VCF}"
"${paramdirectory}/${paramfile}"
-o "${OUTPUT_DIR}"
-p "${OUTPUT_PREFIX}"
-t ${THREADS}

and then
I got this error: "Could not read from params file: /home/ko/margin_phasing/paramfiles/allParams.haplotag.ont-r94g507.json".
I also created a directory where paramfile is existed. But, when my run read inputs, it did not read paramfile with the same way. In addition to that, I put a path where I have all param files default (I downloaded them from GitHub). Despite that, I got the same error again. How can I do my run can read param files? Could you help me with this?
I addition to that, another question in my mind is that is margin consistent with R.10.4.1 flowcell output of ONT?
Kind regards.

Hi, I ran into the same issue with you. How do you deal with it finally?

@kaanokay Do you have any suggestions? I had tried both docker and singularity, but they failed on it.


menuconfig: Increase indent and make Unicode more robust

This commit adds the following changes from upstream:

ed38e895ace ("Increase indent for implicit submenus to 4")
Suggested by Carles Cufí. Makes it easier to see the menu structure
at a glance.

1d252b30c77 ("menuconfig: Convert the C locale to a UTF-8 locale for
LC_CTYPE")
Makes Unicode input work on many systems with bad defaults.
Also fixes some interface ugliness, like down arrows turning into
upside-down T's.

Signed-off-by: Ulf Magnusson<EMAIL_ADDRESS>

CC @carlescufi @SebastianBoe

Let's get this merged so we can get early feedback on the locale settings.


DataLakeServiceClient Can't create files and directories

Package Name: azure.storage.filedatalake
Package Version: 12.9.1
Operating System: Azure Databricks cluster
Python Version: 3.8.10

Describe the bug
I have an Azure Databricks cluster set up, where I want to use the DataLakeServiceClient API to read and write files to a storage account of kind "StorageV2 (general purpose v2)".
I can create file system, directory and file clients, but when I use the "create_*" methods I get a "Failed to establish a new connection: [Errno -2] Name or service not known" exception.
To ensure this isn't a networking issue, I disabled the networking restrictions for the storage account ("Enabled from all networks").
Also, the "exists" method seems to work, so I assume there is a network connection between the Databricks host and the storage.
To ensure this isn't a roles/permissions issue, I gave the app registration used the "Contributor" role over the storage account.
To Reproduce
Steps to reproduce the behavior:
The code I use:
from azure.storage.filedatalake import DataLakeServiceClient
from azure.identity import ClientSecretCredential

key = "SECRET"
cred = ClientSecretCredential(client_id="CLIENT ID", client_secret=key, tenant_id="TENANT ID")
client = DataLakeServiceClient(account_url="https://{0}.dfs.core.windows.net".format(STORAGE_ACCOUNT_NAME), credential=cred)

fs = client.get_file_system_client(file_system="out-put")
directory = client.get_directory_client(file_system=fs.file_system_name, directory="test")

# Works, prints "True"
print(directory.exists())

# Fails
directory.create_sub_directory("sub-test")

These are the package versions I use:
azure-identity = 1.12.0
azure-storage-file-datalake = 12.9.1
urllib3 = 1.25.11
Databricks cluster with runtime version 9.1
Expected behavior
In the following example, I expect the sub-directory to be created, but I get the following exception and the directory isn't created.

Exception
---------------------------------------------------------------------------
ServiceRequestError                       Traceback (most recent call last)
<command-4438990712225009> in <module>
     13
     14 # Fails
---> 15 directory.create_sub_directory("sub-test")

/databricks/python/lib/python3.8/site-packages/azure/storage/filedatalake/_data_lake_directory_client.py in create_sub_directory(self, sub_directory, metadata, **kwargs)
    459         """
    460         subdir = self.get_sub_directory_client(sub_directory)
--> 461         subdir.create_directory(metadata=metadata, **kwargs)
    462         return subdir
    463

/databricks/python/lib/python3.8/site-packages/azure/storage/filedatalake/_data_lake_directory_client.py in create_directory(self, metadata, **kwargs)
    196                 :caption: Create directory.
    197         """
--> 198         return self._create('directory', metadata=metadata, **kwargs)
    199
    200     def delete_directory(self, **kwargs):

/databricks/python/lib/python3.8/site-packages/azure/storage/filedatalake/_path_client.py in _create(self, resource_type, content_settings, metadata, **kwargs)
    285             **kwargs)
    286         try:
--> 287             return self._client.path.create(**options)
    288         except HttpResponseError as error:
    289             process_storage_error(error)

/databricks/python/lib/python3.8/site-packages/azure/core/tracing/decorator.py in wrapper_use_tracer(*args, **kwargs)
     76             span_impl_type = settings.tracing_implementation()
     77             if span_impl_type is None:
---> 78                 return func(*args, **kwargs)
     79
     80             # Merge span is parameter is set, but only if no explicit parent are passed

/databricks/python/lib/python3.8/site-packages/azure/storage/filedatalake/_generated/operations/_path_operations.py in create(self, request_id_parameter, timeout, resource, continuation, mode, rename_source, source_lease_id, properties, permissions, umask, owner, group, acl, proposed_lease_id, lease_duration, expiry_options, expires_on, path_http_headers, lease_access_conditions, modified_access_conditions, source_modified_access_conditions, cpk_info, **kwargs)
   1118         request.url = self._client.format_url(request.url)  # type: ignore
   1119
-> 1120         pipeline_response = self._client._pipeline.run(  # type: ignore # pylint: disable=protected-access
   1121             request, stream=False, **kwargs
   1122         )

/databricks/python/lib/python3.8/site-packages/azure/core/pipeline/_base.py in run(self, request, **kwargs)
    209             else _TransportRunner(self._transport)
    210         )
--> 211         return first_node.send(pipeline_request)  # type: ignore

/databricks/python/lib/python3.8/site-packages/azure/core/pipeline/_base.py in send(self, request)
     69         _await_result(self._policy.on_request, request)
     70         try:
---> 71             response = self.next.send(request)
     72         except Exception:  # pylint: disable=broad-except
     73             _await_result(self._policy.on_exception, request)

/databricks/python/lib/python3.8/site-packages/azure/core/pipeline/_base.py in send(self, request)
     69         _await_result(self._policy.on_request, request)
     70         try:
---> 71             response = self.next.send(request)
     72         except Exception:  # pylint: disable=broad-except
     73             _await_result(self._policy.on_exception, request)

/databricks/python/lib/python3.8/site-packages/azure/core/pipeline/_base.py in send(self, request)
     69         _await_result(self._policy.on_request, request)
     70         try:
---> 71             response = self.next.send(request)
     72         except Exception:  # pylint: disable=broad-except
     73             _await_result(self._policy.on_exception, request)

/databricks/python/lib/python3.8/site-packages/azure/core/pipeline/_base.py in send(self, request)
     69         _await_result(self._policy.on_request, request)
     70         try:
---> 71             response = self.next.send(request)
     72         except Exception:  # pylint: disable=broad-except
     73             _await_result(self._policy.on_exception, request)

/databricks/python/lib/python3.8/site-packages/azure/core/pipeline/_base.py in send(self, request)
     69         _await_result(self._policy.on_request, request)
     70         try:
---> 71             response = self.next.send(request)
     72         except Exception:  # pylint: disable=broad-except
     73             _await_result(self._policy.on_exception, request)

/databricks/python/lib/python3.8/site-packages/azure/core/pipeline/policies/_redirect.py in send(self, request)
    151         redirect_settings = self.configure_redirects(request.context.options)
    152         while retryable:
--> 153             response = self.next.send(request)
    154             redirect_location = self.get_redirect_location(response)
    155             if redirect_location and redirect_settings['allow']:

/databricks/python/lib/python3.8/site-packages/azure/core/pipeline/_base.py in send(self, request)
     69         _await_result(self._policy.on_request, request)
     70         try:
---> 71             response = self.next.send(request)
     72         except Exception:  # pylint: disable=broad-except
     73             _await_result(self._policy.on_exception, request)

/databricks/python/lib/python3.8/site-packages/azure/storage/filedatalake/_shared/policies.py in send(self, request)
    530                     self.sleep(retry_settings, request.context.transport)
    531                     continue
--> 532                 raise err
    533         if retry_settings['history']:
    534             response.context['history'] = retry_settings['history']

/databricks/python/lib/python3.8/site-packages/azure/storage/filedatalake/_shared/policies.py in send(self, request)
    504         while retries_remaining:
    505             try:
--> 506                 response = self.next.send(request)
    507                 if is_retry(response, retry_settings['mode']):
    508                     retries_remaining = self.increment(

/databricks/python/lib/python3.8/site-packages/azure/core/pipeline/_base.py in send(self, request)
     69         _await_result(self._policy.on_request, request)
     70         try:
---> 71             response = self.next.send(request)
     72         except Exception:  # pylint: disable=broad-except
     73             _await_result(self._policy.on_exception, request)

/databricks/python/lib/python3.8/site-packages/azure/core/pipeline/_base.py in send(self, request)
     69         _await_result(self._policy.on_request, request)
     70         try:
---> 71             response = self.next.send(request)
     72         except Exception:  # pylint: disable=broad-except
     73             _await_result(self._policy.on_exception, request)

/databricks/python/lib/python3.8/site-packages/azure/core/pipeline/policies/_authentication.py in send(self, request)
    111         self.on_request(request)
    112         try:
--> 113             response = self.next.send(request)
    114             self.on_response(request, response)
    115         except Exception:  # pylint:disable=broad-except

/databricks/python/lib/python3.8/site-packages/azure/core/pipeline/_base.py in send(self, request)
     69         _await_result(self._policy.on_request, request)
     70         try:
---> 71             response = self.next.send(request)
     72         except Exception:  # pylint: disable=broad-except
     73             _await_result(self._policy.on_exception, request)

/databricks/python/lib/python3.8/site-packages/azure/storage/filedatalake/_shared/policies.py in send(self, request)
    302             request.context.options.pop('raw_response_hook', self._response_callback)
    303
--> 304         response = self.next.send(request)
    305         will_retry = is_retry(response, request.context.options.get('mode'))
    306         if not will_retry and download_stream_current is not None:

/databricks/python/lib/python3.8/site-packages/azure/core/pipeline/_base.py in send(self, request)
     69         _await_result(self._policy.on_request, request)
     70         try:
---> 71             response = self.next.send(request)
     72         except Exception:  # pylint: disable=broad-except
     73             _await_result(self._policy.on_exception, request)

/databricks/python/lib/python3.8/site-packages/azure/core/pipeline/_base.py in send(self, request)
     69         _await_result(self._policy.on_request, request)
     70         try:
---> 71             response = self.next.send(request)
     72         except Exception:  # pylint: disable=broad-except
     73             _await_result(self._policy.on_exception, request)

/databricks/python/lib/python3.8/site-packages/azure/core/pipeline/_base.py in send(self, request)
    101         return PipelineResponse(
    102             request.http_request,
--> 103             self._sender.send(request.http_request, **request.context.options),
    104             context=request.context,
    105         )

/databricks/python/lib/python3.8/site-packages/azure/storage/filedatalake/_shared/base_client.py in send(self, request, **kwargs)
    330
    331     def send(self, request, **kwargs):
--> 332         return self._transport.send(request, **kwargs)
    333
    334     def open(self):

/databricks/python/lib/python3.8/site-packages/azure/storage/filedatalake/_shared/base_client.py in send(self, request, **kwargs)
    330
    331     def send(self, request, **kwargs):
--> 332         return self._transport.send(request, **kwargs)
    333
    334     def open(self):

/databricks/python/lib/python3.8/site-packages/azure/core/pipeline/transport/_requests_basic.py in send(self, request, **kwargs)
    358
    359         if error:
--> 360             raise error
    361         if _is_rest(request):
    362             from azure.core.rest._requests_basic import RestRequestsTransportResponse

ServiceRequestError: <urllib3.connection.HTTPSConnection object at 0x7f4324b83040>: Failed to establish a new connection: [Errno -2] Name or service not known

The same exception is raised when I try to use create_file and get_file_system_access_policy
I'll try to provide any other details needed to solve this issue if necessary.
Thanks in advance

That definitely pointed me to the right direction -
I ended up using tcpdump on the web terminal to see what requests the client tries to make.
It was requesting "account.dfs.core.windows.net" and "privatelink.dfs.core.windows.net".
Turns out that the DNS configuration of the private endpoint I used to connect the Databricks service to the storage only had the "account.dfs.core.windows.net" as a visible domain name, so I added the second one as well and it solved the issue.
Initially I couldn't find the DNS requirements of the SDK but now when I know where to look I found this page that specifies that this address is used for private endpoint connections.
May I suggest creating a custom DNS exception for unresolved queries that will tell the user exactly what name could not be translated?
I am sure it will be easier to understand and fix this kind of issues with a clearer exception message.
Thank you for your time :)

Thanks for confirming @ttnn5876. I am actually surprised that you didn't get the endpoint information in the original error. That error comes directly from the underlying HTTP transport lib and I would have expected it to provide the endpoint and I think I remember seeing it before.
We can look into improving this error in the future. Thanks


Out of memory error

Hey there
I'm using your angular seed to compile an angular2 project for myself. Now, everything works fine, until I wanna use gulp serve. The watcher runs and after the first compilation, the second one crashes with an out of memory exception. I'm searching since 4 hours, but nothing does solve the problem :cry:
Any ideas?
Cheers
Chris

Node Version: v5.7.0
NPM Version: 3.6.0
Gulp CLI version: 0.4.0
Gulp Local version: 4.0.0-alpha.2
Typings version: 0.6.8

No worries - I'll see if I can reproduce it here.
What's your OS and IDE? Is the watcher triggered more than once when you save a .ts file?

OSX El Capitan 10.11.3
IDE is IntelliJ
Yea sometimes it is triggered twice. But the OOM error happens anyway :-) Even if the typescript task is called once.
The first time the compiler runs, it takes 17s, which is a long time :sweat_smile:
After that, the second run crashes with OOM:
[15:21:28] Starting 'default'...
[15:21:28] Starting 'develop'...
[15:21:28] Starting 'build'...
[15:21:28] Starting 'clean'...
[15:21:28] Finished 'clean' after 25 ms
[15:21:28] Starting '<parallel>'...
[15:21:28] Starting 'scss'...
[15:21:28] Starting 'typescript'...
[15:21:29] css all files 146.62 kB
[15:21:30] sass all files 4.44 kB
[15:21:31] Finished 'scss' after 2.87 s
src/shared/services/resource.service.ts(65,73): error TS2345: Argument of type '(x: number, ix: number) => R' is not assignable to parameter of type '(x: number, ix: number) => Observable<any>'.
  Type 'R' is not assignable to type 'Observable<any>'.
[15:21:47] TypeScript: 1 semantic error
[15:21:47] TypeScript: emit succeeded (with errors)
[15:21:47] typescript all files 96.43 kB
[15:21:47] Finished 'typescript' after 19 s
[15:21:47] Finished '<parallel>' after 19 s
[15:21:47] Starting 'assets'...
[15:21:47] fonts all files 215.72 kB
[15:21:47] libs all files 2.82 MB
[15:21:47] Finished 'assets' after 164 ms
[15:21:47] Starting 'index'...
[15:21:48] gulp-inject 22 files into index.html.
[15:21:48] Finished 'index' after 131 ms
[15:21:48] Starting 'typedoc'...
Rendering [========================================] 100%
[15:21:52] Finished 'typedoc' after 4.42 s
[15:21:52] Finished 'build' after 24 s
[15:21:52] Starting 'serve'...
[15:21:52] Starting 'watch'...

second run:
[15:23:31] Starting 'typescript'...

<--- Last few GCs --->

  244379 ms: Mark-sweep 1375.2 (1455.7) -> 1379.5 (1455.7) MB, 1249.9 / 0 ms [allocation failure] [GC in old space requested].
  245609 ms: Mark-sweep 1379.5 (1455.7) -> 1379.5 (1455.7) MB, 1230.6 / 0 ms [allocation failure] [GC in old space requested].
  246852 ms: Mark-sweep 1379.5 (1455.7) -> 1372.3 (1455.7) MB, 1242.6 / 0 ms [last resort gc].
  248122 ms: Mark-sweep 1372.3 (1455.7) -> 1374.7 (1455.7) MB, 1270.0 / 0 ms [last resort gc].

<--- JS stacktrace --->

==== JS stack trace =========================================

Security context: 0x1053d39e3ac1 <JS Object>
    2: objectTypeRelatedTo(aka objectTypeRelatedTo) [/Users/christoph/Documents/Development/hive-cms/frontend/node_modules/typescript/lib/typescript.js:19809] [pc=0x27aca5717e16] (this=0x1053d3904189 <undefined>,source=0x212f508eab9 <a TypeObject with map 0x109fbe2d7781>,originalSource=0x212f508eab9 <a TypeObject with map 0x109fbe2d7781>,target=0x5a42f067081 <a TypeObject with map 0x32d50bf2680...

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory
[1]    47511 abort      gulp

Stuff I did:

trying to add gulp-cached to reduce compilation time
Changed the output directory from build/ to ../backend/client

The rest is pretty much the seed with my code in it.
Cheers

Okay thanks - I'll have a look at it now.
Did the problem start after you implemented gulp-cached?

Thank you!
No the problem was even before

As a hint, I experienced a similar problem with webpack. The typescript compiler ran into an OOM aswell. Could that be a problem with the glob or so?

Can you confirm when you cloned the seed project? I couple of changes were made in the last few days - including changes to the watcher glob.

I cloned it today :-/
It seems, the problem only happens, when I use the watcher

I'm on OSX El Capitan 10.11.3 and my IDE is Atom - I don't think the IDE really matters in this case but the watcher here is always only triggered once.
Maybe it's something to do with Node? Perhaps try uninstalling Node and npm and installing it again.

BWT - I haven't been able to reproduce the issue here.

F*ck.
well.. I'll just try to use IntelliJ for compiling then. I don't find any solution :)
Thank you very much for investigating!

Did you find a solution though?

Yeah more or less, I compile the typescript stuff through IntelliJ now (for the dev-env). Let's see how this works :)

Hmmm okay - Gulp does more than just transpiling TS to JS. See gulp-typescript for more info: https://github.com/ghpabs/angular2-seed-project/blob/master/tasks/gulp-typescript.js

Yea, the sourcemaps can be generated by TSC and the inline ngtemplates are deactivated. But well, at least I can work

Cool!


chore: expose Claims is_within_time_window as pub

Motivation
Re-creating a Client when the claims are out of date is necessary if a custom transport using jwt will be used for more than 60 seconds. To do this, the transport could re-create only if the current claims are within the time window. However, this method is private, so no such custom transport can be created without pasting the existing methods and constants.
Solution
Expose is_within_time_window
PR Checklist

[ ] Added Tests
[ ] Added Documentation
[ ] Breaking changes

with_current_timestamp too?

with_current_timestamp too?

sure, just exposed that too


Dry run feature for all OSPO actions

Is your feature request related to a problem?
Sometimes I just want to run the tool/action without doing any harm. I'd like to be able to run in dry_run mode on any of the actions. I believe cleanowners is the only one that has it.
Related OSPO Tool
automatic-contrib-prs GitHub Action, contributors GitHub Action, internal-contribution-forks GitHub App, evergreen GitHub Action, issues-metrics GitHub Action, stale-repos GitHub Action
Describe the solution you'd like
See dry_run functionality in cleanowners action
Describe alternatives you've considered
No response
Additional context
No response

I think @lelia was also interested in this
Relates to #74 ; the configuration for dry-run vs action mode should be consistently configurable


Update documentation for updated client submodule.

The documentation needs updating due to the changes made to the client submodule.

Done with #221.


Not Supported 10.0.22610.1

termsrv.zip
Plz help me!

Duplicate of https://github.com/stascorp/rdpwrap/issues/1830


all local and parl elections assume England & Wales rules

Hello. Just having a nose about :)
https://github.com/mrwilson/sopn-publish-date/blob/22acf993919915eed1049d7e3983f807bf6da297/sopn_publish_date/__init__.py#L14-L15
Assumes that all local and parl elections use the England & Wales rules, but in reality  I think local.highland.wester-ross-strathpeffer-and-lochalsh.by.2018-12-06 should have a different SOPN date from local.surrey.the-byfleets.by.2018-12-06 (for example) even though they are both local.%.2018-12-06.
In a case where the country/territory isn't implicit in the election type, it would be useful if it were possible to pass that in as a param.

That's a great point. I'm trying to accumulate edge-cases like this as tests.
I'm thinking an API change like:
publish_date = sopn_publish_date(
  'local.highland.wester-ross-strathpeffer-and-lochalsh.by.2018-12-06',
  country='scotland'
)

Where country is default None.

I'm trying to accumulate edge-cases

You want edge cases.. I got edge cases :laughing:

I'm thinking an API change like...

Yep, so for the following election types, country is implicit:  gla, naw, nia, sp
and something like sopn_publish_date('sp.c.aberdeen-central.2016-05-05', country='england') would be complete nonsense.
Conversely, local, parl, pcc and in principle mayor are all non-country-specific so country should be required.
This makes the interface a bit clumsy because sometimes country is a required param, but sometimes it makes no sense to provide it. There is also the case where you have a group id like parl.2017-06-08 which includes ballots in multiple countries.
Given all that, would it make more sense for sopn_publish_date() to just take a date and a country, as opposed to an election id? Is the ID actually used for anything other than extracting the date?

Re: why election id, my first attempt was to actually pass in an election type and date (as datetime) but I thought a single-input API was cleaner if it contained the same information.
However, as determining country from election location is slightly out of scope for this project, taking a date and a country would be fine.
The important thing is utility.

From doing a bit of digging, it looks like it depends solely on country.

It's 23 working days in scotland (using the scottish public holiday calendar)
It's 19 working days in England/Wales (using E/W public holidays)
It's 19 working days in Northern Ireland (using NI public holidays)

Can you think of any other weird edge cases? pcc elections follow the rules for country too, at a glance.

Found one! gla is 23 days.
https://londonelects.org.uk/im-candidate/statutory-notices-and-elections-timetable

Right, this has been resolved with some api changes. Given
from sopn_publish_date import StatementPublishDate
from datetime import date

sopn_publish_date = StatementPublishDate()

sopn_publish_date.local requires a non-optional sopn_publish_date.calendars.Country parameter

Passing input of the form local.YYYY-MM-DD to sopn_publish_date.from_id will raise an AmbiguousElectionId exception.

sopn_publish_date.uk_parliament does not require a country (at the moment) because as far as I can see, modulo a handful of edge cases, the date is governed by a single piece of legislation, although maybe this is a function of historicdata not being tested across cross-country bank holiday edge-cases.

Passing input of the form parl.YYYY-MM-DD to sopn_publish_date.from_id will not raise an exception.

Nope, I couldn't resist the temptation.
sopn_publish_date.uk_parliament now takes an optional Country, with a default of Country.ENGLAND, with my reasoning explained in https://github.com/mrwilson/sopn-publish-date/commit/397dd2f9469ae9ee1548e93878151513e4b05091
tl;dr - governed by a single piece of legislation rather than for so a difference in SoPN publish date results only from the differing calendars of the countries, and the default value of Country.ENGLAND passes 100% of historic tests anyway.
Gonna close this down ahead of 1.0.0


ConnectionReset Error while downloading MNIST dataset

I have used the following code:
from sklearn.datasets import fetch_mldata mnist = fetch_mldata('MNIST original') mnist
Tried removing the mldata folder as suggested in other answers but it is not working for me:
Error is as follows:
ConnectionResetError                      Traceback (most recent call last)
<ipython-input-2-470941be7ce8> in <module>()
      1 from sklearn.datasets import fetch_mldata
----> 2 mnist = fetch_mldata('MNIST original')
      3 mnist

~/anaconda3/lib/python3.6/site-packages/sklearn/datasets/mldata.py in fetch_mldata(dataname, target_name, data_name, transpose_data, data_home)
    152         urlname = MLDATA_BASE_URL % quote(dataname)
    153         try:
--> 154             mldata_url = urlopen(urlname)
    155         except HTTPError as e:
    156             if e.code == 404:

~/anaconda3/lib/python3.6/urllib/request.py in urlopen(url, data, timeout, cafile, capath, cadefault, context)
    221     else:
    222         opener = _opener
--> 223     return opener.open(url, data, timeout)
    224
    225 def install_opener(opener):

~/anaconda3/lib/python3.6/urllib/request.py in open(self, fullurl, data, timeout)
    524             req = meth(req)
    525
--> 526         response = self._open(req, data)
    527
    528         # post-process response

~/anaconda3/lib/python3.6/urllib/request.py in _open(self, req, data)
    542         protocol = req.type
    543         result = self._call_chain(self.handle_open, protocol, protocol +
--> 544                                   '_open', req)
    545         if result:
    546             return result

~/anaconda3/lib/python3.6/urllib/request.py in _call_chain(self, chain, kind, meth_name, *args)
    502         for handler in handlers:
    503             func = getattr(handler, meth_name)
--> 504             result = func(*args)
    505             if result is not None:
    506                 return result

~/anaconda3/lib/python3.6/urllib/request.py in http_open(self, req)
   1344
   1345     def http_open(self, req):
-> 1346         return self.do_open(http.client.HTTPConnection, req)
   1347
   1348     http_request = AbstractHTTPHandler.do_request_

~/anaconda3/lib/python3.6/urllib/request.py in do_open(self, http_class, req, **http_conn_args)
   1319             except OSError as err: # timeout error
   1320                 raise URLError(err)
-> 1321             r = h.getresponse()
   1322         except:
   1323             h.close()

~/anaconda3/lib/python3.6/http/client.py in getresponse(self)
   1329         try:
   1330             try:
-> 1331                 response.begin()
   1332             except ConnectionError:
   1333                 self.close()

~/anaconda3/lib/python3.6/http/client.py in begin(self)
    295         # read until we get a non-100 response
    296         while True:
--> 297             version, status, reason = self._read_status()
    298             if status != CONTINUE:
    299                 break

~/anaconda3/lib/python3.6/http/client.py in _read_status(self)
    256
    257     def _read_status(self):
--> 258         line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
    259         if len(line) > _MAXLINE:
    260             raise LineTooLong("status line")

~/anaconda3/lib/python3.6/socket.py in readinto(self, b)
    584         while True:
    585             try:
--> 586                 return self._sock.recv_into(b)
    587             except timeout:
    588                 self._timeout_occurred = True

ConnectionResetError: [Errno 104] Connection reset by peer`

Any suggestion to fix this is much appreciated. Thank you!

Hi @dipikabaad ,
Could you please check out issue #143, I think it should fix your problem.
Hope this helps,
Aurélien

Hi @ageron ,
I used the other code mentioned in that issue #143 , that was working for me. I was looking to resolve this issue for the given commands. Anyways, thank you for your response.

Dipika


[feature request] replaygain support

Maybe I just haven't found it in documentation, but from what I see musikcube does not support replaygain at the moment?
Some basic info about replaygain: http://wiki.hydrogenaud.io/index.php?title=ReplayGain

Yeah, I'm working on getting this into the next release.

@carnager I think I have ReplayGain implemented to spec, but it's hard to tell because I don't actually use it regularly. Are you a Windows user, by chance? If so I can give you a pre-release build to test.


Preventing propagation with nested menus involving draggable elements...

Hello vkbansal!
Before explaining this, I just want to say thank you for building this awesome project! It has helped immensely with my current work. I was able to use this seamlessly with 'react-dnd'. I am not permitted to share the source of what I have been working on that helped me discover the following issue.
I have been working on a project (react v15.6.1) where I have draggable elements/boxes upon droppable grid cells where both the grid cells and the draggable elements have context menus attached. Everything worked perfectly, except for when I am using the holdToDisplay (this is happening both on mobile and desktop). For some reason, on desktop and mobile devices (like the iPad), whenever I click/touch & hold on one of the elements/boxes (on top of the grid cell), it will open up the menu of the grid cell instead of the menu of the nested element. In other words, the event propagates to the parent, which is what I don't want.
I understand that the nested menu example on your demo page is working. But in my case, using react-dnd and their html5/touch backends, it is not.
While I unfortunately do not have an example fiddle to show (since I don't have the time at the moment), I do have this pull request, adding 2 simple lines which I have confirmed (on both desktop and mobile) fixes my issue.
All tests passed. Let me know what you think...
Thanks,
AJ

Thanks, we had the same issue with an apparently very similar setup (also using react-dnd with html5 backend). The context menu still pops up while dragging an item (with context menu) though - at the item's original location - most of the time, unless dragging it away very quickly (way under the 1 second holdToDisplay).


GetPositionAsync always cancelling task

Originally submitted by @georgepiva on issue #6
Xamarin.Geolocation.Geolocator geolocator = new Xamarin.Geolocation.Geolocator (context);
geolocator.GetPositionAsync (timeout: 6000).ContinueWith (task => { // task.IsCanceled is always equal to true. });

I can see this happening on both Xamarin.Mobile component 0.6.3 and 0.7 versions. It also happens when downloading the master branch of this repository as a Zip file and importing it inside my project.
I have just tried to run the GeolocationSample project on a Samsung Galaxy S3 and got the same results:

My beta testers are also notifying me about this localization issue and they are using different devices from me.

Hi, is there any update on this issue? I'm getting the same exact error in a Xamarin Forms project on Windows Phone: I've created a wrapper class in the Windows Phone project that simply retrieves the user's position using Xamarin Mobile.
public async Task<Position> GetPositionAsync() {     Geolocator locator = new Geolocator();     if (locator.IsGeolocationAvailable && locator.IsGeolocationEnabled)     {         var position = await locator.GetPositionAsync(10);         return new Position {Latitude = position.Latitude, Longitude = position.Longitude};     }     return null; }
Then, by using the DependencyService, I retrieve the instance of my wrapper in the PCL shared project: however, whenever I launch the application on Windows Phone and I call the GetPositionAsync() method of the Geolocator class, I get a "TaskCanceledException - A task has been canceled".

https://gist.github.com/supreettare/0433e34f9fdf4d750bb2
This code fixes the TaskCancelledException on android. After rewriting the code this way, I never got the exception again.

@supreettare  Can you post the sample of your project? Even I am trying to create a Dependency service to access the co-ordinates to process without displaying the data on the UI

please @supreettare , can you post the same of your project? thanks


ServerErrorException not precise

Describe the bug
Hello sir, I'm using the "then, then, catch" implementation from SDK 2.3.0 for opening a session, creating a conference and joining it. Sometimes the catch fetch an error "-1" without any description or reason from ServerErrorException class .
Can it be more precise like for example an http code or something? It can help me a lot to display to my users why there was an error.
Thank you sir.
Expected Behaviour
Have a more precise error workflow, or just an http code can be enough.
Steps to Reproduce the Problem
For example, joining and leaving a conference very fast is the easiest way to reproduce an error.
Minimalistic code (recommended)
        VoxeetSDK.session().open(new ParticipantInfo(null, null, null))
                .then(new PromiseExec<Boolean, CreateConferenceResult>() {
                    @Override
                    public void onCall(@Nullable Boolean result, @NonNull Solver<CreateConferenceResult> solver) {
                        solver.resolve(VoxeetSDK.conference().create("test"));
                    }
                })
                .then(new PromiseExec<CreateConferenceResult, Conference>() {
                    @Override
                    public void onCall(@Nullable CreateConferenceResult result, @NonNull Solver<Conference> solver) {
                        // FIXME: THERE IS A WARNING HERE OF DEPRECIATION!!!
                        solver.resolve(VoxeetSDK.conference().join(result.conferenceId));
                    }
                })
                .then(new PromiseExec<Conference, Object>() {
                    @Override
                    public void onCall(@Nullable Conference result, @NonNull Solver<Object> solver) {
                           Log.d("talkApp", "SUCCESS");
                    }
                })
                .error(new ErrorPromise() {
                    @Override
                    public void onError(@NonNull Throwable e) {
                        // FIXME: SOME DIFFICULTY TO FETCH ERROR, SOMETIMES -1??
                        if (e instanceof ServerErrorException) {
                            ServerErrorException exception = (ServerErrorException) e;
                            ServerErrorMessage error = exception.error;

                            Log.d("talkApp", "ERROR => code: " + error.error_code + " description: " + error.error_description + " reason: " + error.error_reason);
                        }
                });

Specifications

Device: Simulator and Motorola
OS: Android Q and Androit 8
Platform: Android
Version:

[e.g. Android Sdk public-sdk 2.3.0]
[e.g. Android Sdk uxkit 2.1]

The -1 value is a generic error when no other information are available from either the server or http call
Using the ServerErrorException, you have the origin which tells you exactly which was the branch which failed

I understand what's the exception.origin does, that's very useful to know where the exception happened but there is a regression in our project due to this new exception, before that we used the HttpException to handle correctly the voxeet sdk, it was very useful for us. Everything was working fine :)
I tried to follow https://voxeet.com/documentation/sdk/release-notes/migration for java to bump my project to 2.3.0.
We just wanted to update this sdk to the latest version 2.3.0 without any regression if possible sir, thank you for your help.

This is not a regression, the HttpException is only being able to be consumed properly only one time and it gives information that are and must only be available internally from the SDK : Http exceptions can't be assumed from clients to be enough to give them state about the overall SDK's calls. Mking the use of the HttpException is not enough to catch the various SDK state anyway and removed from a direct access :
before that we used the HttpException to handle correctly the voxeet sdk
Does not give you the :

login state
socket state
current conference state known locally
local and remote users events
etc...

If you want to give any informative state for the user, you must use every information above.
For example, joining and leaving a conference very fast is the easiest way to reproduce an error.
This is actually the expected behaviour. In such case, leaving must be considered, anyway, in a terminal state : everything from the local SDK point of view is cleared and won't keep the mic, camera etc... for instance. The only possible side effect being for other users where the user "could" still see the left user being in negotiation or joining until the server times out the left user.
Joining a conference does not make the user completely inside the conference but the user could want to "cancel" (for instance) the call - hence the leaving method must be still available anytime.

Understood sir, I may need to  update the HttpException part with my team for the new one...
Since which sdk version the new exception  ServerErrorException has been  introduced? We can't find it on https://voxeet.com/documentation/sdk/release-notes/changelog
But are we agree to say that it's not common  to have a ServerErrorException with error_code = -1 a null error_description and a null error_reason? It's maybe too generic...  We already have an issue on an other project, it was because the http response  contains nothing (no http body), if this can help you maybe...
Maybe if the http body contains nothing you can  set the error.error_code to the http code response? It can really help!

We could see if it can be interesting to bring such information for future releases but again. Those information are only a subset of everything that the SDK is already giving. hence using only the http part of the exception can't be as precise as everything provided by the SDK
See the getters and events from :

ConferenceService
SessionService

Thank you very much for  your consideration sir.
As an example we were explaining  that you can reproduce it by joining / leaving a conference very fast but in real life we experienced  some server down time on Apr 2 2020.
With your previous implementation, it was very  easy to fetch what was wrong. With the 2.3.0 implementation we can't for example say "hum something is wrong with our voip provider, servers are down, please come back later" we only know that "-1" error_code happened but we will not be sure anymore  if it's a  down time server issue or if it's just an error on a VoxeetSdk method... (I need to ask my team but I think we had some error 500 on april 2 2020)
If our usage can help voxeet to improve  the ServerErrorException to maybe have an other object for example "exception.http_error"  we are glad that our workflow help!
Also  sir can you provide us more detail about our previous question please: "Since which sdk version the new exception ServerErrorException has been introduced? We can't find it on https://voxeet.com/documentation/sdk/release-notes/changelog"

You won't find it in the changelog and it's been introduced for at least the 2.0.4X+
hum something is wrong with our voip provider, servers are down, please come back later
The -1 is a generic error indicating the server is not sending any specific information or the request could not go through.
Again check the SDK state using the various getters and events, those are more reliable, stable and clear. What you want to do using it can't and won't deal with every cases.
For instance, error 500 can happen for various reasons even with server in a proper state : reauthentication needed but one of the call could not go through, with your logic where you assume a 500 means voxeet's error, you can't deal with such state. So even with prior SDKs, you couldn't say it either.

Thank you sir for your help we figured out how to manage the new exception within our app.
We replaced our old error management with a generic one when the voxeet sdk throw:
error_code = -1, error_description = null, error_reason = null
If some improvements are made on this generic error, ping us here thank you.


add unit tests for glopalpay Connector

Feature Description
As part of adding unit tests to existing connectors we are adding test for globalpay
Possible Implementation
add a test file for globalpay connector in the crates/router/tests folder
Have you spent some time to check if this feature request has been raised before?

[X] I checked and didn't find similar issue

Have you read the Contributing Guidelines?

[X] I have read the Contributing Guidelines

Are you willing to submit a PR?
Yes I am willing to submit a PR!

Closing in favour of #471


find in markdown doesn't highlight data correctly when there are code blocks

Azure Data Studio Version:

Steps to Reproduce:

@MaddyDev can you still repro this behavior? Just tried it myself and it seems to work fine for me.

@MaddyDev can you still repro this behavior? Just tried it myself and it seems to work fine for me.

Closing this since am not able to repro it.

Closing this since am not able to repro it.


add PKCE support to OAuth2 flow

There was a TODO line for implementing Authorization Code flow with PKCE on security definition.

Did you test it?

Did you test it?

Yes I did, but not with SwaggerUI. There are a few problems, I'll handle.

Sorry for miss-implementing, could you review again? @davidfowl


Added 'cadence' chart in incubator

What this PR does / why we need it:
This is a chart for cadence.  Cadence is a distributed, scalable, durable, and highly available orchestration engine to execute asynchronous long-running business logic in a scalable and resilient way.

[x] DCO signed
[x] Variables are documented in the README.md

/assign @scottrigby

/assign @mattfarina

Hi Lachlan,
Could you please check this chart?
Thanks,
Feri
/assign @lachie83

@ahma This appears to be the same chart I can already get at https://hub.helm.sh/charts/banzaicloud-stable/cadence. Is there a reason to have it in both places? Note, our goal is to deprecate the stable charts repo and I am working on integrating the helm search commands into the Helm Hub for Helm v3.

Hi @mattfarina,
okay thanks, depending on that I'm closing this pr.
Feri


djoin does not fail when including None

When including some modules from __init__.py, djoin fails:
/usr/lib/python3/dist-packages/requests/__init__.py:89: RequestsDependencyWarning: urllib3 (1.26.6) or chardet (3.0.4) doesn't match a supported version!
  warnings.warn("urllib3 ({}) or chardet ({}) doesn't match a supported "
Traceback (most recent call last):
  File "/usr/local/bin/code2flow", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.8/dist-packages/code2flow/engine.py", line 630, in main
    code2flow(
  File "/usr/local/lib/python3.8/dist-packages/code2flow/engine.py", line 536, in code2flow
    file_groups, all_nodes, edges = map_it(sources, language, no_trimming,
  File "/usr/local/lib/python3.8/dist-packages/code2flow/engine.py", line 324, in map_it
    file_group = make_file_group(file_ast_tree, source, extension)
  File "/usr/local/lib/python3.8/dist-packages/code2flow/engine.py", line 208, in make_file_group
    file_group.add_node(language.make_root_node(body_trees, parent=file_group), is_root=True)
  File "/usr/local/lib/python3.8/dist-packages/code2flow/python.py", line 229, in make_root_node
    variables = make_local_variables(lines, parent)
  File "/usr/local/lib/python3.8/dist-packages/code2flow/python.py", line 122, in make_local_variables
    variables += process_import(element)
  File "/usr/local/lib/python3.8/dist-packages/code2flow/python.py", line 99, in process_import
    rhs = djoin(element.module, rhs)
  File "/usr/local/lib/python3.8/dist-packages/code2flow/model.py", line 54, in djoin
    return '.'.join(tup)
TypeError: sequence item 0: expected str instance, NoneType found

tup looks like this:
('inputs', 'X')
(None, 'X')

This filters out the None.

Alternatively, could you try installing the newest release, 2.3.1, and let me know if the bug is still present? I actually believe that the deeper-level fix might be in there.

Thanks for the prompt answer, the 2.3.1 worked, I will close this PR


Stop loading icons when the conflict dialog is closed

Resolved / Related Issues
Items resolved / related issues by this PR.

Fixes an issue for which UI can be unresponsive after canceling the conflicts dialog due to loading of icons not being stopped

Details of Changes
Add details of changes here.

Stop icon loading when conflicts dialog is being closed
Use ParallelForEach to throttle the number of icons being loaded concurrently

Validation
How did you test these changes?

[x] Built and ran the app

/azp run

nvm, sorry

/azp run

@gave92 can you resolved the merge conflicts?


Group name not filled in automatically

When using nidmfsl without the -g option, the group name is currently not filled in automatically:
itadmins-MacBook-Pro:LEVEL2 maullz$ nidmfsl group_deweight_outliers.gfeat/ 16
Exporting NIDM results from /Users/maullz/Desktop/SOFTWARE_COMPARISON_DATA/RESULTS/ds001/FSL/LEVEL2/group_deweight_outliers.gfeat
Traceback (most recent call last):
  File "/usr/local/bin/nidmfsl", line 51, in <module>
    num_subjects=num_subjects, group_names=args.group_names)
  File "/usr/local/lib/python2.7/site-packages/nidmfsl/fsl_exporter/fsl_exporter.py", line 80, in __init__
    self.groups = zip(self.num_subjects, group_names)
TypeError: zip argument #2 must support iteration

Fixed in https://github.com/incf-nidash/nidmresults-fsl/pull/93. The command line won't accept missing group names.


Add full API definition for lua-nginx-module

This is based on the v 0.10.10 API. For clarity the API definition
has been moved to a separate file.

Thanks, I'll look through this more closely this week and then merge.
Do you know how often are these fields removed in new lua-nginx versions? If only new fields are added, then this new standard remains the superset of all fields in all versions and all is good, but if in some version there were more fields, code against that version will have false positives when checked with this standard.

The updates are usually very conservative, from what I can remember since a few years there were very few breaking changes, and none of them removed functions or constants. So I don't think there is any problem on this side.
The only issue that I can see is that we will have to update the API definition whenever new functions will be added in future versions.

Some comments after looking through API docs in https://github.com/openresty/lua-nginx-module

ngx.socket.stream and ngx.worker.exiting appear to be missing in the luacheck definition.
There are modules like ngx.semaphore that have local semaphore = require "ngx.semaphore" as usage example, but does requiring such a module result in it being available as a field of global ngx as well?
Some string constants (all in ngx.config fields) need to be defined as def_fields("byte", "char", "dump", "find", "format", "gmatch",  "gsub", "len", "lower", "match", "rep", "reverse", "sub", "upper") to allow using string methods on them directly, see string_defs table in builtin_standards.lua.

ngx.socket.stream and ngx.worker.exiting appear to be missing in the luacheck definition.

Thanks for pointing this out, I somehow missed these two. Pushed this as a separate commit.

There are modules like ngx.semaphore that have local semaphore = require "ngx.semaphore" as usage example, but does requiring such a module result in it being available as a field of global ngx as well?

No, they are regular Lua module, and don't have any global side effect.

Some string constants (all in ngx.config fields) need to be defined as def_fields("byte", "char", "dump", "find", "format", "gmatch", "gsub", "len", "lower", "match", "rep", "reverse", "sub", "upper") to allow using string methods on them directly, see string_defs table in builtin_standards.lua.

Actually only ngx.config.subsystem is a string: debug is a boolean, prefix and nginx_configure are functions, the versions numbers are integers.
Do you think it would make sense to put some helper functions in a separate module? The def_fields function is already duplicated 3 times, and defining string fields seems like something that other standards might want to do.

Do you think it would make sense to put some helper functions in a separate module? The def_fields function is already duplicated 3 times, and defining string fields seems like something that other standards might want to do.

Yes, I'll do that.
Merging, new version will be released this week. Thanks!

Great, thanks a lot!


Abnormally and spike events - Detect the abnormality in the system, given spontaneous data.

@skim0119 Here's my approach that I'd like to check with you before I go deeper into this:

Generate PCA cutouts for spontaneous recording
For each component, have the user label spontaneous spikes into ['neuronal', 'false', 'mixed']

User isn't required to do label components for every single channel
We can possibly make algorithms to suggest the user which channel to consider labeling

Train the model
For the experimental recordings:

Catch the channels with higher uncertainties. These may indicate some new spike shape.
(Possibly) Filter out channels with same ratio of neuronal to false spikes as spontaneous
Generate new spiketrains with the false spikes removed

@jihugo Sounds reasonable to me! 👍


Code pointer for potential fix https://github.com/Microsoft/vscode/blob/28c7d9976fa6abe7f080259cf6dd19da3b78b761/src/vs/workbench/browser/layout.ts#L556


feat: bump go to v1.20.10

Problem:
We used go 1.18, which is EOL in 2023/02.
Solution:
Bump golang to v1.20.10.
Related Issue:
https://github.com/harvester/security/issues/38

Should we change this line https://github.com/harvester/harvester-installer/blob/master/Dockerfile.dapper#L21 for go1.20?

@mergifyio backport v1.2

@Mergifyio backport v1.1


Auto Mode, and Cooler only device

Nice and great plugin!

Is it possible to have Auto Mode (not Auto Fan) exposed? Mine window-type AC has Nanoe-X standalone mode (guess it is “equivalent” to fan mode). But it does have an Auto Mode (not so sure what it is but I guess it is auto between Cool and Dry).

Is it possible to configure cooler only? The HomeKit UI (circular/rotational dial) is not user friendly in my case of cooler only.

In HomeKit UI, only can see Off/Heat/Cool/Auto, can it be customized to reflect Off/Cool/Dry/Nanoe-X to be closely resembling the unit?

Thanks a lot!

@panda-ng

Auto mode is between Cool and Heat.

You can add switch to enable Cool Mode. Go to plugin config.

No, we cannot customize it. You can add additional switches etc.

In version 4.4.0 I added a switch to Auto mode.


Jenkins unavailable

The latest build for https://github.com/Homebrew/homebrew-devel-only/pull/20 is unavailable. When I click on the link (http://bot.brew.sh/job/Homebrew Devel-Only Pull Requests/56/) it times out. Is there something awry with the Jenkins build infrastructure for Homebrew?

Was caused by a hardware issue.

Yeah, sorry, we lost our CI for the day. It's backtracking through the day's PRs in various taps now.


Update variables.tf to allow a availability_zone_count of 1

what

Update variables.tf to allow a availability_zone_count of 1

why

This helps reduce costs for small test clusters.

references

closes #158

/test

/test all

terratest

/terratest

@goruha Hello there! I noticed that you have an issue assigned to you. Is there anything I can do to support you in resolving it? Please let me know if there's anything I can do to help.

@jamengual @woz5999 Anything I can do to support you with this request?

could you please update the pr(pull from.main) and run make precommit/terraform

could you please update the pr(pull from.main) and run make precommit/terraform

And now? 😄

This project is obviously no longer maintained

@ManuelMueller1st what do you mean by that? If you get this into a working + passing state, ping me and I will review. We are mostly volunteer maintainers, so try to set expectations around that and there are 200+ modules that we get emails about.


Users can deploy to container registry

assuming it's from CLI

@bradygaster is this issue the same as the container packaging of the dashboard scenario?


chore: bump manifest version v1.18.1

Checklist

[ ] JIRA - <link>
[ ] Proper tests implemented
[ ] Screenshots added.

Proposed solution
Explain how does this PR solves the problem stated in JIRA ticket.
You can also enumerate different alternatives considered while approaching this task.
Testing
Describe here, how the new implementation can be tested.
Provide link or briefly describe User Acceptance Criteria/Tests that need to be met
Screenshots
Attach screenshots here if implementation involves some UI changes

Allure Report
allure-report-publisher generated test report!

processReports: ❌ test report for ff4f96a6

passed
failed
skipped
flaky
total
result

Total
27
6
4
0
37
❌


[BUG] Ass considers an ID as valid, and crashes when it tries to load the corresponding file since it does not exist

Is there an existing Issue for this bug?

[X] I have searched the existing issues

Expected behavior
This unhandled error should be handled to avoid ass crashing and making the instance reboot.

Steps to reproduce
I don't exactly know how the bug occured, but this specific URL seems to throw an unhandled error (see logs).

My guess is that at some point in November (see logs), an upload failed, and ass considers the ID passed in the URL as valid, and when it tries to upload the file corresponding to this ID, it fails, because the file does not exist (I checked just to make sure and yes, the file f8f0d045205bf5dd7cc9abdaf6ec4b2cfdd66e31 does not exist in the given path.
To begin with, it may be a good idea to handle this error in case the file does not exist (or no longer exists), as it may occur if you mistakenly delete the files in the uploads folder, and may therefore cause some trouble (an instance that restarts in a loop if many requests are made to previously existing IDs).
Then, maybe double check the upload process, in order to remove from the database an upload that did not finish correctly and did not create a file.

So the problem is solved, but it could happen again in the future.
So either there was an error during the upload, but ass still considered the upload valid and complete and therefore wrote the upload to the data.json file, and was therefore trying to serve a file that didn't exist, or there was an error during a deletion, which caused the file to be deleted, but not the file entry to be deleted from the data.json file.

Just to confirm your Issue, you're using Node 12 with Docker?? My Docker files specifically specify Node 14. If you're not using Docker, then you need to use Node 14 for ass (mentioned in the README for local installation method)

an upload failed, and ass considers the ID passed in the URL as valid, and when it tries to upload the file corresponding to this ID

I'm not sure what you mean by this. The upload process saves the file to disk/wherever first, then generates the ID after. If the file save failed, the upload is reject()'d by Promise and nothing will get saved.

it may occur if you mistakenly delete the files in the uploads folder

My main reply to this is simply that hosts should not be touching the uploads folder (I know it's not a great solution but you can delete using the ShareX program by right-clicking an image -> Open -> Deletion URL).
With that said, this definitely should not crash and I will look into this.

in order to remove from the database an upload that did not finish correctly and did not create a file.

I get the idea but because of my prior notes this wouldn't apply.

or there was an error during a deletion, which caused the file to be deleted, but not the file entry to be deleted from the data.json file

Based on the Issue and how ass operates internally I think this must be what happened, though I'm not sure what would have caused it to fail.


[SPARK-13982][SparkR] KMean's predict: Features output column name is an unclear, automatically genetared text

What changes were proposed in this pull request?
In KMean's predict the output column name of the features was set to something like this: "vecAssembler_522ba59ea239__output", which is the default output column name of the "VectorAssembler".
I set a value "features" which is more intuitive and human readable
Before fix:
predict(model, training)
DataFrame[Sepal_Length:double, Sepal_Width:double, Petal_Length:double, Petal_Width:double,    vecAssembler_522ba59ea239__output: vector, prediction:int]
After fix:
DataFrame[Sepal_Length:double, Sepal_Width:double, Petal_Length:double, Petal_Width:double,    features:vector, prediction:int]
How was this patch tested?
All previous test cases pass!

Test build #53464 has started for PR 11793 at commit 48061de.

Test build #53464 has finished for PR 11793 at commit 48061de.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/53464/
Test PASSed.

Merged build finished. Test PASSed.

Test build #54142 has started for PR 11793 at commit 7900fcf.

Test build #54142 has finished for PR 11793 at commit 7900fcf.

This patch fails R style tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/54142/
Test FAILed.

Test build #54145 has started for PR 11793 at commit 4101787.

Test build #54145 has finished for PR 11793 at commit 4101787.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/54145/
Test PASSed.

Merged build finished. Test PASSed.

@yanboliang, would you ,please, take a look at this ?

@NarineK This looks good to me. But I think we should wait the discussion of SPARK-14147, I vote that it should not output feature column in SparkR.

It looks like [https://github.com/apache/spark/pull/12039] solved this.  Can you please verify and close this PR if so?  Thanks!

thanks, will close this.


Gradient toggle in unknown state

Govee Device SKU
H618F - H618A
Govee2MQTT Version
2024.01.11-6a00caa3
Describe the issue
Hi,
the entity that handles the gradient is in unknown state. I am experiencing this problem with both H618F and H618A.
Attached are the logs (on Pastebin) of the addon and MQTT Info of the device
Startup Diagnostics
https://pastebin.com/M3qis1kH
Additional Logs
https://pastebin.com/3DRpcUWx
Home Assistant Logs
No response
Anything else?
No response

This gradient toggle button is present in the platform API for every device, but Govee doesn't return any state for it, so we can't report any state either.


#833 Deprecate explicit preconditions for component pre- and post processors

Description
Component processors often require a component to match specific preconditions, which are checked before the processor proceeds to act on the component. Currently this is implemented using separate methods for preconditions and processing. However, it is becoming increasingly common to see the processing implementation to require context that was previously also obtained in the preconditions step. This not only causes duplication, but also risks performance overhead when the context lookup is not optimized.
These changes remove the #preconditions methods from high-level component processor interfaces. More specific implementations may keep this when filtering e.g. specific methods to proxy.
Fixes #833
Type of change

[x] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[x] Refactor (code changes that do not affect the behavior of the code)

How Has This Been Tested?

[x] Unit testing

Checklist:

[x] I have performed a self-review of my own code
[x] I have added tests that prove it is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[x] Related issue number is linked in pull request title

Dependency check risk accepted. Caused by transitive dependency on org.apache.commons:commons-text:1.10.0 through  plume-util:options in Checker Framework. As we only use the compile time plugin, and do not redistribute any of these dependencies this can safely be skipped until CF is able to resolve this.


Change command usage throughout docs and code to new style

This is a follow-up after #990.
There are many places in the code and in docs that should be updated to reflect the new commands. It's not blocking #990 since all the old commands still work.

@cdoern @kelbrown20 are either of you interested in picking this up?

I can work on this, I have a CLI ref already made as well with the new design.


NET Core support

Hello.
Is there any chance of supporting .NET Core?

We are dependent on IKVM for core support. Which doesn’t look good.
On Thu, Aug 17, 2017 at 8:15 AM ElVisPL<EMAIL_ADDRESS>wrote:

Hello.
Is there any chance of supporting .NET Core?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/KevM/tikaondotnet/issues/106, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAAGHUTlnrAXI-cdnHSH5QUgDDixJmBVks5sZDz3gaJpZM4O6PyA
.

Has there been any updates on supporting .NET core? I am working on some research software and was pretty stoked to find your library. If it is not core compatible I will need to find another solution!

There has been some talk about how close some ikvm replacements are
getting. Others likely know more.
On Sun, Dec 15, 2019 at 3:51 PM isaiahfisher<EMAIL_ADDRESS>wrote:

Has there been any updates on supporting .NET core? I am working on some
research software and was pretty stoked to find your library. If it is not
core compatible I will need to find another solution!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/KevM/tikaondotnet/issues/106?email_source=notifications&email_token=AAAAMHMYCEHWTKHQWA4KP5DQY2RGBA5CNFSM4DXI7SAKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEG5DDII#issuecomment-565850529,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAAMHPUKUTUDRDZDNVRUFDQY2RGBANCNFSM4DXI7SAA
.

--

KevM http://about.me/kevm/

Has the support for dot net core been added yet?

No
On Thu, Nov 19, 2020 at 11:05 PM Shivji Bhagat<EMAIL_ADDRESS>wrote:

Has the support for dot net core been added yet?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/KevM/tikaondotnet/issues/106#issuecomment-730852974,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAAMHMX7XNJCNBVBEP5W5LSQX2LFANCNFSM4DXI7SAA
.

--

KevM http://about.me/kevm/

This is being worked on now in #152


:pchat Bug

Version channel
Stable (Default)
Loader version
No response
What part of Adonis is this related to?
Command
What happened?
So, i was just chatting with my friends via :pchat and then once it hits 4 messages, the messages starts to glitch like this

You can't even read history anymore

Steps to reproduce

Get someone to :pchat on you, or execute the command
Chat until it hits 4 messages
It starts to glitch

Device
Windows
Relevant log output
No response

#1809 fixes


METRON-1564: Full dev kafka has offsets.topic.replication.factor set to 3 instead of 1

Contributor Comments
Adds settings offsets.topic.replication.factor to 1 in single_node_vm.yml
To test, spin up full dev. Go into Ambari -> Kafka -> Configs. Search for offsets.topic.replication.factor. Ensure it is set to one.  Ensure data still flows through to indexing (either by querying REST API or hitting Alerts UI).
Pull Request Checklist
Thank you for submitting a contribution to Apache Metron.
Please refer to our Development Guidelines for the complete guide to follow for contributions.
Please refer also to our Build Verification Guidelines for complete smoke testing guides.
In order to streamline the review of the contribution we ask you follow these guidelines and ask you to double check the following:
For all changes:

[x] Is there a JIRA ticket associated with this PR? If not one needs to be created at Metron Jira.
[x] Does your PR title start with METRON-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.
[x] Has your PR been rebased against the latest commit within the target branch (typically master)?

For code changes:

[x] Have you included steps to reproduce the behavior or problem that is being changed or addressed?
[x] Have you included steps or a guide to how the change may be verified and tested manually?
[x] Have you ensured that the full suite of tests and checks have been executed in the root metron folder via:mvn -q clean integration-test install && dev-utilities/build-utils/verify_licenses.sh

[x] Have you verified the basic functionality of the build by building and running locally with Vagrant full-dev environment or the equivalent?

Note:
Please ensure that once the PR is submitted, you check travis-ci for build issues and submit an update to your PR as soon as possible.
It is also recommended that travis-ci is set up for your personal repository such that your branches are built there before submitting a pull request.

I resolved this, but realized I should add onto Mike's comment for anyone else who looks back at this.
The Ambari tooltip just documents the Kafka behavior, rather than being an indication of something Ambari handles.  The latest Ambari tooltip doesn't reference the min behavior anymore, because it no longer occurs.


Add PHPStan at level 6

Goal
PHPStan is a static analyser for PHP that can catch a bunch of potential bugs in code
This PR is based on https://github.com/bugsnag/bugsnag-php/pull/633, but runs at level 6 instead of max — PHPStan has 9 error levels (currently) that go from loosest (1) - strictest (9)
For the most part this is only changes to comments, but there are a couple of code changes too:

methods that can return null need an explicit return null statement — a bare return or no return at all are both errors
passing an int to ini_set and passing null to preg_match are flagged as errors, so these have been fixed

Additionally, some errors have been ignored:

some of our Guzzle compatibility code errors because we check for methods that don't exist on new versions. We'll need to run PHPStan against multiple versions of Guzzle to fully check these (this will be done in a future PR)
some code exists for PHP 5 compatibility, but PHPStan doesn't run on PHP <7.1 so this errors as well. When we drop PHP 5 support we can also remove this compatibility code, which will solve these errors
we use new static(...) in a few places, which is unsafe as there's guarantee that child classes will share the same constructor signature (see this article). We can't fix this without a potential BC break, so have to ignore this for now

Design
This PR stops at level 6 because this is where the levels become tricky to update to. Level 6 specifically adds checking for iterable types, e.g. a bare array should really be array<KeyType, ValueType>. I've turned this option off for now as we get around 100 errors from it, but this will be turned on in a future PR. Until then, I've not advanced any further as additional errors can appear as a consequence of adding stricter iterable types
Testing
PHPStan now runs on CI on both PHP 7.1 & 8.1

FYI, once PHP5 support is dropped, types can be added to function arguments


How to add the pinned tab feature?

What is your request / issue?
I want to add the minimal pinned tab feature to the current theme I use (minimal). How do I do that?
I use a lot of pinned tabs and was looking around for a long time for it. Funny how by chance I found it and it's not advertised in the theme features,
Describe the solution you'd like
Maybe a cssclass? I don't much about it
Describe alternatives you've considered
I've asked on Reddit, a guy sent a code to add to a cssclass file but it didn't work
This is the snippet:
.workspace-tab-header:has(.mod-pinned) {
width: 0;
}
Additional context
[The feature]

Hi @connradolisboa,
Try the following in a CSS snippet:
.workspace .mod-root .workspace-tab-header[data-type="markdown"]:has(.mod-pinned) .workspace-tab-header-inner-icon,
.workspace .mod-root .workspace-tab-header[data-type="empty"]:has(.mod-pinned) .workspace-tab-header-inner-icon {
    display: flex;
}

.workspace-tab-header:has(.mod-pinned) .workspace-tab-header-inner-title {
    display: none;
}

.workspace .mod-root .workspace-tab-header:has(.mod-pinned),
.workspace-tab-header:has(.mod-pinned) .workspace-tab-header-inner {
    flex: unset;
    width: fit-content;
    min-width: unset;
}

I had a quick look with Minimal and it seems to work fine.

It worked. Thanks! Amazing feature you included


Fix: Add packages to img instead of commit

Goes together with https://github.com/RedHatInsights/edge-frontend/pull/179
Missing IQE tests fix, will mark as ready for review when this is done to avoid merging. Please give me reviews beforehand (while on draft) so I can update the code.

Speaking with Tomer, it makes more sense to merge the changes on the API and then regenerate the client.


add new FlyWire cell types

should be maintained as an import for now
also update hemibrain neuron descriptions where these have data in FlyWire

mostly done in #1773
still todo:

synonyms and renames where HB types were renamed
parse systematic names (e.g. cLP01) to make nicer term labels


add error/warning when there are trailing bytes in the encapsulated packet

test with https://github.com/NiclasOlofsson/MiNET/blob/master/src/MiNET/MiNET/Net/MCPE Protocol.xml#L174 which is apparently actually 3 bytes (according to yawkat)

PartialReadError is now thrown from ProtoDef


[Contribution] Build Container to compile

Hello,
I am creating a script to allow build hyprland plugins, allowing the users to have a clean host.
With hyprgrass, I successfully compile the plugins, but like a person that never use meson or ninja, don't know which folder/file need to be under $HOME/.config/hyprpm/hyprgrass folder, from the output of ninja -C build:

not sure what you meant, build/src/hyprgrass.so is the plugin, without hyprpm you would put this in hyprland.conf:
plugin = /path/to/hyprgrass.so

I have no idea how hyprpm works so I can't help you with that

not sure what you meant, build/src/hyprgrass.so is the plugin, without hyprpm you would put this in hyprland.conf:
plugin = /path/to/hyprgrass.so

I have no idea how hyprpm works so I can't help you with that

Thank you, I will look into that.

closing since this is not directly related to hyprgrass issues (bug/feature request). If you have more questions please use https://github.com/horriblename/hyprgrass/discussions instead


(RFC) Enable user setup of http2 e2e on cloud run module

https://cloud.google.com/run/docs/configuring/http2
We need users to be able to enable h2c.
RFC for cleanest way to do this.
https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/cloud_run_service#nested_ports
We could just accept the name parameter, and leave the other two to their default values. Or we could accept name and port separately.

Technically hte name is an enum with only two valid values, is there a terraform analogue we could use to help users?

This is where authoring modules becomes difficult. You need provide a way for the user to add the entire ports block or provide an opinionated way to configure http2.
My opinion, provide the opinionated way. Exposing to much flexibility (which can be nice), can also become overbearing and require more maintenance.
Create 2 input variables:

port: number, defaults to 8080
enable_http2: boolean, defaults to false

Then you can always create the ports block with:

container_port always having a value, user provided or default of 8080
protocol defaulted to TCP, as it cant be anything else right now
name defaulted to http1 unless enable_http2 = true then set it to h2c.

We usually default our containers to port 8080, so the happy path is they provide nothing, but if they need http2, set enable_http2 = true and it just works for them.


Sample do not work

Original report by Edu C R (Bitbucket: edurochaN, ).

Hi everyone, I downloaded the source code, opened the file fauxmoESP.ino, has compiled successfully, but my Alexa APP do not found the device.
I'm using ESP32, board Node32s, FauxmoESP 3.1.1. Someone has the same problem?

A common problem is with an older version of th eAsyncTCP library - be sure that is up to date and test.
If you get the same issue, in your code please set:
#define DEBUG_FAUXMO                Serial
then post the output and your code.

Looks like several issues have been raised with the same problem.  Look at #120 ESP 8266 not found.