Shows CP instead if IV when releasing pokemons

Expected Behavior

It will output the right message, specially after the based on rule:, when releasing pokemons
eg.
[2016-09-12 16:01:14] [TransferPokemon] [INFO] *Releasing Zubat* CP: 385, IV: 0.44 | based on rule: CP < 725 AND IV < 0.8

Actual Behavior

It instead put the CP and not the IV on the filter.
eg.
[2016-09-12 16:01:14] [TransferPokemon] [INFO] *Releasing Zubat* CP: 385, IV: 0.44 | based on rule: CP < 725 AND IV < 725

Your FULL config.json (remove your username, password, gmapkey and any other private info)

http://pastebin.com/KqZxkKr6
Output when issue occurred

[2016-09-12 15:59:11] [TransferPokemon] [INFO] *Releasing Bulbasaur* CP: 122, IV: 0.22 | based on rule: CP < 874 AND IV < 874
[2016-09-12 15:59:12] [TransferPokemon] [INFO] *Bulbasaur Released* You now have 209 Bulbasaur candies
[2016-09-12 15:59:15] [TransferPokemon] [INFO] *Releasing Ivysaur* CP: 108, IV: 0.53 | based on rule: CP < 1071 AND IV < 1071
[2016-09-12 15:59:15] [TransferPokemon] [INFO] *Ivysaur Released* You now have 210 Ivysaur candies
[2016-09-12 15:59:19] [TransferPokemon] [INFO] *Releasing Charmander* CP: 11, IV: 0.38 | based on rule: CP < 833 AND IV < 833
[2016-09-12 15:59:20] [TransferPokemon] [INFO] *Charmander Released* You now have 19 Charmander candies
[2016-09-12 15:59:25] [TransferPokemon] [INFO] *Releasing Squirtle* CP: 168, IV: 0.47 | based on rule: CP < 852 AND IV < 852
[2016-09-12 15:59:25] [TransferPokemon] [INFO] *Squirtle Released* You now have 176 Squirtle candies
[2016-09-12 15:59:29] [TransferPokemon] [INFO] *Releasing Squirtle* CP: 11, IV: 0.27 | based on rule: CP < 852 AND IV < 852
[2016-09-12 15:59:30] [TransferPokemon] [INFO] *Squirtle Released* You now have 177 Squirtle candies
[2016-09-12 15:59:33] [TransferPokemon] [INFO] *Releasing Ekans* CP: 429, IV: 0.42 | based on rule: CP < 788 AND IV < 788
[2016-09-12 15:59:33] [TransferPokemon] [INFO] *Ekans Released* You now have 315 Ekans candies
[2016-09-12 15:59:37] [TransferPokemon] [INFO] *Releasing Ekans* CP: 381, IV: 0.64 | based on rule: CP < 788 AND IV < 788
[2016-09-12 15:59:37] [TransferPokemon] [INFO] *Ekans Released* You now have 316 Ekans candies
[2016-09-12 15:59:42] [TransferPokemon] [INFO] *Releasing Ekans* CP: 163, IV: 0.6 | based on rule: CP < 788 AND IV < 788
[2016-09-12 15:59:42] [TransferPokemon] [INFO] *Ekans Released* You now have 317 Ekans candies
[2016-09-12 15:59:46] [TransferPokemon] [INFO] *Releasing Ekans* CP: 112, IV: 0.36 | based on rule: CP < 788 AND IV < 788
[2016-09-12 15:59:47] [TransferPokemon] [INFO] *Ekans Released* You now have 318 Ekans candies
[2016-09-12 15:59:51] [TransferPokemon] [INFO] *Releasing Pikachu* CP: 148, IV: 0.38 | based on rule: CP < 809 AND IV < 809
[2016-09-12 15:59:51] [TransferPokemon] [INFO] *Pikachu Released* You now have 47 Pikachu candies
[2016-09-12 15:59:56] [TransferPokemon] [INFO] *Releasing Sandshrew* CP: 331, IV: 0.49 | based on rule: CP < 778 AND IV < 778
[2016-09-12 15:59:57] [TransferPokemon] [INFO] *Sandshrew Released* You now have 108 Sandshrew candies
[2016-09-12 16:00:02] [TransferPokemon] [INFO] *Releasing Nidoran F* CP: 453, IV: 0.36 | based on rule: CP < 989 AND IV < 989
[2016-09-12 16:00:02] [TransferPokemon] [INFO] *Nidoran F Released* You now have 124 Nidoran F candies
[2016-09-12 16:00:06] [TransferPokemon] [INFO] *Releasing Nidoran F* CP: 351, IV: 0.09 | based on rule: CP < 989 AND IV < 989
[2016-09-12 16:00:07] [TransferPokemon] [INFO] *Nidoran F Released* You now have 125 Nidoran F candies
[2016-09-12 16:00:10] [TransferPokemon] [INFO] *Releasing Nidoran M* CP: 345, IV: 0.38 | based on rule: CP < 980 AND IV < 980
[2016-09-12 16:00:42] [TransferPokemon] [INFO] *Nidoran M Released* You now have 292 Nidoran M candies
[2016-09-12 16:00:46] [TransferPokemon] [INFO] *Releasing Nidoran M* CP: 10, IV: 0.47 | based on rule: CP < 980 AND IV < 980
[2016-09-12 16:00:47] [TransferPokemon] [INFO] *Nidoran M Released* You now have 293 Nidoran M candies
[2016-09-12 16:00:51] [TransferPokemon] [INFO] *Releasing Clefairy* CP: 721, IV: 0.47 | based on rule: CP < 920 AND IV < 920
[2016-09-12 16:00:52] [TransferPokemon] [INFO] *Clefairy Released* You now have 138 Clefairy candies
[2016-09-12 16:00:56] [TransferPokemon] [INFO] *Releasing Clefairy* CP: 537, IV: 0.4 | based on rule: CP < 920 AND IV < 920
[2016-09-12 16:00:57] [TransferPokemon] [INFO] *Clefairy Released* You now have 139 Clefairy candies
[2016-09-12 16:01:00] [TransferPokemon] [INFO] *Releasing Jigglypuff* CP: 424, IV: 0.29 | based on rule: CP < 721 AND IV < 721
[2016-09-12 16:01:01] [TransferPokemon] [INFO] *Jigglypuff Released* You now have 301 Jigglypuff candies
[2016-09-12 16:01:04] [TransferPokemon] [INFO] *Releasing Jigglypuff* CP: 323, IV: 0.18 | based on rule: CP < 721 AND IV < 721
[2016-09-12 16:01:05] [TransferPokemon] [INFO] *Jigglypuff Released* You now have 302 Jigglypuff candies
[2016-09-12 16:01:09] [TransferPokemon] [INFO] *Releasing Jigglypuff* CP: 287, IV: 0.53 | based on rule: CP < 721 AND IV < 721
[2016-09-12 16:01:09] [TransferPokemon] [INFO] *Jigglypuff Released* You now have 303 Jigglypuff candies
[2016-09-12 16:01:14] [TransferPokemon] [INFO] *Releasing Zubat* CP: 385, IV: 0.44 | based on rule: CP < 725 AND IV < 725
[2016-09-12 16:01:15] [TransferPokemon] [INFO] *Zubat Released* You now have 872 Zubat candies

Steps to Reproduce

Just wait when you have almost at the limit of the pokemons you can hold.
Other Information
OS: Ubuntu 16.04

Branch: 3c1b0f5

Git Commit: dev

Python Version: Python 2.7.12

Any other relevant files/configs (eg: path files)

I updated my copy few hours ago with the latest commit 07d9b58 and still got the same output...
[2016-09-12 18:19:25] [TransferPokemon] [INFO] *Releasing Magikarp* CP: 149, IV: 0.36 | based on rule: CP < 391 AND IV < 391
[2016-09-12 18:19:25] [TransferPokemon] [INFO] *Magikarp Released* You now have 777 Magikarp candies
[2016-09-12 18:19:29] [TransferPokemon] [INFO] *Releasing Magikarp* CP: 140, IV: 0.64 | based on rule: CP < 391 AND IV < 391
[2016-09-12 18:19:30] [TransferPokemon] [INFO] *Magikarp Released* You now have 778 Magikarp candies
[2016-09-12 18:19:34] [TransferPokemon] [INFO] *Releasing Magikarp* CP: 21, IV: 0.44 | based on rule: CP < 391 AND IV < 391
[2016-09-12 18:19:34] [TransferPokemon] [INFO] *Magikarp Released* You now have 779 Magikarp candies
[2016-09-12 18:19:37] [TransferPokemon] [INFO] *Releasing Magikarp* CP: 10, IV: 0.67 | based on rule: CP < 391 AND IV < 391
[2016-09-12 18:19:38] [TransferPokemon] [INFO] *Magikarp Released* You now have 780 Magikarp candies
[2016-09-12 18:19:41] [TransferPokemon] [INFO] *Releasing Squirtle* CP: 594, IV: 0.11 | based on rule: CP < 852 AND IV < 852
[2016-09-12 18:19:42] [TransferPokemon] [INFO] *Squirtle Released* You now have 185 Squirtle candies
[2016-09-12 18:19:46] [TransferPokemon] [INFO] *Releasing Nidoran F* CP: 365, IV: 0.51 | based on rule: CP < 989 AND IV < 989
[2016-09-12 18:19:46] [TransferPokemon] [INFO] *Nidoran F Released* You now have 129 Nidoran F candies
[2016-09-12 18:19:50] [TransferPokemon] [INFO] *Releasing Zubat* CP: 275, IV: 0.58 | based on rule: CP < 725 AND IV < 725
[2016-09-12 18:19:51] [TransferPokemon] [INFO] *Zubat Released* You now have 881 Zubat candies
[2016-09-12 18:19:55] [TransferPokemon] [INFO] *Releasing Oddish* CP: 420, IV: 0.62 | based on rule: CP < 900 AND IV < 900
[2016-09-12 18:19:56] [TransferPokemon] [INFO] *Oddish Released* You now have 185 Oddish candies

Submitted a pull with the correct value.


https://nd.busy.org/ not working ?

i openend https://nd.busy.org/ showing in the wiki/contributor page

This is an old domain, this wiki page is not relevant anymore. You should check "Lets get started" instead.

so the contrib wiki page must be deleted or changed?

I changed the broken link. Wiki contrib page will probably be deleted at some point.


feat(projects): add concept images to detail view

Current dependencies on/for this PR:

main

PR #100   👈

This stack of pull requests is managed by Graphite.


AttributeError: module 'darknet' has no attribute 'load_network'

Im trying to load a darknet model in python and im getting the following error:
AttributeError: module 'darknet' has no attribute 'load_network'
I have installed darknet using the instructions provided and it works in the cli.

Lots of python-related changed were pushed recently.  As far as I know, this is not a problem.  The example python scripts all seem to work for me.  See https://github.com/hank-ai/darknet/tree/master/src-python#darknetyolo-command-guide-for-python
If this is still an issue, please re-open with additional details, or create a new issue.


completion/ivy: ivy-posframe upstream update

ivy-postframe go updated and became a minor mode. It broke doom's setup in it's way.

Good catch. Thanks again for your help!


You will need to stop the Cryptographic Service before you can delete or rename the Catroot2 folder.

In section 2 add:
net stop cryptsvc
So that in section 4a, this line succeeds:
ren %systemroot%\System32\Catroot2 Catroot2.bak
Otherwise you will see "access denied".
Reference:
https://answers.microsoft.com/en-us/windows/forum/all/access-denied-on-open-commands/2d31ce25-46a7-4ba0-838d-5b842e9991fa

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 886426b5-8548-1cfc-ccd2-fd03e549c967
Version Independent ID: 599aea76-47e4-dccc-799c-2d8acf549546
Content: Windows Update - Additional resources - Windows Deployment
Content Source: windows/deployment/update/windows-update-resources.md
Product: w10
Technology: windows
GitHub Login: @jaimeo
Microsoft Alias: jaimeo

@amirsoofi . Thanks for pointing out. I checked  some  commands also, there are some mistakes in lines, i will fix  it very soon.
Thanking you

PR #9168 is now merged. This issue ticket should be ready for closing.
#please-close


chore: Current App screenshots in Readme file

Summary:
chore: Current App screenshots in Readme file. It is always good to have some app screenshots in the readme of project. This helps potential contributors get a basic idea along with the codebase.
Steps to reproduce:
Readme File
Expected behaviour:
Screenshots in Readme.
Observed behaviour:
No screenshots.
I would work on this issue.

@therajanmaurya @naman14 @AbhilashG97 Can I go ahead?

I'll be working on it.


Add to_rectangle, area and perimeter methods to Capsule2d

Objective
Unlike Capsule3d which has the .to_cylinder method, Capsule2d doesn't have an equivalent .to_rectangle method and as shown by #15191 this is surprisingly easy to get wrong
Solution
Implemented a Capsule2d::to_rectangle method as it is implemented in the fixed Capsule2d shape sampling, and as I was adding tests I noticed Capsule2d didn't implement Measure2d so I did this as well.
Changelog
Added

Capsule2d::to_inner_rectangle, Capsule2d::area and Capsule2d::perimeter

@james7132 this needs your re-review before I can merge it :)


False parameter not used warning

Issue: A parameter used as part of an expression triggers a false warning for "parameter not used".
Solution:

Prepend and append a space " " to expression (haystack) and parameter (needle).
Replace operators in haystack by space to avoid finding parameters which are substrings of other parameters.
Search for needle in haystack.
Before; expression was searched for in parameter name (I think?) so parameter "X" wasn't matched in for instance "3+X".

Done. Hopefully. Beginner in this advanced git-stuff but I think you now have a single commit. Let me know if I messed up. Thanks.


br: use dedicated parameter set for br restore

Feature Request
Is your feature request related to a problem? Please describe:

currently, lightning and br restore share tikv parameters under import section.
Describe the feature you'd like:

we need to separate them and use dedicated parameter set for br restore.
Describe alternatives you've considered:

Teachability, Documentation, Adoption, Migration Strategy:

/component backup-restore

/severity major

/assign @RidRisR


Raycast2D can't detect a collision when a moving platform does down quickly.

Godot version
v3.4.beta.custom_build [b9ee64a24]
System information
MacOS 11.4
Issue description
Raycast2D can't detect a collision when a moving platform does down quickly.

Steps to reproduce
Run the project.
Minimal reproduction project
raycastBug.zip

I did a few tests and maybe it will help solve the issue.

When ray is longer then platform speed then it detects collisions correctly.
When player move in _process() instead of _physics_process() then it detects collisions correctly even with ray of length 35.

This is yet another physics tunnelling issue, which can be worked around by increasing Physics Fps in the Project Settings.


disable metadata auto-sync for ThinRuntime by default

Ⅰ. Describe what this PR does
Code changes in this PR:

disable metadata auto-sync for ThinRuntime by default
update crd to remove // +kubebuilder:default=true for spec.management.metadataSyncPolicy.autoSync.

NOTE: The removal is backward compatible because we take an empty metadataSyncPolicy.autoSync as truew before.

func (msb *MetadataSyncPolicy) AutoSyncEnabled() bool {
	return msb.AutoSync == nil || *msb.AutoSync
}

Ⅱ. Does this pull request fix one issue?

fixes #4282
Ⅲ. List the added test cases (unit test/integration test) if any, please explain if no tests are needed.
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews
Related to #4091 where we allow users to disable metadata auto-sync, while this PR make it a default behavior.

/test fluid-e2e

/override codecov/project

/lgtm
/approve


Set the BaseModel.model_name automatically.

If we add the following to BaseModel.__init_subclass:
setattr(cls, "model_name", cls.__module__.split(".")[2])

With the module virtual_rainforests.models.plants.plants_model this would extracts plants from the module name of the BaseModel subclass being initialised  and set it,  enforcing that the model name matches the submodule name.
Originally posted by @davidorme in https://github.com/ImperialCollegeLondon/virtual_rainforest/pull/323#discussion_r1343873991

This is fine as long as the model is defined in a location like virtual_rainforest.models.plants.plant_model but in the case of test modules (either defined in test_modues or exec'd from a string), this tries to get a model name from test_base_model.TestModel or __main__.TestModel.
So yes, it is cleaner but wrecks testing. We could have BaseModel.__init_subclass__ check for special cases, but that seems like an obscure hack.


while i use the second monitor, there is a problem about color.

VSCode Version: Code 1.9.0 (27240e71ef390bf2d66307e677c2a333cebf75af, 2017-02-02T08:23:30.856Z)
OS Version: Darwin x64 16.3.0
Extensions:

Extension
Author
Version

insertnumbers
Asuka
0.9.1

calculate
acarreiro
1.1.0

Bookmarks
alefragnani
0.10.2

code-runner
formulahendry
0.6.7

CppSnippets
hars
0.0.6

cpptools
ms-vscode
0.10.0

Steps to Reproduce:

Are you see the different,  all color theme have this problem when i use the second monitor in mac.

Noticed this as well, initially thought it had to do with the HDMI connection, but after trying with DisplayPort, it still happens. Running OSX as well.

#12473


cant get kafkajs to read messages concurrently

I'm trying to make kafkajs read messages concurrently,
I'm running my topic with 2 partitions:
Topic:Tokens_Activity_Sandbox	PartitionCount:2	ReplicationFactor:1	Configs:segment.bytes=1073741824
	Topic: Tokens_Activity_Sandbox	Partition: 0	Leader: 1001	Replicas: 1001	Isr: 1001
	Topic: Tokens_Activity_Sandbox	Partition: 1	Leader: 1001	Replicas: 1001	Isr: 1001

and made a little test client.
when sending 2 paralell sleep commands to the topic(1 for each partition), the client reads them one by one, sequencially, instead of parallely (once it goes to sleep).
what am i doing wrong?
const topic = 'Tokens_Activity_Sandbox';
const { Kafka } = require('kafkajs');
const util = require('util');
const sleep = util.promisify(setTimeout);
const kafka = new Kafka({
  clientId: 'my-app',
  brokers: ['<IP_ADDRESS>:9092'],
});

const groupId = 'test-group2333';
const admin = kafka.admin({
  retry: { retries: 0 },
});
const producer = kafka.producer({ allowAutoTopicCreation: false });

const consumer = kafka.consumer({
  allowAutoTopicCreation: false,
  groupId: groupId,
  retry: { retries: 1, restartOnFailure: async () => false },
});

if (process.env.CREATE === 'true') {
  (async () => {
    await admin.createTopics({
      topics: [
        {
          topic: topic,
          numPartitions: 2, // default: 1
        },
      ],
    });
  })();
}

process.on('SIGINT', async () => {
  // eslint-disable-next-line no-undef
  await consumer.disconnect();
});

const eachMessageF = async ({ topic, partition, message }) => {
  console.log('incoming message', {
    topic,
    partition,
    offset: message.offset,
    value: message.value.toString(),
  });

  if (message.value.toString() === 'sleep') {
    console.log('going to sleep');
    await sleep(5000);
    console.log('woke up from sleep');
  }
  console.log(`done processing ${message.value.toString()}`);
};

const run = async () => {
  // admin
  await admin.connect();
  await producer.connect();
  // Consuming
  await consumer.connect();
  await consumer.subscribe({ topic: topic, fromBeginning: false });
  await consumer
    .run({
      partitionsConsumedConcurrently: 2,
      eachMessage: async ({ topic, partition, message }) => {
        try {
          await eachMessageF({ topic, partition, message });
        } catch (e) {
          console.log('caught th error <3');
        }
      },
    })
    .catch((err) => {
      console.log('caught err in catch of consumer.run');
      throw err;
    });
};

run()

that would be the output of the running
incoming message {
  topic: 'Tokens_Activity_Sandbox',
  partition: 1,
  offset: '4',
  value: 'sleep'
}
going to sleep
woke up from sleep
done processing sleep
incoming message {
  topic: 'Tokens_Activity_Sandbox',
  partition: 0,
  offset: '6',
  value: 'sleep'
}
going to sleep
woke up from sleep
done processing sleep

Hi @yuriabaev, which version of kafkajs are you using?

"kafkajs": "^1.12.0",

I can't reproduce this in master:
info:  ┏ [Consumer] Starting
info:  ┃ [0] {
info:  ┃ [1]   "timestamp": "2020-10-05T16:55:16.432Z",
info:  ┃ [2]   "logger": "kafkajs",
info:  ┃ [3]   "groupId": "test-group-906-1"
info:  ┗ [4] }
info:  ┏ [Runner] Consumer has joined the group
info:  ┃ [ 0] {
info:  ┃ [ 1]   "timestamp": "2020-10-05T16:55:16.703Z",
info:  ┃ [ 2]   "logger": "kafkajs",
info:  ┃ [ 3]   "groupId": "test-group-906-1",
info:  ┃ [ 4]   "memberId": "example-consumer-934f374e-b93a-42c6-af5d-80482b54ff36",
info:  ┃ [ 5]   "leaderId": "example-consumer-934f374e-b93a-42c6-af5d-80482b54ff36",
info:  ┃ [ 6]   "isLeader": true,
info:  ┃ [ 7]   "memberAssignment": {
info:  ┃ [ 8]     "topic-test-906-4": [
info:  ┃ [ 9]       0,
info:  ┃ [10]       1
info:  ┃ [11]     ]
info:  ┃ [12]   },
info:  ┃ [13]   "groupProtocol": "RoundRobinAssigner",
info:  ┃ [14]   "duration": 267
info:  ┗ [15] }
info:  ┏ Incoming message
info:  ┃ [ 0] {
info:  ┃ [ 1]   "timestamp": "1601916887096",
info:  ┃ [ 2]   "logger": "kafkajs",
info:  ┃ [ 3]   "topic": "topic-test-906-4",
info:  ┃ [ 4]   "partition": 1,
info:  ┃ [ 5]   "offset": "0",
info:  ┃ [ 6]   "headers": {
info:  ┃ [ 7]     "correlation-id": "2-1601916886681"
info:  ┃ [ 8]   },
info:  ┃ [ 9]   "key": "key-2",
info:  ┃ [10]   "value": "value-2-2020-10-05T16:54:46.681Z",
info:  ┃ [11]   "msgNumber": 1
info:  ┗ [12] }
info:  ┏ Now sleeping for 5000ms
info:  ┃ [0] {
info:  ┃ [1]   "timestamp": "2020-10-05T16:55:16.791Z",
info:  ┃ [2]   "logger": "kafkajs"
info:  ┗ [3] }
info:  ┏ Incoming message
info:  ┃ [ 0] {
info:  ┃ [ 1]   "timestamp": "1601916886668",
info:  ┃ [ 2]   "logger": "kafkajs",
info:  ┃ [ 3]   "topic": "topic-test-906-4",
info:  ┃ [ 4]   "partition": 0,
info:  ┃ [ 5]   "offset": "0",
info:  ┃ [ 6]   "headers": {
info:  ┃ [ 7]     "correlation-id": "1-1601916886620"
info:  ┃ [ 8]   },
info:  ┃ [ 9]   "key": "key-1",
info:  ┃ [10]   "value": "value-1-2020-10-05T16:54:46.620Z",
info:  ┃ [11]   "msgNumber": 2
info:  ┗ [12] }
info:  ┏ Now sleeping for 5000ms
info:  ┃ [0] {
info:  ┃ [1]   "timestamp": "2020-10-05T16:55:16.792Z",
info:  ┃ [2]   "logger": "kafkajs"
info:  ┗ [3] }
info:  ┏ Finished sleeping
info:  ┃ [0] {
info:  ┃ [1]   "timestamp": "2020-10-05T16:55:21.792Z",
info:  ┃ [2]   "logger": "kafkajs"
info:  ┗ [3] }
info:  ┏ Finished sleeping
info:  ┃ [0] {
info:  ┃ [1]   "timestamp": "2020-10-05T16:55:21.803Z",
info:  ┃ [2]   "logger": "kafkajs"
info:  ┗ [3] }

Nor can I reproduce it in 1.12.0:
{"level":"INFO","timestamp":"2020-10-05T16:57:11.055Z","logger":"kafkajs","message":"[Consumer] Starting","groupId":"test-group-906-2"}
{"level":"INFO","timestamp":"2020-10-05T16:57:11.192Z","logger":"kafkajs","message":"[Runner] Consumer has joined the group","groupId":"test-group-906-2","memberId":"example-consumer-d94ebc3c-e111-4a15-b980-843855303cc0","leaderId":"example-consumer-d94ebc3c-e111-4a15-b980-843855303cc0","isLeader":true,"memberAssignment":{"topic-test-906-4":[0,1]},"groupProtocol":"RoundRobinAssigner","duration":133}
{"level":"INFO","timestamp":"1601916886668","logger":"kafkajs","message":"Incoming message","topic":"topic-test-906-4","partition":0,"offset":"0","headers":{"correlation-id":"1-1601916886620"},"key":"key-1","value":"value-1-2020-10-05T16:54:46.620Z","msgNumber":1}
{"level":"INFO","timestamp":"2020-10-05T16:57:11.228Z","logger":"kafkajs","message":"Now sleeping for 5000ms"}
{"level":"INFO","timestamp":"1601916887096","logger":"kafkajs","message":"Incoming message","topic":"topic-test-906-4","partition":1,"offset":"0","headers":{"correlation-id":"2-1601916886681"},"key":"key-2","value":"value-2-2020-10-05T16:54:46.681Z","msgNumber":2}
{"level":"INFO","timestamp":"2020-10-05T16:57:11.228Z","logger":"kafkajs","message":"Now sleeping for 5000ms"}
{"level":"INFO","timestamp":"2020-10-05T16:57:16.228Z","logger":"kafkajs","message":"Finished sleeping"}
{"level":"INFO","timestamp":"2020-10-05T16:57:16.232Z","logger":"kafkajs","message":"Finished sleeping"}

@Nevon can you plz share your code?

It's nothing special at all. I'm just using the code from examples/consumer.js and adding partitionsConsumedConcurrently: 2 and a sleep in the eachMessage.
const fs = require('fs')
const ip = require('ip')

const sleep = require('../src/utils/sleep')
const { Kafka, logLevel } = require('../index')

const host = process.env.HOST_IP || ip.address()

const kafka = new Kafka({
  logLevel: logLevel.INFO,
  brokers: [`${host}:9094`, `${host}:9097`, `${host}:9100`],
  clientId: 'example-consumer',
  ssl: {
    servername: 'localhost',
    rejectUnauthorized: false,
    ca: [fs.readFileSync('./testHelpers/certs/cert-signed', 'utf-8')],
  },
  sasl: {
    mechanism: 'plain',
    username: 'test',
    password: 'testtest',
  },
})

const topic = 'topic-test-906-4'
const consumer = kafka.consumer({ groupId: 'test-group-906-2' })

let msgNumber = 0
const run = async () => {
  await consumer.connect()
  await consumer.subscribe({ topic, fromBeginning: true })
  await consumer.run({
    partitionsConsumedConcurrently: 2,
    eachMessage: async ({ topic, partition, message }) => {
      msgNumber++
      kafka.logger().info('Incoming message', {
        topic,
        partition,
        offset: message.offset,
        timestamp: message.timestamp,
        headers: Object.keys(message.headers).reduce(
          (headers, key) => ({
            ...headers,
            [key]: message.headers[key].toString(),
          }),
          {}
        ),
        key: message.key.toString(),
        value: message.value.toString(),
        msgNumber,
      })

      kafka.logger().info('Now sleeping for 5000ms')
      await sleep(5000)
      kafka.logger().info('Finished sleeping')
    },
  })
}

run().catch(e => console.error(`[example/consumer] ${e.message}`, e))

const errorTypes = ['unhandledRejection', 'uncaughtException']
const signalTraps = ['SIGTERM', 'SIGINT', 'SIGUSR2']

errorTypes.map(type => {
  process.on(type, async e => {
    try {
      console.log(`process.on ${type}`)
      console.error(e)
      await consumer.disconnect()
      process.exit(0)
    } catch (_) {
      process.exit(1)
    }
  })
})

signalTraps.map(type => {
  process.once(type, async () => {
    try {
      await consumer.disconnect()
    } finally {
      process.kill(process.pid, type)
    }
  })
})

On the producer side, all I did was create a topic with 2 partitions and publish two messages with the partitions hardcoded to be 0 and 1 respectively.

weird, that is almost the same code as mine..
is it always working for you?
in my case out of 40 runs I've seen it running correctly only once
im sending message using kafkajs profucer :
  await producer.send({
    topic: topic1,
    messages: [
      { value: 'sleep', partition: 0 },
      { value: 'sleep', partition: 1 },
    ],
  });

what can be the reason?

Yes, it works consistently for me. I also tried running a single-node cluster, as it seems you are, to see if maybe this occurs when both messages are coming in the same broker fetch response, but I had the exact same result with a single-broker cluster as well.
Could you try running with the following environment variables: KAFKAJS_LOG_LEVEL=debug KAFKAJS_DEBUG_PROTOCOL_BUFFERS=1 KAFKAJS_DEBUG_EXTENDED_PROTOCOL_BUFFERS=1. The only thing I can think of is that maybe you're only getting a single partition back in your fetch response, which would mean that you would process the whole batch (i.e. 1 message), make a new request and receive another batch with the second message. This could happen if you configure minBytes, maxBytes and/or maxWaitTimeInMs incorrectly.

thanks for your help Nevon,
1.you were right, when sending 4 messages:
  await producer.send({
    topic: topic1,
    messages: [
      { value: 'sleep1', partition: 1 },
      { value: 'sleep2', partition: 0 },
      { value: 'sleep3', partition: 1 },
      { value: 'sleep4', partition: 0 },
    ],
  });

it does read only from partition 1 two messages (sleep1,sleep3)
an then it reads messages from partition 0(sleep2,sleep4)
2.setting   maxWaitTimeInMs to 500 didn't help,
also, I don't understand why you think changing minBytes from 1? as  i send the value "sleep" which is larger than 1 byte
and hence, by docs, maxWaitTimeInMs shouldn't take place.
3.what I did notice is that the feature works for me only when I play with the order of execution between consumer and producer:
when I start the consumer and it waits for messages, and the execute the producer to send the above messages, the feature doesn't work for me
but,
when I execute the producer first and then start the consumer, it reads  the messages concurrently.(!!)
any idea why?
I can share my source codes,
and share the logs of running with the environment variables you suggested.
thanks again

I think I understand what's happening now, and it's working exactly as intended if the consumer is configured the way I think it is.

also, I don't understand why you think changing minBytes from 1? as i send the value "sleep" which is larger than 1 byte
and hence, by docs, maxWaitTimeInMs shouldn't take place.

Basically:

minBytes = I want at least these many bytes
maxBytes = I want at most this many bytes
maxBytesPerPartition = I want at most this many bytes per partition
maxWaitTimeInMs = If you don't have minBytes for me yet, wait up to maxWaitTimeInMs to see if we get more data, otherwise send me whatever you have.

If you have minBytes 1, it means that as soon as there's any data in any of the partitions that you're writing to, the broker will respond with that data. This means that as soon as a message has been written into the first partition, the broker responds to the fetch request. It's not going to wait for the second message to be written into the second partition, because you told it that as soon as there's at least 1 byte of data, you want it to respond with that data.
If you change minBytes back to the default value, you will see that you will start to get both messages in the same response, because the broker will wait up to maxWaitTimeInMs to try to accumulate at least 1mb of data. After maxWaitTimeInMs it will give up and send you what it has (your two messages).

when I execute the producer first and then start the consumer, it reads the messages concurrently.(!!)

Makes perfect sense. If you have already written the data into the partitions and then start the consumer, the consumer is going to get up to Math.min(maxBytes, maxBytesPerPartition * numPartitions) bytes back, so in your case you will get your 2 messages back in the same response.

you are saying that the default  is 1mb, but in the docs i see that the default is 1 Byte

Oh yes, my mistake, 1 byte is the default. The point stands, however. If you want to allocate more than that before receiving a response, you can set it to a higher value.

Thanks for your response Nevon,
That makes me wonder:
How it works for you correctly if you used the default value (minByte=1Byte) just like me?
As I see it, since you had the default value (minByte=1Byte) just like me, your behavior should have been similar to mine,  i.e getting 1 message at a time, because each message is larger than 1Byte.
And yet, you say you were getting 2 messages at a time even though you had minByte=1Byte?
What am i missing?

That I'm not sure of. The behavior itself makes sense to me, but not the fact that we're not seeing the same behavior. If you run exactly the example I posted (just connecting to your Kafka cluster), do you still have the same behavior? Perhaps it's a simple matter of different Kafka versions and/or platform differences. I'm running the cluster using the docker-compose file docker-compose.2_4.yml.

@yuriabaev
We had the same issue. maxWaitTimeInMs = 100 solved it


daemon: logger: error out on daemon start if invalid logger address

If an invalid logger address is provided on daemon start it will
silently fail. As syslog driver is doing, this check should be done on
daemon start and prevent it from starting even in other drivers.
This patch also adds integration tests for this behavior.
Also fix wrong comment referring to old job mechanism (didn't want to open another PR just for this so it's another commit)
Signed-off-by: Antonio Murdaca<EMAIL_ADDRESS>

ping @LK4D4

LGTM

LGTM

LGTM


Offline Support via ServiceWorker

I'm so very excited to be sharing this with you - I spend a bit of time adding offline support to Ghost Admin. This is, of course, done with the super powers of Service Workers. To explain this in a few words, when you load Ghost Admin, we register a ServiceWorker with the browser. That service worker is able to intercept and cache all requests originating from https://blog.com/ghost/. As soon as you load the admin page, I aggressively cache everything inside Ghost Admin, but as you keep clicking around, we also cache all API requests. Thus, even while offline, users can load the Ghost Admin interface, check out their existing posts, and even edit them. It's pretty bonkers.
:rocket: Read operations: :100:% coverage
:books: Write operations: :zero:% coverage, but easy to implement.
The heavy lifting happens in modules, in detail:

ember-service-worker (SW infrastructure)
ember-service-worker-ghost-cache (Caches static assets and the main application)
ember-service-worker-cache-fallback (Caches API requests and falls back to the cache if the server can’t be reached)
ember-service-worker-index (Caches main html)

Coverage remained the same at 75.102% when pulling bc4122ba2dc64efb6f9ecbbd03212b48df67386f on felixrieseberg:offline-ghost into 6f637e17269f97cd9e20a9632de5d38f3fdb741d on TryGhost:master.


MP Metrics clears app registry late in CDI start-up life cycle

Environment Details

Helidon Version: 2.x, 3.x
Helidon SE or Helidon MP MP
JDK version:
OS:
Docker version (if applicable):

Problem Description
The Helidon metrics CDI extension clears out the application metrics registry in a method which @Observes @Initialized(ApplicationScoped.class). Normally this is fine but a user has encountered a use case in which a provider has registered application metrics prior to this. Once the extension clears out the app registry the previously-registered metrics are missing.
Steps to reproduce
To mimic the specific use case, create a CDI extension which @Observes AfterBeanDiscovery and have it register an application metric. Later, once the Helidon metrics CDI extension registerService method has run (after app-scoped initialization is complete), the previously-registered app metric is gone.

@tjquinno I'm assuming we do this to run multiple unit tests classes within a single VM

Yes, exactly. That avoids lots of duplicate-metric-registered errors.
The @HelidonTest annotation accepts resetPerTest which  restarts the Helidon container for each test, but with that specified the test container is documented as not injecting into fields or constructors which causes other problems with the metrics MP unit tests, at least as written today.

Hi @tjquinno,
can you please share information on when this issue will be fixed ?
Thanks,
Ashok

At the moment, we do not have an ETA for this fix. I wish we had more definite news to share on this.


Getting a real path of file type input

Is your feature request related to a problem? Please describe.
I am trying to get a the real path of file selected in <input type="file" id="myFile"> but I dunno how to.
I tried document.getElementById("myFile").files which gives array of File which contains following information.
lastModified:<PHONE_NUMBER>000
name: "filename.py"
size: 859
type: "text/x-python"
webkitRelativePath: ""

Describe the solution you'd like
Electron adds a path property in File object. I don't know how exactly it is happening and will it be possible in Tauri
but this seems to be one possible solution to me.
https://github.com/electron/electron/blob/master/docs/api/file-object.md

I have same problem when I was trying to drag and drop a file.
Could you reopen this issue?

It seems winit supports this feature.
But, sadly, the webview_official doesn't use "winit", so it doesn't work.

@nothingismagick Could you move this ISSUE also to wry repo?
I think this issue is related to handling window event (at least on macOS).


Normalise whitespace in the count-rows filter

A spurious trailing space can create two separate entries in Quick Charts (etc.), e.g. "South Sudan" vs "South Sudan ". Normalise space (but not case) in hxl.filters.CountRowsFilter to avoid requiring a change in Quick Charts.

Normalise space during count.


Infinite loop risk in crypto/aria/aria.c and crypto/modes/gcm128.c

In file crypto/aria/aria.c
In line 483, the variable Nr is initialized like this Nr = key->rounds. It should always be even, or not.
https://github.com/openssl/openssl/blob/eb27a90e41a62d3337c5e21e24ee72f1e49a445c/crypto/aria/aria.c#L483
In line 501, there is risk of infinite loop when Nr is odd
https://github.com/openssl/openssl/blob/eb27a90e41a62d3337c5e21e24ee72f1e49a445c/crypto/aria/aria.c#L501
It should be replaced by
    while (0<(Nr -= 2)) {

In file crypto/modes/gcm128.c, same risk in line 540 :
https://github.com/openssl/openssl/blob/eb27a90e41a62d3337c5e21e24ee72f1e49a445c/crypto/modes/gcm128.c#L540
It should be replaced by
    } while (inp += 16, 0<(len -= 16));

Re Aria: According to
https://github.com/openssl/openssl/blob/eb27a90e41a62d3337c5e21e24ee72f1e49a445c/crypto/aria/aria.c#L546
and
https://github.com/openssl/openssl/blob/eb27a90e41a62d3337c5e21e24ee72f1e49a445c/crypto/aria/aria.c#L551-L553
the number of rounds can only be 12, 14, or 16, which is even, see also Wikipedia: ARIA_(cipher).

As for gcm128.c: I'm quite sure that the input size is a multiple of 16 (which correspondends to a block size of 128 bit), but it's not immediately obvious from looking at the source code.

So not CVE worthy, correct? (suppressing anxiety about this)

I suggest the change should be done, There would be no more question and context free.

Definitely not a CVE.  Although the change is sensible, it cannot be exploited.


Downloaded card attachments are all in same size (33 bytes) and corrupted

All downloaded files have 33 bytes in size and in-openable. The file extensions are correct, they seem to be just text files with a text: "unauthorized permission requested".

I have the same problem! Does anyone know how to solve it?

Hi there, I found a solution that might be interesting to you.
Please, take a look onto the following PR: https://github.com/jtpio/trello-full-backup/pull/35


Can't follow from Pleroma

Is this a known issue or something with my WordPress setup? I am able to follow from Mastodon, but my personal Pleroma instance returns a 500. Webfinger for my WP is https://client.webfinger.net/lookup?resource=mcg%40blog.braintube.com

Same issue with version 0.3.2

Thanks for filing the issue: https://git.pleroma.social/pleroma/pleroma/issues/649#note_17071

Seems like it might be related to this problem, @pfefferle ? https://git.pleroma.social/pleroma/pleroma/issues/364

@DeadSuperHero yes, thanks for the reference!
Seems to be fixed with this commit: https://git.pleroma.social/pleroma/pleroma/commit/2813f28b6fa1618efb01f4bd570e055ca16efbc5

Some updates related to similar issues with Pleroma and Pixelfed. Perhaps something similar is happening here? https://pleroma.site/objects/de0b6f01-d63f-4bc8-8477-a56f3369853b

I've updated to 0.6.0 which I assume has this fix included. Still unable to follow.

can you send me your identifier, that I could test it?

@pfefferle Same as the OP of this issue, https://client.webfinger.net/lookup?resource=mcg%40blog.braintube.com
Does that work?

Sorry, I read that on the phone... can you send me the instance you tried it on? It might be a version problem. I tested some instances and it worked only on some of them...

Oh... It's my single user personal instance, running an up to date(as of a couple of days) Pleroma dev. Can you tell me where you've had this work?

Let‘s try it the other way ‚round... can you try to follow<EMAIL_ADDRESS>

That works. Huh... The avatar and user data doesn't even load for my WP, does for yours. Looks like this:

If it is your instance, can you find any valuable log entries...? I can reproduce it with another website of mine, but I have no clue what the problem might be...

found the problem... can you retest with version 0.7.0?

Hmm, works fine on pleroma.site

I ended up needing to remove a bunch of stale follow requests from the DB and following worked! However posts don't seem to be making it across. Progress at least.

 It sends no activities!
I love working with STANDARDS!!!

Can you load the profile of your blog on pleroma and check if the posts will show up there? I found that posts are visible on the profile pages but not in the timelines.

That appears to be happening. I can see posts on the profile but not in the timeline. Couple of additional things. They don't get pushed to AP until the WP cron runs, I didn't expect that. Also, for the tests posts I was trying, I didn't see them in Pleroma, then I deleted them on WP. When the WP cron eventually ran, it was publishing deleted/trashed posts. Probably shouldn't do that.

OK, found the posting issue... It was a problem with sharedInboxes... I will test new features always on pleroma... they take the spec more serious then mastodon. Will publish an update.
Regarding the cron: I had to do it like that, because with a huge list of followers, saving a post would take way too long and may run into a timeout!
Regarding the publishing/deleted/trashed thing: I will check if a post is still published before sending it. Good point.

@mcg thanks for debugging btw :)

Finally finally finally https://github.com/pfefferle/wordpress-activitypub/releases/tag/0.7.1
But I do not dare to close the ticket yet ;)

Looks like this one fixes it. I can see posts in my timeline and deleted posts aren’t published. 👍

❤

@pfefferle what did the issue with sharedInbox end up being? I have follows working from Pleroma to Pterotype, but Pleroma keeps 500ing whenever I send it an Activity...

It was not really an issue because Pleroma accepted the Post. The issue was, that I used the shared inbox, but haven't added the to and cc fields, so Pleroma added the post only to the global stream and not to the streams of the followers.

@jdormit before I had an issue, because Pleroma requires an ID for every activity.

Hey, I wanted to follow up on this. I'm a Pleroma user, and recently started using this plugin with my Wordpress installation site.
I'm able to see the actor<EMAIL_ADDRESS>from the Pleroma side, but no posts appear to be fetched. I tried sending a follow request, but it didn't appear to get sent over to my blog.
I actually wasn't able to discovery my blog's actor until a recent update of Pleroma. I'll try upgrading again to see whether that helps any, but I wanted to inform you that as of right now, this does seem to affect Pleroma installations.


Html helper pure HTML 5 mode without support old standarts

It was reworked. Unit tests ready.

How about optional tags and optional attributes? Those are old standards too and a patch would be simple

please open a new issue if you feel it is really needed to discuss this.


Add test for simple/simplified graphs

This test tests the output of Graph.to_string() for graphs with multiple (parallel) edges and combinations of simplify set to True or False and the graph being directed or undirected.
This test was originally created for issue pydot/pydot#92 ("Simplify throws NameError, and, as implemented, doesn't work"). It can also help catch regressions when doing future work on Graph.to_string(), Edge.__eq__() or Edge.__hash__().

This PR was merged as commit 5c9b2ce.


Upgrade to Kinobi 0.19 and Web3.js tp3

This PR updates client generation for the System program such that it uses Kinobi 0.19 and the new web3.js tp3 version for the JavaScript client.

#1  👈
main

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

Join @lorisleiva and the rest of your teammates on  Graphite

Merge activity

Apr 26, 6:29 AM EDT: @lorisleiva started a stack merge that includes this pull request via Graphite.


experiment difference in paper

what's the difference between the experiment chapter 3.3 Multi-Objective Alignment Evaluation and experiment chapter 4.1 Performance Trade-off Evaluation.
notice that they both evaluate on  MT-Bench, HaluEval 2.0, HackaPrompt, respectively, and they both use the preference token (e.g. Harmlessness:5) in the prompt,  and they both evaluate by GPT-4. why the performance of CPO in figure 4 is different from it in Table 1
Table 1

figure 4

ok，thanks， i get it. I feel sorry to ask such a easy question.
---Original---
From: "Yiju @.>
Date: Tue, Nov 26, 2024 10:24 AM
To: @.>;
Cc<EMAIL_ADDRESS>Subject: Re: [OpenBMB/CPO] experiment difference in paper (Issue #6)
Table 1 test
The experimental setup for Mistral-7B-CPO-Harmful is to append the preference token "Harmlessness:5" before MT-Bench, HaluEval 2.0, and HackaPrompt, and then evaluate through GPT-4.
Figure 4 test
Figure 4(a) appends <Helpfulness: 5> before the instruction on MT-Bench, and tests the obtained response in three dimensions: Helpful, Honesty, and Harmlessness, using GPT-4.
Similarly, Figure 4(b) appends Honesty:5 before the instruction on HaluEval2.0, and Figure 4(c) appends <Harmlessness: 5> before the instruction on HackaPrompt.
Due to the difference in the appended preference tokens in Table 1 and Figure 4, the corresponding performance also varies accordingly.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>


TypeError: Cannot read property 'token' of undefined

Issue Type: Bug
When a new connection to SQL server database with MFA is attempted the following error message is produced:
TypeError: Cannot read property 'token' of undefined
Azure Data Studio version: azuredatastudio 1.39.1 (7553f799e175f471b7590302dd65c997b838b29b, 2022-08-30T01:11:13.047Z)
OS version: Windows_NT x64 10.0.19042
Restricted Mode: No

System Info

Item
Value

CPUs
Intel(R) Core(TM) i5-6500T CPU @ 2.50GHz (4 x 2496)

GPU Status
2d_canvas: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onoop_rasterization: enabledopengl: enabled_onrasterization: enabledskia_renderer: enabled_onvideo_decode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
7.89GB (1.19GB free)

Process Argv

Screen Reader
no

VM
0%

Extensions (2)

Extension
Author (truncated)
Version

schema-compare
Mic
1.16.0

sql-database-projects
Mic
0.19.0

Hi, Is there any update on this issue?

Hi @vikarBCC
Can you begin by clearing access token cache from ADS by running below commands from Command Prompt:

Azure Accounts: Clear Azure account token cache
Clear all saved accounts

Try logging in again and if you still face issues, please gather logs for the failure and share with us.


BUG: pythran min version not enforced

Describe your issue.
Despite pythran>=0.14.0 in pyproject.toml, python dev.py build lets me build with pythran=0.13.1. This is not true for Cython, where the >=3.0.4 bound is enforced.
Reproducing Code Example
python dev.py build # with pythran=0.13.1

Error message
# a wall of warnings which were fixed, hence we bumped the min version

SciPy/NumPy/Python version and system information

1.13.0.dev0+1030.3b33204 1.25.2 sys.version_info(major=3, minor=10, micro=12, releaselevel='final', serial=0)
Build Dependencies:
  blas:
    detection method: pkgconfig
    found: true
    include directory: /Users/lucascolley/mambaforge/envs/scipy-dev/include
    lib directory: /Users/lucascolley/mambaforge/envs/scipy-dev/lib
    name: openblas
    openblas configuration: USE_64BITINT=0 DYNAMIC_ARCH=0 DYNAMIC_OLDER= NO_CBLAS=
      NO_LAPACK=0 NO_LAPACKE= NO_AFFINITY=1 USE_OPENMP=1 VORTEX MAX_THREADS=128
    pc file directory: /Users/lucascolley/mambaforge/envs/scipy-dev/lib/pkgconfig
    version: 0.3.23
  lapack:
    detection method: pkgconfig
    found: true
    include directory: /Users/lucascolley/mambaforge/envs/scipy-dev/include
    lib directory: /Users/lucascolley/mambaforge/envs/scipy-dev/lib
    name: openblas
    openblas configuration: USE_64BITINT=0 DYNAMIC_ARCH=0 DYNAMIC_OLDER= NO_CBLAS=
      NO_LAPACK=0 NO_LAPACKE= NO_AFFINITY=1 USE_OPENMP=1 VORTEX MAX_THREADS=128
    pc file directory: /Users/lucascolley/mambaforge/envs/scipy-dev/lib/pkgconfig
    version: 0.3.23
  pybind11:
    detection method: pkgconfig
    include directory: /Users/lucascolley/mambaforge/envs/scipy-dev/include
    name: pybind11
    version: 2.11.1
Compilers:
  c:
    args: -ftree-vectorize, -fPIC, -fPIE, -fstack-protector-strong, -O2, -pipe, -isystem,
      /Users/lucascolley/mambaforge/envs/scipy-dev/include, -D_FORTIFY_SOURCE=2, -isystem,
      /Users/lucascolley/mambaforge/envs/scipy-dev/include
    commands: arm64-apple-darwin20.0.0-clang
    linker: ld64
    linker args: -Wl,-pie, -Wl,-headerpad_max_install_names, -Wl,-dead_strip_dylibs,
      -Wl,-rpath,/Users/lucascolley/mambaforge/envs/scipy-dev/lib, -L/Users/lucascolley/mambaforge/envs/scipy-dev/lib,
      -ftree-vectorize, -fPIC, -fPIE, -fstack-protector-strong, -O2, -pipe, -isystem,
      /Users/lucascolley/mambaforge/envs/scipy-dev/include, -D_FORTIFY_SOURCE=2, -isystem,
      /Users/lucascolley/mambaforge/envs/scipy-dev/include
    name: clang
    version: 15.0.7
  c++:
    args: -ftree-vectorize, -fPIC, -fPIE, -fstack-protector-strong, -O2, -pipe, -stdlib=libc++,
      -fvisibility-inlines-hidden, -fmessage-length=0, -isystem, /Users/lucascolley/mambaforge/envs/scipy-dev/include,
      -D_FORTIFY_SOURCE=2, -isystem, /Users/lucascolley/mambaforge/envs/scipy-dev/include
    commands: arm64-apple-darwin20.0.0-clang++
    linker: ld64
    linker args: -Wl,-pie, -Wl,-headerpad_max_install_names, -Wl,-dead_strip_dylibs,
      -Wl,-rpath,/Users/lucascolley/mambaforge/envs/scipy-dev/lib, -L/Users/lucascolley/mambaforge/envs/scipy-dev/lib,
      -ftree-vectorize, -fPIC, -fPIE, -fstack-protector-strong, -O2, -pipe, -stdlib=libc++,
      -fvisibility-inlines-hidden, -fmessage-length=0, -isystem, /Users/lucascolley/mambaforge/envs/scipy-dev/include,
      -D_FORTIFY_SOURCE=2, -isystem, /Users/lucascolley/mambaforge/envs/scipy-dev/include
    name: clang
    version: 15.0.7
  cython:
    commands: cython
    linker: cython
    name: cython
    version: 3.0.4
  fortran:
    args: -march=armv8.3-a, -ftree-vectorize, -fPIC, -fno-stack-protector, -O2, -pipe,
      -isystem, /Users/lucascolley/mambaforge/envs/scipy-dev/include
    commands: /Users/lucascolley/mambaforge/envs/scipy-dev/bin/arm64-apple-darwin20.0.0-gfortran
    linker: ld64
    linker args: -Wl,-pie, -Wl,-headerpad_max_install_names, -Wl,-dead_strip_dylibs,
      -Wl,-rpath,/Users/lucascolley/mambaforge/envs/scipy-dev/lib, -L/Users/lucascolley/mambaforge/envs/scipy-dev/lib,
      -march=armv8.3-a, -ftree-vectorize, -fPIC, -fno-stack-protector, -O2, -pipe,
      -isystem, /Users/lucascolley/mambaforge/envs/scipy-dev/include
    name: gcc
    version: 12.3.0
  pythran:
    include directory: ../../../mambaforge/envs/scipy-dev/lib/python3.10/site-packages/pythran
    version: 0.13.1
Machine Information:
  build:
    cpu: aarch64
    endian: little
    family: aarch64
    system: darwin
  cross-compiled: false
  host:
    cpu: aarch64
    endian: little
    family: aarch64
    system: darwin
Python Information:
  path: /Users/lucascolley/mambaforge/envs/scipy-dev/bin/python3.10
  version: '3.10'

Do we just need to add something like
if not pythran.version().version_compare('>=0.14.0')
  error('SciPy requires pythran >= 0.14.0')
endif

to https://github.com/scipy/scipy/blob/3b332041522eb6128f040eba98caab5622abf397/meson.build#L137-L143 ?

Your proposed solution sounds correct to me, as you know the pyproject.toml guard mostly applies to the isolated pip build.


web_benchmarks_html  text_canvas_layout.html.multi_line.layout.outlierAverage needs a baseline

Archived. We're not using outlierAverage anymore.


dartaotruntime is missing from Linux .deb package

Dart SDK Version Dart SDK version: 2.17.3 (stable) (Unknown timestamp) on "linux_x64"

If I install Dart from dart_2.17.3-1_amd64.deb then dartaotruntime is missing.
Whilst if I install it from dartsdk-linux-x64-release.zip it's there in dart-sdk/bin/dartaotruntime

I cannot reproduce this.  If I delete my entire dart installation, and then install it using
sudo dpkg -i dart_2.17.3-1_amd64.deb

then I do get the dartaotruntime executable in /usr/lib/dart/bin/dartaotruntime.

Yep. The file is indeed there, and it seems the problem is that /usr/bin/dart is symlinked to ../lib/dart/bin/dart whilst there's no such symlink for dartaotruntime and /usr/lib/dart/bin/ isn't on the PATH.

@mit-mit We can consider if adding a symlink to that runtime library is appropriate.  I'm not sure what the distribution plan is for executable compiled Dart programs.  Just making them work locally by putting the runtime on the PATH is not enough to let them also be distributed.


Add Ruuvi Cloud plan information on the My Ruuvi Account page

Details need to be specified better before implementing but we'd need to show at least:
My Ruuvi Account
Signed in user
<EMAIL_ADDRESS>Current Ruuvi plan
Ruuvi Cloud Pro
Ruuvi plan’s expiry date
31 March 2023
Information
This is a completely free app that does not support monthly subscription purchases or other in-app purchases. If you are a user of the Ruuvi Gateway router and you are looking for more detailed information about your Ruuvi account, go to our website and sign in.
Tietoja
Tämä on täysin ilmainen sovellus, joka ei tue kuukausitilausten ostoja tai muita sovelluksen sisäisiä ostoja. Mikäli olet Ruuvi Gateway -reitittimen käyttäjä ja etsit tarkempia Ruuvi-tilisi tietoja, siirry kotisivuillemme ja kirjaudu sisään.

Denis : I can show subscription name and expiration date. Someone should write instructions and provide links

@andreevdenis content for My Ruuvi Account has been updated to card description

QA passed

@andreevdenis let's simplify this for 2.0 release, use what is shown in iOS build currently.
We need to improve this after 2.0.

QA passed, moving to 2.1 and we will review with @laurijamsa

Closing this issue for now as topic is moved to internal discussion.


How to hide the scrollbar

I need to hide the scroll bar to display the full tree but I can not find out how to override styles for tree-viewport.

Facing exactly the same issue. I also want to override the tree-viewport styles. Hope it is resolved soon.

The code below (SASS), uses full height and applies a horizontal scrollbar removing th eword breaks
tree-viewport {
  display: grid !important;
  overflow-y: hidden !important;

  & div:first-child {
    & div:first-child {
      height: 100% !important;
      word-wrap: break-word !important;
      white-space: nowrap !important;
    }
  }
}


Update the 'Computers where Domain Users can read LAPS passwords' Query

Description
It is better to leave the "Computers where Domain Users can read LAPS passwords" Query unconstrained regarding Domain Group membership to avoid false negative results.

Motivation and Context
The previous query limits the results in cases where Domain Users belong to Domain Groups that are not members of the "Domain Users" Group.
How Has This Been Tested?
I have experienced engagements where Users belong to the default "Domain Users" Group and a custom "LAPS" Domain Group. The default query would first find membership to the "LAPS" Domain Group and then stop querying for membership in the "Domain Users" Group, resulting in showing no results. However, those Users had the target permission.
Types of changes
Removed WHERE m.objectid ENDS WITH "-513"\n from the query.

I have read the CLA Document and I hereby sign the CLA

recheck

@Pri3st - this saved query aims to show explicitly where the Domain Users group has permissions to RDP to systems (hence "Domain Users" is capitalized in the query name). The change suggested will show anywhere any user has RDP access, which, although an accurate and potentially interesting query, does not meet the intent of this saved query.


[BugFix] Recalculate max_continuous_version after schema change finished

We will create a new tablet for each original tablet and we will write original tablet and new tablet during schema change. We will construct a version_graph to keep versions info for each table and the following code is how to update version_graph:
void VersionGraph::add_version_to_graph(const Version& version) {
    _add_version_to_graph(version);
    if (version.first == _max_continuous_version + 1) {
        _max_continuous_version = _get_max_continuous_version_from(_max_continuous_version + 1);
    } else if (version.first == 0) {
        // We need to reconstruct max_continuous_version from zero if input version is starting from zero
        // e.g.
        // 1. Tablet A is doing schema change
        // 2. We create a new tablet B releated A, and we will create a initial rowset and _max_continuous_version
        //    will be updated to 1
        // 3. Tablet A has a rowset R with version (0, m)
        // 4. Schema change will try convert R
        // 5. The start version of R (0) is not equal to `_max_continuous_version + 1`, and the _max_continuous_version
        //    will not update
        _max_continuous_version = _get_max_continuous_version_from(0);
    }
}

There exists a scenario where _max_continuous_version cannot be updated correctly
e.g.

create a new tablet t2 for origin tablet t1 during schema change and t2 has version 91,92,93,95,96,97,98. version 94 write failed.
when running schema change job, alter version is 98 and t1 has version [0-90], [91-96], 97, 98
max_continuous_version of t2 is 0 before convert rowset. After convert version [0-90], max_continuous_version is update to 93 because t2 has version 91-93 before.
max_continuous_version don't update because the left rowsets version is not satisfy update condition(version.fisrt == 0 or version.first == _max_continuous_verison + 1). So the max_continuous_version will keep 93 after convert rowset finished.
we will check the max_continuous_version of t2 at last and it should not less than alter version. But max_continuous_version(93) is less than alter version(98), so the alter job failed at last.

The main reason is we don't update _max_continuous_version correctly during alter job, we should recalculate the max_continuous_version after rowset conversion.
What type of PR is this:

[x] BugFix
[ ] Feature
[ ] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] This pr will affect users' behaviors
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

Bugfix cherry-pick branch check:

[x] I have checked the version labels which the pr will be auto-backported to the target branch

[x] 3.1
[x] 3.0
[x] 2.5
[ ] 2.4

[FE PR Coverage Check]
:heart_eyes: pass : 0 / 0 (0%)

[FE PR Coverage Check]
:heart_eyes: pass : 0 / 0 (0%)

@Mergifyio backport branch-3.0

@Mergifyio backport branch-2.5

https://github.com/StarRocks/starrocks/pull/28513 backport branch-2.5


Add support to new languages

This PR adds support for several major languages. They are all already supported by Prism library, so there are no new dependencies.
Languages added:

Dart
Elixir
Erlang
F#
INI
Lua
ObjectiveC
Perl
Rust
Typescript

Great! Thanks for your contribution!


DOUBLY CIRCULAR Linked list [GSSOC'21]

💥 Proposal
I am a GSSOC'21 participant.
I want to add the code for doubly circular linked list in C++.
1.Delete from beginning
2.Delete from END
3.Delete from SPECIFIC POSITION
4.INSERT from beginning
5.INSERT from END
6.INSERT from SPECIFIC POSITION
Have you read the Contributing Guidelines on Pull Requests?
yes

@neha030 Hi, I assigned you. Happy Coding!😊


fix: missing metrics during broker shutdown.

Instead of forcing a reply from all brokers to a 'ListGroups' call, give it a shorter timeout and use only valid values. The broker that is currently shutting down will fail to answer and timeout after 5s, but all other metrics from other brokers are returned and used. As on clean shutdown broker hands over consumer groups to others then it should mean that also no metrics are actually lost.

Hi @poolik,
Thank you for your contribution! We really value the time you've taken to put this together.
Before we proceed with reviewing this pull request, please sign the Lightbend Contributors License Agreement:
https://www.lightbend.com/contribute/cla

Was meant to be a internal experiment initially.


Removed substr call in amqp routing key generator

Fixed todo from #197

Remove substr TODO in AmqpHandler

Rebase branch and changed fix after changes in master

Thanks


Add deep extend with default theme if provided

What

Add deep extend with default theme if provided
New dependency deep-extend
Extend documentation using flowtype syntax
Update test

Coverage remained the same at 100.0% when pulling 75255358cc9b941dbc3f74cf335c4a372a8a3f85 on extend-default-theme into e0fd396824dc40f7da84ab9f0f4cd3f07a31c565 on master.


Not working on Mobile

Hello everyone !
I am using react-native-web-modal on an Expo Web project.
In the web side, it's totally working, but when I try on mobile, I have this issue :

The error was found here ->  node_modules/modal-enhanced-react-native-web/dist/index.js:1:42664
Do you have an idea of what could cause this issue ?
Thanks.

Yep, doesn't work. I have the same issue.

So as a workaround you might want to do something like this:
import { Platform } from 'react-native';

...

if (Platform.OS !== 'web') {
    // render your MOBILE version
} else {
    // render your WEB version
}

BTW this is a duplicate of #13, #8
@rayandrews Can you close this issue? And do you have time to maintain this? Can you add more contributors?

@virgil9306
I am currently rewriting this whole lib into typescript and support new API of React such as hooks, etc.
I am planning to add more contributors soon.
Still getting so many bugs. I hope I can release it soon.
The only problem lies within the React Native Modal Enhanced.
The backdrop and animation seems not working well with the new Typescript implementation on their side too.
For now I will keep opening this issue until this matter has been resolved.
Thank you!
PS:
I am not in this organization again.
I will release it on my own repo to make this library still compatible and overridable within the organization.

My simple solution:
`
import { View, Text, StyleSheet, TouchableOpacity, ScrollView, Image, FlatList, Modal, Dimensions, Platform } from 'react-native';
import ModalWeb from 'modal-react-native-web';
...
const ModalModule = Platform.OS === 'web'?ModalWeb:Modal;
<ModalModule
visible={isModalVisible}
animationType="fade"
transparent={true}

...

`

@rayandrews are you still planning on maintaining this?

@nandorojo yes for bug fixes. The feature is already considered complete. i will look into the bug fixes and pull requests later, still having other works to d. However, I hope I can do them this week.
I am planning on rewriting the modal (to use hooks etc, because react native have supported it) and removing obsolete API from React. The code is still buggy and cannot show the animations properly.
Sorry for the delay 😔

modal is now supported in react native web.
there is no point on continuing this library.
https://github.com/necolas/react-native-web/releases/tag/0.14.0
I will close this


String de-duplication for localtime_r

Since this is already brought up in https://github.com/rust-lang/miri/issues/3470#issuecomment-2460600407, I will just open a new issue for this.
To resolve the FIXME here, https://github.com/rust-lang/miri/blob/052bdcb72dda94f0ac0284304503d25de28acc6b/src/shims/time.rs#L198-L199
we could do:

We should have allocate_bytes which allocates a byte slice, and that should use the cache. allocate_str can call that, and transmute the result to &str.

Hi @tiif, @RalfJung, could you please assign this issue to me? I’d like to work on it.

Done.

Thanks for the PR! I am replying here so that the issue has at least a rough sketch of some mentoring instructions.
However, adding a new string cache is the wrong approach here. We already have a deduplication machinery in Miri: this.allocate_str. We don't want a second system doing the same thing. We definitely don't want static storing Pointer, that will go completely wrong if someone runs more than one Miri interpreter instance in the same process.
So this change will have to be done in stages:

first a rustc PR that adds a new allocate_bytes, very similar to allocate_str that exist here. allocate_str should then use allocate_bytes.
Then a Miri PR that changes the timezone logic to use allocate_bytes. (We don't really need the alloc_os_str_as_c_str stuff there since we start with a String for the timezone, not an OsString.)

No this has not been fixed yet...

 to a master branch, and you have the permission to close issues here.

This is a long-standing GifHub design flaw. The "fixes" magic commit messages are applied when you push to the default branch of a fork.
Most contributors "fix" this by not keeping their master branch up to date which is gross but better than randomly closing issues. I recently ran into the same problem and had to tweak my local workflow as a result. It's really unfortunate.


Add Deployment Button to README.md

An easy deployment button should be added to the project's README.md similar to this: https://docs.docker.com/docker-cloud/apps/deploy-to-cloud-btn/
Inspiration comes from here: https://github.com/RocketChat/Rocket.Chat#deployment
Meshblu adds also "Install on Digital Ocean" button, which would be great for us: https://github.com/octoblu/meshblu#digitalocean

@janko-isidorovic I investigated Docker Cloud a bit - it demands an account and hosts on Digital Ocean or AWS or similar. So this deployment is not really so straight-forward.
I would not favorize this approach (Docker Cloud) in comparing with other payed services, so I think best would be to close this issue for now - it is not needed.
If later proves as needed, we can re-open it.


Error comes out when building from source.

I am trying to compell pyscf 2.0.1 from newest source code by using cmake 3.22.1 .
The error shows as follow:
[ 31%] Built target np_helper
[ 32%] Building C object gto/CMakeFiles/cgto.dir/fill_int2c.c.o
In file included from /home/huangzigeng/pyscf/pyscf/lib/gto/fill_int2c.c:22:0:
/home/huangzigeng/pyscf/pyscf/lib/deps/include/cint.h:162:40: error: ‘SIMDD’ undeclared here (not in a function)
 #define ALIGNMM __attribute__((aligned(SIMDD*8)))
                                        ^
/home/huangzigeng/pyscf/pyscf/lib/deps/include/cint.h:253:9: note: in expansion of macro ‘ALIGNMM’
         ALIGNMM double ai[SIMDD];
         ^~~~~~~
gto/CMakeFiles/cgto.dir/build.make:75: recipe for target 'gto/CMakeFiles/cgto.dir/fill_int2c.c.o' failed
make[2]: *** [gto/CMakeFiles/cgto.dir/fill_int2c.c.o] Error 1
CMakeFiles/Makefile2:376: recipe for target 'gto/CMakeFiles/cgto.dir/all' failed
make[1]: *** [gto/CMakeFiles/cgto.dir/all] Error 2
Makefile:90: recipe for target 'all' failed
make: *** [all] Error 2

The pyscf has been build successfully when I use cmake 3.21.3 or 3.18. But some warnings still come out as following:
/opt/tiger/pyscf/pyscf/lib/vhf/nr_direct.c: In function 'CVHFdot_nrs2ij':
/opt/tiger/pyscf/pyscf/lib/vhf/nr_direct.c:48:19: warning: unused variable 'jsh1' [-Wunused-variable]
   48 |         const int jsh1 = jshls[1]; \
      |                   ^~~~
/opt/tiger/pyscf/pyscf/lib/vhf/nr_direct.c:116:17: note: in expansion of macro 'DECLARE_ALL'
  116 |                 DECLARE_ALL;
      |                 ^~~~~~~~~~~
/opt/tiger/pyscf/pyscf/lib/vhf/nr_direct.c: In function 'CVHFdot_nrs2kl':
/opt/tiger/pyscf/pyscf/lib/vhf/nr_direct.c:52:19: warning: unused variable 'lsh1' [-Wunused-variable]
   52 |         const int lsh1 = lshls[1]; \
      |                   ^~~~
/opt/tiger/pyscf/pyscf/lib/vhf/nr_direct.c:138:17: note: in expansion of macro 'DECLARE_ALL'
  138 |                 DECLARE_ALL;
      |                 ^~~~~~~~~~~
/opt/tiger/pyscf/pyscf/lib/vhf/nr_direct.c: In function 'CVHFdot_nrs4':
/opt/tiger/pyscf/pyscf/lib/vhf/nr_direct.c:52:19: warning: unused variable 'lsh1' [-Wunused-variable]
   52 |         const int lsh1 = lshls[1]; \
      |                   ^~~~
/opt/tiger/pyscf/pyscf/lib/vhf/nr_direct.c:165:17: note: in expansion of macro 'DECLARE_ALL'
  165 |                 DECLARE_ALL;
      |                 ^~~~~~~~~~~
/opt/tiger/pyscf/pyscf/lib/vhf/nr_direct.c:48:19: warning: unused variable 'jsh1' [-Wunused-variable]
   48 |         const int jsh1 = jshls[1]; \
      |                   ^~~~
/opt/tiger/pyscf/pyscf/lib/vhf/nr_direct.c:165:17: note: in expansion of macro 'DECLARE_ALL'
  165 |                 DECLARE_ALL;
      |                 ^~~~~~~~~~~
/opt/tiger/pyscf/pyscf/lib/vhf/nr_direct.c: In function 'CVHFdot_nrs8':
/opt/tiger/pyscf/pyscf/lib/vhf/nr_direct.c:50:19: warning: unused variable 'ksh1' [-Wunused-variable]
   50 |         const int ksh1 = kshls[1]; \
      |                   ^~~~
/opt/tiger/pyscf/pyscf/lib/vhf/nr_direct.c:193:9: note: in expansion of macro 'DECLARE_ALL'
  193 |         DECLARE_ALL;
      |         ^~~~~~~~~~~
/opt/tiger/pyscf/pyscf/lib/vhf/nr_sgx_direct.c: In function 'SGXdot_nrk':
/opt/tiger/pyscf/pyscf/lib/vhf/nr_sgx_direct.c:138:62: warning: passing argument 3 of 'SGXnr_pj_prescreen' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  138 |                         if (SGXnr_pj_prescreen(shls, vhfopt, atm, bas, env)) {
      |                                                              ^~~
/opt/tiger/pyscf/pyscf/lib/vhf/nr_sgx_direct.c:97:29: note: expected 'int *' but argument is of type 'const int *'
   97 |                        int *atm, int *bas, double *env)
      |                        ~~~~~^~~
/opt/tiger/pyscf/pyscf/lib/vhf/nr_sgx_direct.c:138:67: warning: passing argument 4 of 'SGXnr_pj_prescreen' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  138 |                         if (SGXnr_pj_prescreen(shls, vhfopt, atm, bas, env)) {
      |                                                                   ^~~
/opt/tiger/pyscf/pyscf/lib/vhf/nr_sgx_direct.c:97:39: note: expected 'int *' but argument is of type 'const int *'
   97 |                        int *atm, int *bas, double *env)

In file included from /opt/tiger/pyscf/pyscf/lib/dft/grid_basis.c:23:
/opt/tiger/pyscf/pyscf/lib/gto/grid_ao_drv.h:30: warning: "SIMDD" redefined
   30 | #define SIMDD           8
      |
In file included from /opt/tiger/pyscf/pyscf/lib/gto/grid_ao_drv.h:23,
                 from /opt/tiger/pyscf/pyscf/lib/dft/grid_basis.c:23:
/opt/tiger/pyscf/pyscf/lib/deps/include/cint.h:156: note: this is the location of the previous definition
  156 | #define SIMDD   2
      |
In file included from /opt/tiger/pyscf/pyscf/lib/dft/nr_numint.c:22:
/opt/tiger/pyscf/pyscf/lib/gto/grid_ao_drv.h:30: warning: "SIMDD" redefined
   30 | #define SIMDD           8
      |
In file included from /opt/tiger/pyscf/pyscf/lib/gto/grid_ao_drv.h:23,
                 from /opt/tiger/pyscf/pyscf/lib/dft/nr_numint.c:22:
/opt/tiger/pyscf/pyscf/lib/deps/include/cint.h:156: note: this is the location of the previous definition
  156 | #define SIMDD   2
      |
In file included from /opt/tiger/pyscf/pyscf/lib/dft/r_numint.c:23:
/opt/tiger/pyscf/pyscf/lib/gto/grid_ao_drv.h:30: warning: "SIMDD" redefined
   30 | #define SIMDD           8
      |
In file included from /opt/tiger/pyscf/pyscf/lib/gto/grid_ao_drv.h:23,
                 from /opt/tiger/pyscf/pyscf/lib/dft/r_numint.c:23:
/opt/tiger/pyscf/pyscf/lib/deps/include/cint.h:156: note: this is the location of the previous definition
  156 | #define SIMDD   2
      |
In file included from /opt/tiger/pyscf/pyscf/lib/dft/numint_uniform_grid.c:30:
/opt/tiger/pyscf/pyscf/lib/gto/grid_ao_drv.h:30: warning: "SIMDD" redefined
   30 | #define SIMDD           8
      |
In file included from /opt/tiger/pyscf/pyscf/lib/gto/grid_ao_drv.h:23,
                 from /opt/tiger/pyscf/pyscf/lib/dft/numint_uniform_grid.c:30:
/opt/tiger/pyscf/pyscf/lib/deps/include/cint.h:156: note: this is the location of the previous definition
  156 | #define SIMDD   2
      |

/opt/tiger/pyscf/pyscf/lib/pbc/fill_ints.c: In function '_nr3c_fill_kk':
/opt/tiger/pyscf/pyscf/lib/pbc/fill_ints.c:152:51: warning: variable 'empty' set but not used [-Wunused-but-set-variable]
  152 |         int i, m, msh0, msh1, dijm, dijmc, dijmk, empty;
      |                                                   ^~~~~
/opt/tiger/pyscf/pyscf/lib/pbc/fill_ints.c: In function '_nr3c_fill_k':
/opt/tiger/pyscf/pyscf/lib/pbc/fill_ints.c:428:38: warning: variable 'empty' set but not used [-Wunused-but-set-variable]
  428 |         int i, m, msh0, msh1, dijmc, empty;
      |                                      ^~~~~
/opt/tiger/pyscf/pyscf/lib/pbc/fill_ints.c: In function '_nr2c_fill':
/opt/tiger/pyscf/pyscf/lib/pbc/fill_ints.c:1019:43: warning: variable 'empty' set but not used [-Wunused-but-set-variable]
 1019 |         int m, msh0, msh1, dmjc, ish, di, empty;
      |                                           ^~~~~
In file included from /opt/tiger/pyscf/pyscf/lib/pbc/grid_ao.c:25:
/opt/tiger/pyscf/pyscf/lib/gto/grid_ao_drv.h:30: warning: "SIMDD" redefined
   30 | #define SIMDD           8
      |
In file included from /opt/tiger/pyscf/pyscf/lib/gto/grid_ao_drv.h:23,
                 from /opt/tiger/pyscf/pyscf/lib/pbc/grid_ao.c:25:
/opt/tiger/pyscf/pyscf/lib/deps/include/cint.h:156: note: this is the location of the previous definition
  156 | #define SIMDD   2
      |
/opt/tiger/pyscf/pyscf/lib/pbc/fill_ints_sr.c: In function '_nr2c_k_fill':
/opt/tiger/pyscf/pyscf/lib/pbc/fill_ints_sr.c:149:39: warning: variable 'empty' set but not used [-Wunused-but-set-variable]
  149 |     int m, msh0, msh1, dmjc, ish, di, empty;
      |                                       ^~~~~
/opt/tiger/pyscf/pyscf/lib/pbc/fill_ints_sr.c: In function '_nr3c_bvk_k':
/opt/tiger/pyscf/pyscf/lib/pbc/fill_ints_sr.c:781:34: warning: variable 'empty' set but not used [-Wunused-but-set-variable]
  781 |     int i, m, msh0, msh1, dijmc, empty;
      |                                  ^~~~~
/opt/tiger/pyscf/pyscf/lib/pbc/fill_ints_sr.c: In function '_nr3c_k':
/opt/tiger/pyscf/pyscf/lib/pbc/fill_ints_sr.c:1072:34: warning: variable 'empty' set but not used [-Wunused-but-set-variable]
 1072 |     int i, m, msh0, msh1, dijmc, empty;
      |                                  ^~~~~
/opt/tiger/pyscf/pyscf/lib/pbc/fill_ints_sr.c: In function '_nr3c_bvk_kk':
/opt/tiger/pyscf/pyscf/lib/pbc/fill_ints_sr.c:1477:54: warning: variable 'empty' set but not used [-Wunused-but-set-variable]
 1477 |     int i, m, msh0, msh1, dijm, dijmc, dijmk, dijkc, empty;
      |                                                      ^~~~~
/opt/tiger/pyscf/pyscf/lib/pbc/fill_ints_sr.c: In function '_nr3c_kk':
/opt/tiger/pyscf/pyscf/lib/pbc/fill_ints_sr.c:1759:54: warning: variable 'empty' set but not used [-Wunused-but-set-variable]
 1759 |     int i, m, msh0, msh1, dijm, dijmc, dijmk, dijkc, empty;
      |

And the gcc must be version 11.2, the version 6.3 and 8.3 will get the same error above.

And it has been found that RCCSD has not been improved in cases of H10\12\20\40 ring and CH4. But it had a good performance in Hartree-Fock and FCI which is confused me.

@beimojiguang, sorry for taking so long to get back to you. I have a couple of followup questions/suggestions that will help us narrow down possible problems:

It looks like you're compiling qcint rather than the default libcint. Can you try compiling libcint instead and let us know if pyscf compiles without any errors?
Are you saying the<EMAIL_ADDRESS><EMAIL_ADDRESS>and<EMAIL_ADDRESS>with<EMAIL_ADDRESS>all give the same error (error: ‘SIMDD’ undeclared here (not in a function))?
Are you saying<EMAIL_ADDRESS>with<EMAIL_ADDRESS>and<EMAIL_ADDRESS>compile without error?

@jamesETsmith, thanks for your reply and the hard work for developing pyscf package! And sorry for that I did not made my problems clear.

The qcint and libcint both have been tried in my linux server with Anaconda virtual environment (version 2020.11-Linux-x86_64 and 2021.11-Linux-x86_64). The errors come out with the same type.
Yes for bath qcint and libcint.
Yes. But the errors 'SIMDD' turn into warnings. And gxx & gcc has to be update to 11.2.0 to make sure compelling successful by using the order conda install -c conda-forge gcc and conda install -c conda-forge gxx_linux-64.
pyscf with version 2.0.0 which use qcint and libcint with version 4.4.5 could be compelled successfully with<EMAIL_ADDRESS><EMAIL_ADDRESS>and<EMAIL_ADDRESS>

IT WORKS!
Thanks and sorry for take so long time to reply you!
It has been tested with<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>&<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>but I have not tested other combination.
Thank you very much!
And I hope this could be update in document (https://pyscf.org/install.html) in some day!


Add work-life-balance extension

Description

Screencast

Checklist

[x] I read the extension guidelines
[x] I read the documentation about publishing
[x] I ran npm run build and tested this distribution build in Raycast
[x] I checked that files in the assets folder are used by the extension itself
[x] I checked that assets used by the README are placed outside of the metadata folder

We're working on something exciting, something a bit similar to this - could we wait for that and bring it up later again? Did you also see our Auto Quit Apps?

We're working on something exciting, something a bit similar to this - could we wait for that and bring it up later again? Did you also see our Auto Quit Apps?

@pernielsentikaer Thank you for your comment. I believe we are working on different things.
I’ve tried Auto Quit and initially thought it could quit applications based on specific triggers or conditions, but it seems to work differently. That’s part of the reason I created my extension—while it’s semi-automatic, it addresses a different purpose.
Auto Quit is great for helping people stay focused on work. In contrast, my Work-Life-Balance extension aims to help people prioritize their life outside of work. These reflect different aspects of life and cater to different lifestyles. After all, computers aren’t just for working—they’re also tools for living.
I hope this perspective resonates, and if you find the approach useful, I’d be thrilled if you could consider merging the pull request. Thank you for your time and the amazing work you do!

We're working on something entirely different from Auto Quit, which is quite similar to this, but it might first be released in Q1. This extension is pretty hardcoded with the applications it will quit, right?

We're working on something entirely different from Auto Quit, which is quite similar to this, but it might first be released in Q1. This extension is pretty hardcoded with the applications it will quit, right?

Yes and there are tons of extensions that supports only one hardcoded app in the Raycast Store, right?

We're working on something entirely different from Auto Quit, which is quite similar to this, but it might first be released in Q1. This extension is pretty hardcoded with the applications it will quit, right?

I’ve done some research and realized that releasing this extension passively might cause the "future" official extension to violate “Reasons to be Rejected” 4 or 5. I understand that this may be what you’re concerned about.

There is an active extension available on our Store providing very similar value

We encourage the Author to iterate on existing extensions, add new functionality, fix bugs, or even re-write it.

There is an open PR for an extension providing very similar value

I understand your concerns, but I promise I won’t ask you to remove the future official extension. My extension takes a more lifestyle-oriented approach, and I believe the future official one will differ significantly.
Raycast is a great product, and I don’t want either of us to feel upset.

From a user perspective, it doesn't make sense to have a hardcoded list, as I might not find the same applications necessary to quit or may want different ones.

From a user perspective, it doesn't make sense to have a hardcoded list, as I might not find the same applications necessary to quit or may want different ones.

I will add support for app list customisation in future version.


Prototypical implementation of a query language that can operate on the in-memory graph.

At the moment, the in-memory graph is transformed into an XML tree (using lxml module), then XPath is used to query the XML tree.
Since XPath is quite complex to get started with and we need a more fine-grained query capabilities other than defined in BIDSLayout, there should be a simple query language providing the most basic operations:

traversal of the in-memory graph
filtering objects using simple boolean algebra (not, and, or) and conditional operators (eq, lt, gt, re)

Example:
dataset = ancpbids.load_dataset("path/to/dataset")
dataset.query(
  select(model.Artifact)
  .where(eq(model.Artifact.suffix, 'bold'))
)

I.e. the query language is a internal DSL using functions to define query expressions.

ancpBIDS has no dependency to lxml/XPath/XML any more as its own query language is a sufficient and flexible replacement


Environment variable not found: DATABASE_CONNECTION_STRING.

Hi,
While trying to setup the project locally on my machine, I am getting this error when running the script: yarn prisma:setup

Environment

Operating System:  Ubuntu 22.04.3 LTS

@timothycarambat
I did some research and i found that Prisma read environment vars from a .env file by default and in case we want to work with multiple .env files there is a configuration that has to be done.
So I had to add the following in order to run the yarn prisma:setup command successfully :

If this is an issue that has to be solved, I am ready to work on it.

This was still the case after running yarn devSetup?
https://github.com/Mintplex-Labs/vector-admin/blob/e7659c94476cb3329cb3ade9f5a49cc9915d99d3/devSetup.js#L11
Which is supposed to set up a server .env and have the variable in it (to a default string that can be modified)

This was still the case after running yarn devSetup?
https://github.com/Mintplex-Labs/vector-admin/blob/e7659c94476cb3329cb3ade9f5a49cc9915d99d3/devSetup.js#L11
Which is supposed to set up a server .env and have the variable in it (to a default string that can be modified)

Yes, after running yarn dev:setup script just the .env.development file  is created as mentioned in here :
https://github.com/Mintplex-Labs/vector-admin/blob/e7659c94476cb3329cb3ade9f5a49cc9915d99d3/devSetup.js#L11-L16
But i think Prisma expects a .env by default not .env.something, i had to either create an .env file and manually write my environment variables or set the .env file for Prisma like that :

You are correct, i updated the dev:setup to create both files now or else it is totally unclear that that backend/.env is required. Of course, the user still needs to update the connection string to be correct, but it is less ambiguous now and the prisma commands will use that connection in the backend/.env now.


ESM - Rollup - Livereload reloads before build is complete

I am reporting an issue with

[ ] TypeScript definitions
[x] another resource in this repository

When making a code change in the esm-samples/rollup sample, the livereload functionality reloads the page before the build is complete. This means that you don't see your results.
Replicate

Open up the esm-samples/rollup sample
Run npm run watch
Open the browser to the url that it's serving at
Make a change to src/main.js - notice the browser reloads immediately instead of waiting until rollup creates the new build. Your changes are not visible in the browser until another manual refresh.

Solution
I think this line should be changed back to watch: "public/main.js":
https://github.com/Esri/jsapi-resources/commit/fee9972adf2f79da407520297d6e635a955a7be1#diff-a986b29e061aacf63dfdf0a257f1ed01cf388a5ded3827a3d2c99e630a574898L20

Thanks @gavinr, I was able to repro. Here's the PR: https://github.com/Esri/jsapi-resources/pull/326

Closing via PR https://github.com/Esri/jsapi-resources/pull/326

Thanks!


Is there any plan to add nonlinear quantization method in the future version of Post-train Quantization?

Hi,
It is really a wonderful project that helps me a lot in the model compression. Thanks!!
As described in title, I want to know that is there any plan to add nonlinear quatization method in the future version since nonlinear method can acquire higher compression ratio? The weight sharing method introduced in "Song Han, Deep compression: compressing deep neural networks with pruning, trained quantization and Huffman coding, ICLR 2016" may be a good nonlinear quantization method.
Look forward to your reply.
Thanks again!!

Hi,
Sorry for the late response. Unfortunately, we're not planning on implementing non-linear quantization.
Closing this issue due to staleness.


system-wide installation not behaving as expected

Current behaviour by sudo zap install

Installs into /usr/local/bin
Symlinks AppImages into /root/.local/bin
Not sure where it tries to puts the .desktop, but a find tells me it fails to put it anywhere

Expected behaviour

Installs into /usr/local/bin
Symlinks AppImages into /usr/local/bin
Puts .desktop into /usr/share/applications
Puts icons in /usr/share/icons

The current implications of system-wide installation is that zap can used by any user but apps can't be installed system-wide. Zap should automatically switch to system-wide installation of the app when invoked with sudo. A --user flag will be used for user installation or the default could be user installation introducing the --system flag
zap --version
Zap version Build:v<IP_ADDRESS>.gdc5b7ff<PHONE_NUMBER>

That's a really good idea. I will mark it as a feature request.

Same happened with me today!
$ zap install guiscrcpy ? Choose a release continuous ? Choose a asset guiscrcpy-v4.12.0-8-g97c0bcd.dev.r.glibc2.31-x86_64.AppImage Downloading guiscrcpy-v4.12.0-8-g97c0bcd.dev.r.glibc2.31-x86_64.AppImage of size 122.24 MB.  ? Proceed? Yes Downloading guiscrcpy [i]:  100% [====================] (4.876 MB/s)           ? Do you want to integrate this appimage? Yes guiscrcpy installed successfully ✨

And then it's nowhere to be found (I can obviously run it through the terminal)

Same happened with me today! $ zap install guiscrcpy ? Choose a release continuous ? Choose a asset guiscrcpy-v4.12.0-8-g97c0bcd.dev.r.glibc2.31-x86_64.AppImage Downloading guiscrcpy-v4.12.0-8-g97c0bcd.dev.r.glibc2.31-x86_64.AppImage of size 122.24 MB. ? Proceed? Yes Downloading guiscrcpy [i]: 100% [====================] (4.876 MB/s) ? Do you want to integrate this appimage? Yes guiscrcpy installed successfully ✨
 And then it's nowhere to be found (I can obviously run it through the terminal)

Some appimages do not contain a desktop file or zap fails to extract it, thats a different issue

Same behavior

Same behavior

One year later? I have given up on Linux as a whole.

For the above particular error, best I could suggest is
zap install --github --from=srevinsaju/guiscrcpy guiscrcpy


mailto not working (new tab is opened and mail client is not)

Hi.

I believe that fa5de9234dd47b1f30e334191f5df43bca322be5 causes the problem.
Thanks!

Thanks for the quick fix @gcushen.
The mailto still opens in a new tab and

Thanks for the feedback, it should be fixed now.


Add .spec.secure field to CRD

Proposed Changes

:bug: we have the .spec.secure field defined in the GH source type, but don't have it in the CRD: https://github.com/knative-extensions/eventing-github/blob/ae3b7ca05fc11408e19c71a1038eadf1935f53c8/pkg/apis/sources/v1alpha1/githubsource_types.go#L84

This PR addresses it and adds it to the CRD.

/assign @pierDipi @matzew

/cc @pierDipi

/cherry-pick release-1.11


HA 2024.11.0b1 - Integration does not start

Describe the bug
Does not start and gives this error :
`Logger: homeassistant.setup
Source: setup.py:269
First occurred: 16:34:48 (1 occurrences)
Last logged: 16:34:48
Setup failed for custom integration 'playstation_network': Requirements for playstation_network not found: ['PSNAWP-HA==2.1.0'].`
`Logger: homeassistant.util.package
Source: util/package.py:152
First occurred: 16:34:47 (3 occurrences)
Last logged: 16:34:48
Unable to install package PSNAWP-HA==2.1.0: × No solution found when resolving dependencies: ╰─▶ Because psnawp-ha==2.1.0 depends on attrs==23.2.0 and attrs==24.2.0, we can conclude that psnawp-ha==2.1.0 cannot be used. And because you require psnawp-ha==2.1.0, we can conclude that your requirements are unsatisfiable.`

Thanks @Thrasher2020! Fixed in release 0.5.2
https://github.com/JackJPowell/hass-psn/releases/tag/v0.5.2


io.Copy(os.Stdout, p.StdOut()) coding exception

When I run example "ping", Console display content coding exception，The statement executed is：io.Copy(os.Stdout, p.StdOut())，I used UTF-8 coding, but it didn't help. How to deal with text coding to make the console display normally？The exception display text is
���� Ping golang.org [<IP_ADDRESS>] ���� 32 �ֽڵ�����:
���� <IP_ADDRESS> �Ļظ�: �ֽ�=32 ʱ��=37ms TTL=52
���� <IP_ADDRESS> �Ļظ�: �ֽ�=32 ʱ��=26ms TTL=52

Hi. Apologies for the massive lateness.
How are you building and running the code?
What is your environment os, terminal setup, OS ?
I am not able to replicate on a terminal running OSX.


Error during initial setup

Problem description
After the installation step is done, I created a registry account and in the "Finish Setup" step when I enter my Operator ID (Hedera Account) and Operator KEY (Hedera Account Private Key), I am redirected to the page where we enter geography, law, tags and ISIC code, After I fill the form and click connect I am getting this error (full logs in Administration section) :
Error: credential is not valid JSON-LD: {
"type": "MISSING_PROPERTIES_IN_CONTEXT",
"details": [
"credentialSubject.ISIC",
"credentialSubject.geography",
"credentialSubject.law",
"credentialSubject.tags"
]
}
at /usr/local/guardian-service/node_modules/@transmute/vc.js/dist/vc.js.cjs.production.min.js:1:5864
at runMicrotasks ()
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Step to reproduce
Steps to reproduce the behavior:

Go to User Profile
Enter the Operator ID (Hedera Account) and Operator KEY (Hedera Account Private Key) in the Finish Setup form and click Next.
Enter the geography, law, tags and ISIC values as USA, USA, Verra, 051 062 repectively.
See error MISSING_PROPERTIES_IN_CONTEXT as pop up

Expected behavior
No error and continue setup as expected.
Screenshots

That seems a problem with the configuration file, possibly related to IPFS not being able to record the VC.
Are you using the local IPFS node provided in the repo? In that case you need to set IPFS_PROVIDER="local" ignoring the IPFS_STORAGE_API_KEY variable.
If you are using web3storage, please verify the IPFS_PROVIDER is set to web3storage and the IPFS_STORAGE_API_KEY is set accordingly.
In case these remediations don't solve the issue, can you provide more details about your configuration (guardian version, docker version, etc.) and the logs from "Guardian UI -> Administration -> Logs -> Save logs"?

Hi @Neurone, Thanks for such a quick response, you were right to assume that it was an issue with the IPFS config.
I was using a local IPFS configuration, instead of cloud one. I followed this doc to be exact:
https://docs.hedera.com/guardian/guardian/readme/getting-started/installation/building-from-source-and-run-using-docker#4.1-setting-up-ipfs-local-node
I used the default value for IPFS_PUBLIC_GATEWAY=https://localhost:8080/ipfs/${cid} and  IPFS_NODE_ADDRESS=http://localhost:5001/ as provided in the documentation.

I was thinking that since all services were launched through docker-compose they should be accessible through
http://localhost:port as they are in the same internal network in docker.
Changing the values for IPFS service in env to:
IPFS_PUBLIC_GATEWAY="http://ipfs-node:8080/ipfs/${cid}"
and
IPFS_NODE_ADDRESS="http://ipfs-node:5001"
seems to have fixed the issue.
Thank you again!

Thanks for pointing out the doc, we will fix it.


[QUESTION] How best to generate OpenAPI schema with reusable enums?

First check

[X] I used the GitHub search to find a similar issue and didn't find it.
[X] I searched the FastAPI documentation, with the integrated search.
[X] I already searched in Google "How to X in FastAPI" and didn't find any information.

Description
How can I generate an OpenAPI schema with reusable enum classes?
If I have 2 pydantic models that reference the same enum class. By default, the generated OpenAPI schema will look something like this:
{
  "components": {
    "schemas": {
      "Foo": {
        "title": "Foo",
        "type": "object",
        "properties": {
          "some_enum": {
            "title": "Some Enum",
            "enum": ["VALUE_ONE", "VALUE_TWO"],
            "type": "string"
          }
        }
      },
      "Bar": {
        "title": "Bar",
        "type": "object",
        "properties": {
          "some_enum": {
            "title": "Some Enum",
            "enum": ["VALUE_ONE", "VALUE_TWO"],
            "type": "string"
          }
        }
      }
    }
  }
}

I'm looking for a way to generate something like this instead:
{
  "components": {
    "schemas": {
      "Foo": {
        "title": "Foo",
        "type": "object",
        "properties": {
          "some_enum": {
            "$ref": "#/components/schemas/SomeEnum"
          }
        }
      },
      "Bar": {
        "title": "Bar",
        "type": "object",
        "properties": {
          "some_enum": {
            "$ref": "#/components/schemas/SomeEnum"
          }
        }
      },
      "SomeEnum": {
        "type": "string",
        "enum": ["VALUE_ONE", "VALUE_TWO"]
      }
    }
  }
}

The main use case for this feature is to facilitate client code generation — the first schema will produce 2 separate enum classes in the client code, whereas the second schema will generate a single enum class that's referenced in both the Foo and Bar models. This follows the "Reusable enums" pattern here:
https://swagger.io/docs/specification/data-models/enums/
I recognize that this is related to pydantic as well as fastapi, but given that fastapi has its own OpenAPI layer on top of pydantic, I was hoping to find a solution here.
Is there a recommended way to achieve this behavior?

I've the same problem. Did you find any solutions?

@deterok I opened this PR in the pydantic repo:
https://github.com/samuelcolvin/pydantic/pull/1432
This issue will be fixed once that PR gets merged in. Feel free to chime in on that PR if you need it sooner.
For now, I'll go ahead and close this issue since it's really more of a pydantic thing.

Thanks for reporting back and closing the issue @calvinwyoung! :bow:

Sorry for the long delay! 🙈  I wanted to personally address each issue/PR and they piled up through time, but now I'm checking each one in order.


At rules are removed, although they are not detected as errors

I've created a repository with a minimal example: https://github.com/j-a-m-l/failed-stylelint-config
So, when I run npm run check:style, I don't have any errors related to the usage of any at-rule in:
@use 'transitions'

@a---asdasf
@lolo

:root
  --header-height: 64px

body
  overflow: hidden

but, if I use npm run fix:style, all those rules are remove:
// (empty line)
// (empty line)
:root
  --header-height: 64px

body
  overflow: hidden

I've disabled my plugins and presets, but it is still happening.

@j-a-m-l Sorry for the late answer.

I've disabled my plugins and presets, but it is still happening.

This kind of makes it sound like the problem would be related to how stylelint is autofixing the Vue/Sass combo, which is something that I can not really help with since that functionality is part of the code stylelint library offering instead of this collection of rules.
Just to verify, have you check if the stylelint documentation mentions anything about the Sass syntax support? Alternatively you could try using the SCSS syntax with Vue and see if you still run into the same problem.

Thank you. I'm currently focused on other project, so I wouldn't have time to check it soon, but I'll test that when I've finished.


Added instructions for lazy

No need since this plugin is deprecated. Thanks though!

No need since this plugin is deprecated. Thanks though!

And what is the substitute?

@raffaem this functionality is included in auto-session. The auto-session readme explains how to set it up and use it


Headers missing from static assets

When I push my app out via this CDK module, there does not appear to be an easy way to have headers like "strict-transport-security" set for static assets. Is there a recommended process for this?
An example would be the css files _next/static/css/7cd2ca589f13dfff.css
This is necessary for CSP headers and others as well.

@derekmurawsky, please checkout the new overrides props. It will allow for the customization you need. Would appreciate any feedback you have on the API too! Thank you 🙏


Fixed tf-opt build for incorrect namespace.

This is already fixed at head:
https://github.com/google/iree/blob/9c3282cc98df4b404d43fc4a76e21daa65ac49a3/integrations/tensorflow/compiler/iree-tf-opt-main.cpp#L37-L38

Sounds good. Just encountered and didn't expect a fix to be landed.


feat: resolve End-Of-Line Comments of kotlin field

Codecov Report

Merging #173 (53db484) into master (b49fa8c) will decrease coverage by 0.081%.
The diff coverage is 16.327%.

Additional details and impacted files

@@               Coverage Diff               @@
##              master      #173       +/-   ##
===============================================
- Coverage     39.437%   39.355%   -0.081%
- Complexity      1095      1096        +1
===============================================
  Files            215       215
  Lines          10546     10578       +32
  Branches        2603      2617       +14
===============================================
+ Hits            4159      4163        +4
- Misses          5553      5581       +28
  Partials         834       834

Flag
Coverage Δ

unittests
39.355% <16.327%> (-0.081%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

...m/itangcent/intellij/psi/AbstractPsiClassHelper.kt
49.589% <0.000%> (ø)

.../com/itangcent/intellij/psi/DefaultSourceHelper.kt
10.526% <0.000%> (ø)

...m/itangcent/intellij/jvm/kotlin/KotlinDocHelper.kt
0.000% <0.000%> (ø)

...itangcent/intellij/jvm/kotlin/KotlinPsiResolver.kt
0.000% <0.000%> (ø)

...main/kotlin/com/itangcent/intellij/jvm/PsiUtils.kt
23.810% <15.385%> (-3.777%)
:arrow_down:

...kotlin/com/itangcent/intellij/psi/PsiClassUtils.kt
61.667% <40.000%> (-1.396%)
:arrow_down:

...angcent/intellij/jvm/standard/StandardDocHelper.kt
68.000% <66.667%> (+0.039%)
:arrow_up:

Continue to review full report at Codecov.

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


Allow you to set a timeout on a NewDocument method call

I currently have to use a separate request library to have this functionality, I may implement this and create a pull request with your permission.

Hello,
Thanks for your interest, but as I mentioned in other issues (e.g. https://github.com/PuerkitoBio/goquery/issues/161#issuecomment-285486665), the NewDocument function is really just an (unfortunate) helper that shouldn't be used for robust apps - what you'd want instead is to handle the request using the net/http package directly, with all the timeouts and bells and whistles at your disposition, and when you're happy with the response, call NewDocumentWithReader.
In fact, the documentation should mention this and I'd be glad to merge a doc PR that helps make that clear. But not a PR to add features around this helper function, this (and arguably the helper function itself) is out of scope for goquery.
Thanks,
Martin


Fix compose lint explanation strings

Figured out a few things

I had the trailing \ characters backward. That's only if you want to continue on a newline in source but not actually in the real message. So I've removed them here as we do want the newlines where they are.
Figured out the trimIndent() stuff. It's not necessary when passing a string into the explanation field of an Issue creation, but is still necessary for messages passed into a context.report(...) call.

Hmm, may wanna go the extra mile and remove the intermediate newline

Yep