Consider using the go-ego/gse package for text segmentation

Hi,
Thanks to @smeshkov for developing tagify, which can help us extract text as tags very well. However, one limitation at the moment is that its Chinese text segmentation is poor.
It appears that the text segmentation with the go-ego/gse package could provide enhancement, and it can be used here?

hey @waybackarchiver thanks for reaching out, I'll have a look and will let you know

hey @waybackarchiver, following up on the issue, hence I'm not familiar in the Chinese language, could you provide some examples of input in Chinese which produce poor results and what would be an expected outputs instead.
It will help me to understand the problem better. Thanks.

@smeshkov thank you for your reply, here are some poor results from the tagify with red underscroe, which are not segmentation to a word.
source: https://zhuanlan.zhihu.com/p/22637948

source: https://telegra.ph/我们是小小小小小的代价--新世界-04-20-3

source: https://ipfs.io/ipfs/bafybeiaozidubdewtpkvdb3jflgi2632iqwmqkqyqijn5nees4qtnal5ci

Thank you @waybackarchiver any chance you could send me the output as a text instead of an image?

Thank you @waybackarchiver any chance you could send me the output as a text instead of an image?

Updated https://github.com/zoomio/tagify/issues/12#issuecomment-1107366773

@smeshkov If more information is required, I will gratefully provide all.

hey @waybackarchiver , I apologise for a delay, been busy with other stuff. I've just released version 0.59.0, which is using go-ego/gse for Chinese and Japanese languages. Please let me know if it works for you as expected.

@smeshkov Thank you for your hard work!
I'll try out the new segmentation logic and report back.


Can I do ratelimit based on sub of jwt token?

I would like to do rate limit based on the sub of the jwt token. Every user with valid token will be allowed a maximmum number of limits per second/minute etc.

The rate limit service does not operate at this level. I would probably look at the code that is implementing the JWT support. If that is Envoy I would look for help there.


INPUT/OUTPUT section formatting updates

Docs Build status updates of commit 92316e0:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

exchange/exchange-ps/exchange/Get-EXOMailboxFolderPermission.md
:white_check_mark:Succeeded
View (exchange-ps)

exchange/exchange-ps/exchange/Get-EXOMailboxFolderStatistics.md
:white_check_mark:Succeeded
View (exchange-ps)

exchange/exchange-ps/exchange/Get-EXOMailboxPermission.md
:white_check_mark:Succeeded
View (exchange-ps)

exchange/exchange-ps/exchange/Get-EXOMailboxStatistics.md
:white_check_mark:Succeeded
View (exchange-ps)

exchange/exchange-ps/exchange/Get-EXOMobileDeviceStatistics.md
:white_check_mark:Succeeded
View (exchange-ps)

exchange/exchange-ps/exchange/Get-EXORecipient.md
:white_check_mark:Succeeded
View (exchange-ps)

exchange/exchange-ps/exchange/Get-EXORecipientPermission.md
:white_check_mark:Succeeded
View (exchange-ps)

exchange/exchange-ps/exchange/Get-ExternalInOutlook.md
:white_check_mark:Succeeded
View (exchange-ps)

exchange/exchange-ps/exchange/Get-FilePlanPropertyAuthority.md
:white_check_mark:Succeeded
View (exchange-ps)

exchange/exchange-ps/exchange/Get-FilePlanPropertyCategory.md
:white_check_mark:Succeeded
View (exchange-ps)

exchange/exchange-ps/exchange/Get-FilePlanPropertyCitation.md
:white_check_mark:Succeeded
View (exchange-ps)

exchange/exchange-ps/exchange/Get-FilePlanPropertyDepartment.md
:white_check_mark:Succeeded
View (exchange-ps)

exchange/exchange-ps/exchange/Get-FilePlanPropertyReferenceId.md
:white_check_mark:Succeeded
View (exchange-ps)

exchange/exchange-ps/exchange/Get-FilePlanPropertyStructure.md
:white_check_mark:Succeeded
View (exchange-ps)

exchange/exchange-ps/exchange/Get-FilePlanPropertySubCategory.md
:white_check_mark:Succeeded
View (exchange-ps)

exchange/exchange-ps/exchange/Get-FocusedInbox.md
:white_check_mark:Succeeded
View (exchange-ps)

exchange/exchange-ps/exchange/Get-HoldCompliancePolicy.md
:white_check_mark:Succeeded
View (exchange-ps)

exchange/exchange-ps/exchange/Get-HoldComplianceRule.md
:white_check_mark:Succeeded
View (exchange-ps)

exchange/exchange-ps/exchange/Get-HostedOutboundSpamFilterRule.md
:white_check_mark:Succeeded
View (exchange-ps)

exchange/exchange-ps/exchange/Get-InformationBarrierPoliciesApplicationStatus.md
:white_check_mark:Succeeded
View (exchange-ps)

exchange/exchange-ps/exchange/Get-InformationBarrierPolicy.md
:white_check_mark:Succeeded
View (exchange-ps)

exchange/exchange-ps/exchange/Get-InformationBarrierRecipientStatus.md
:white_check_mark:Succeeded
View (exchange-ps)

exchange/exchange-ps/exchange/Get-Label.md
:white_check_mark:Succeeded
View (exchange-ps)

exchange/exchange-ps/exchange/Get-LabelPolicy.md
:white_check_mark:Succeeded
View (exchange-ps)

exchange/exchange-ps/exchange/Get-LicenseVsUsageSummaryReport.md
:white_check_mark:Succeeded
View (exchange-ps)

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


VPC main route table reference is impossible

Given Chef definition similar to the following:
aws_vpc 'NorthVirginia' do
  cidr_block '<IP_ADDRESS>/16'
  enable_dns_support true
  enable_dns_hostnames true
  instance_tenancy :default
  internet_gateway true
  main_route_table 'VA_Private_Route'
end

aws_route_table 'VA_Private_Route' do
  vpc 'NorthVirginia'
  routes('<IP_ADDRESS>/8' => 'internal_vpn',
             '<IP_ADDRESS>/0' => :internet_gateway)
end

This generates an error that 'VA_Private_Route' route table does not exist. We could move the aws_route_table above the aws_vpc but then we get the inverse. We thought maybe we could simply leave off the vpc attribute with the aws_route_table but that's a required attribute. We have a circular dependency with no way out. The code comments suggest we would be able to provide a reference in main_route_table and it would be nice. If we don't define a main_route_table Chef will create one for us but it will be unnamed and not quite as clean.
Any insight in to how this is supposed to work and/or how we should go about fixing? Thanks.

Not sure why, but I can't reproduce this now. The reference works fine.

I found this reference in jk/create_delete_update - https://github.com/chef/chef-provisioning-aws/blob/jk/create_update_delete/docs/examples/ref_full.rb#L17-34 suggesting that the way to accomplish this is to create the VPC (sans main_route_table reference), then create the route table, then define the VPC resource again (this time specifying the main_route_table). This works, amazingly. How is this not triggering resource cloning CHEF-3694 warnings? :)

Fixed in jk/create_update_delete.


Add weighted_model_count binary

Goal: unblock Lisa! Ref: #155.
To use, with:
formula.sexp (this formula represents X XOR Y):
(And (Or (Var X) (Var Y)) (Or (Not (Var X)) (Not (Var Y))))

config.json:
{
  "order": ["Y", "X"]
}

weights.json:
{
    "X": {
      "low": 0.3,
      "high": 0.7
    },
    "Y": {
      "low": 0.4,
      "high": 0.6
    }
}

Run:
$ cargo run --bin weighted_model_count --features="cli" -- -f formula.sexp -c config.json -w weights.json
0.45999999999999996

(floating-point rounding error!)
Run with -v to get more statistics.
smoothing
In the previous example, the weights added to 1, so smoothing wasn't needed. However, you may want to have smoothing! In that case, run with --smooth.
Here's one example where they differ:
formula.sexp
(Or (And (Or (Var X) (Var Y)) (Or (Not (Var X)) (Not (Var Y)))) (And (Or (Var X) (Var Z)) (Or (Not (Var X)) (Not (Var Z)))))

config.json
{ "order": ["Y", "X", "Z"] }

weights.json
{
  "X": {
    "low": 0.1,
    "high": 0.2
  },
  "Y": {
    "low": 0.3,
    "high": 0.4
  },
  "Z": {
    "low": 0.5,
    "high": 0.6
  }
}

$ cargo run --bin weighted_model_count --features="cli" -- -f bloop.sexp -c bloop.json -w weights.json
0.15800000000000003
$ cargo run --bin weighted_model_count --features="cli" -- -f bloop.sexp -c bloop.json -w weights.json --smooth
0.16800000000000004

While both of these are rounding errors, the latter is the correct WMC!

Here's another example that demonstrates the new primitives:
(Xor (Iff (Var X) (Var Y)) (Ite (Var Z) (Not (Var X)) (Not (Var Y))))

Adding the new workflow for partial model assignment!
formula.sexp:
(And (Or (Var X) (Var Y)) (Or (Not (Var X)) (Not (Var Y))))

config.json:
{
  "partials": [
    { "X": true },
    { "X": false }
  ]
}

weights.json:
{
    "X": {
      "low": 0.3,
      "high": 0.7
    },
    "Y": {
      "low": 0.4,
      "high": 0.6
    }
}

running
cargo run --bin weighted_model_count --features="cli" -- -f formula.sexp -c config.json -w weights.json -o out.json

generates:
{
  "bdd_size": 2,
  "results": [
    {
      "partial_model": {
        "X": true
      },
      "wmc": 0.4
    },
    {
      "partial_model": {
        "X": false
      },
      "wmc": 0.6
    }
  ]
}


SqliteError: SQL logic error when using with better-sqlite3 under node

Hi there! I'm trying to get something simple running using better-sqlite3 by following the instructions here: https://alexgarcia.xyz/sqlite-vss/nodejs.html
My code looks as follows:
import Database from 'better-sqlite3';
import * as sqlite_vss from 'sqlite-vss';

const db = new Database(':memory:');
sqlite_vss.load(db);

const version = db.prepare('select vss_version()').pluck().get();
console.log(version);

db.exec('create virtual table vss_demo using vss0(a(3));');

const stmt = db.prepare('INSERT INTO vss_demo VALUES (?)');
const selectStmt = db.prepare('SELECT * from vss_demo;');

const embedding1 = [0.1, 0.2, 0.3];
const embedding2 = [0.2, 0.3, 0.4];

stmt.run(JSON.stringify(embedding1));
stmt.run(JSON.stringify(embedding2));

console.log(selectStmt.all());

The select vss_version() call works, printing v0.1.1-alpha.20, which tells me that the extension is successfully installed and that better-sqlite3 is working.
However, when trying to insert two embeddings, on the second I get the following:
❯ node index.mjs
v0.1.1-alpha.20

file:///Users/jbateson/code/sqlite-vss-testing/index.mjs:19
stmt.run(JSON.stringify(embedding2));
     ^
SqliteError: SQL logic error
    at file:///Users/jbateson/code/sqlite-vss-testing/index.mjs:19:6
    at ModuleJob.run (node:internal/modules/esm/module_job:198:25)
    at async Promise.all (index 0)
    at async ESMLoader.import (node:internal/modules/esm/loader:385:24)
    at async loadESM (node:internal/process/esm_loader:88:5)
    at async handleMainPromise (node:internal/modules/run_main:61:12) {
  code: 'SQLITE_ERROR'
}

If I remove the second insertion call, and insert only one entry, I get no error but the select query seems to return nothing (which implies that the first insertion didn't work):
❯ node index.mjs
v0.1.1-alpha.20
[ { a: null } ]

I'm not sure if this is me doing something wrong - unfortunately the node docs only contain examples for insertions and not table creation or querying - but I've tried to also read https://alexgarcia.xyz/sqlite-vss/getting-started.html#introduction too and those examples give me a similar inscrutible "SQL logic error". I also can't spot any node testcases in this repo from which to copy from.
I've created a repro of this at https://github.com/jdb8/sqlite-vss-testing if that's helpful. Please let me know if you're unable to repro or have more questions!

Thank you for the detailed report @jdb8 !
Can you update the INSERTs to also include a unique rowid, like this:
const stmt = db.prepare('INSERT INTO vss_demo(rowid, a) VALUES (?, ?)');
const selectStmt = db.prepare('SELECT * from vss_demo;');

const embedding1 = [0.1, 0.2, 0.3];
const embedding2 = [0.2, 0.3, 0.4];

stmt.run(1, JSON.stringify(embedding1));
stmt.run(2, JSON.stringify(embedding2));

If that works, then I think that indicates a bug within sqlite-vss. When you insert into a vss0 table without providing a rowid, it should come up with a new valid rowid but that part may not be working correctly

Thanks for the quick response!
Just tried that out, and it does seem to fix the problem! I'm no longer getting the SQL logic error when I manually specify a rowid. Funnily enough, I had tried something like this before, but I think I incorrectly tried to update the create virtual table call to pass in the rowid there rather than treating the virtual table as having an implicit generated rowid column.
So that's great. In terms of the output though, now that I'm re-reading https://alexgarcia.xyz/sqlite-vss/getting-started.html#introduction, is it actually expected that select * would not return the JSON embeddings themselves? I think I was assuming that { a: null } implied the rows hadn't been inserted, but now that I make a real query with a where-clause, I'm at least able to extract distance:
const selectStmt = db.prepare('SELECT rowid, distance from vss_demo where vss_search(a, ?) limit 5;');
console.log(selectStmt.all(JSON.stringify([0.1, 0.2, 0.4])));

->
❯ node index.mjs
v0.1.1-alpha.20
[
  { rowid: 1, distance: 0.009999998845160007 },
  { rowid: 2, distance: 0.020000003278255463 }
]

Is there any way to return the original embeddings for each of those rows? Even though in reality I'd likely just use the rowid to select from a non-virtual table anyway, but curious if this is possible for debugging (I'm a bit unfamiliar with how virtual tables work under the hood, if you couldn't tell 😅)

I'm still working through the getting started page (and all of the alexgarcia.xyz/sqlite-vss site), so apologies if you find issues there!
I'm pushing 0.1.1-alpha.21 right now, which will allow you to reference vss0 column directly and get the raw embedding value, in the "raw bytes" format. You can then decode that directly in Node with Float32Array  use vector_to_json() to convert it to JSON.
Though keep in mind, Faiss might encode/decode your vectors and cause it to slightly change, especially if you use a custom factory string. So something like 0.09431782043791359 might return as 0.09431782958475, but you likely notice much of a difference

ok 0.1.1-alpha.21 is out, including an npm package, please try it out and lmk if it works for you!

@asg017 awesome, works great! Thanks for releasing this so quickly.
Might be a silly question, but when I try to use Float32Array to convert the returned embedding, I get quite different results - e.g. for the input 3-dimensional vector of [0.1, 0.2, 0.3], I seem to be getting back something like:
Float32Array(12) [
    205, 204, 204,  61, 205,
    204,  76,  62, 154, 153,
    153,  62
  ]

This is via
const results = selectStmt.all();
for (const { embedding } of results) {
    const floatArray = new Float32Array(embedding);
    console.log({ floatArray });
}

I also tried setting the last argument of Float32Array to 3 (as the length?) but that gave me the same result. I'm definitely doing something wrong here, but not sure what :(
Also, I'm not sure what the syntax for using vector_to_json() would be - I tried a naive select vector_to_json(*) from vss_demo but that gave me SqliteError: wrong number of arguments to function vector_to_json().

It would be select vector_to_json(a) from vss_demo, which would return the JSON array of the a embedding, as a string so you'll have to JSON.parse it


Help please

Hello there,
After succesful login i'm getting this message, i searched all issues but cannot succeeded.
Any help is appreciated
2016-08-12 12:17:50,272 [       cli] [INFO] PokemonGO Bot v1.0
2016-08-12 12:17:50,291 [       cli] [INFO] Configuration initialized
2016-08-12 12:17:50,291 [pokemongo_bot.health_record.bot_event] [INFO] Health check is enabled. For more information:
2016-08-12 12:17:50,291 [pokemongo_bot.health_record.bot_event] [INFO] https://github.com/PokemonGoF/PokemonGo-Bot/tree/dev#analytics
2016-08-12 12:17:50,629 [requests.packages.urllib3.connectionpool] [INFO] Starting new HTTP connection (1): www.google-analytics.com
2016-08-12 12:17:53,142 [PokemonGoBot] [INFO] [set_start_location] Setting start location.
2016-08-12 12:17:53,143 [PokemonGoBot] [INFO] [x] Coordinates found in passed in location, not geocoding.
2016-08-12 12:17:53,143 [PokemonGoBot] [INFO] [location_found] Location found: 41.007782, 28.979013 (41.007782, 28.979013, 0.0)
2016-08-12 12:17:53,143 [PokemonGoBot] [INFO] [position_update] Now at (41.007782, 28.979013, 0)
2016-08-12 12:17:53,153 [PokemonGoBot] [INFO] [login_started] Login procedure started.
2016-08-12 12:18:02,205 [PokemonGoBot] [INFO] [login_successful] Login successful.
2016-08-12 12:18:03,980 [PokemonGoBot] [INFO]
2016-08-12 12:18:03,981 [PokemonGoBot] [INFO] --- userxxx ---
2016-08-12 12:18:03,981 [PokemonGoBot] [INFO] Level: 21 (Next Level: 55143 XP) (Total: 279857 XP)
2016-08-12 12:18:03,981 [PokemonGoBot] [INFO] Pokemon Captured: 882 | Pokestops Visited: 1126
2016-08-12 12:18:03,982 [PokemonGoBot] [INFO] Pokemon Bag: 16/250
2016-08-12 12:18:03,982 [PokemonGoBot] [INFO] Items: 248/350
2016-08-12 12:18:03,982 [PokemonGoBot] [INFO] Stardust: 50095 | Pokecoins: 10
2016-08-12 12:18:03,982 [PokemonGoBot] [INFO] PokeBalls: 50 | GreatBalls: 98 | UltraBalls: 43
2016-08-12 12:18:03,982 [PokemonGoBot] [INFO] RazzBerries: 50 | BlukBerries: 0 | NanabBerries: 0
2016-08-12 12:18:03,983 [PokemonGoBot] [INFO] LuckyEgg: 2 | Incubator: 0 | TroyDisk: 3
2016-08-12 12:18:03,983 [PokemonGoBot] [INFO] Potion: 0 | SuperPotion: 0 | HyperPotion: 0 | MaxPotion: 0
2016-08-12 12:18:03,983 [PokemonGoBot] [INFO] Incense: 0 | IncenseSpicy: 0 | IncenseCool: 0
2016-08-12 12:18:03,983 [PokemonGoBot] [INFO] Revive: 0 | MaxRevive: 0
2016-08-12 12:18:03,983 [PokemonGoBot] [INFO]
2016-08-12 12:18:03,983 [PokemonGoBot] [INFO] Found encrypt.so! Platform: darwin Encrypt.so directory: /Users/userxxx/Downloads/PokemonGo-Bot-master
2016-08-12 12:18:03,983 [PokemonGoBot] [INFO]
2016-08-12 12:18:07,845 [SleepSchedule] [INFO] [next_sleep] Next sleep at 2016-08-12 22:50:45.826621
2016-08-12 12:18:09,406 [       cli] [INFO]
2016-08-12 12:18:09,407 [       cli] [INFO] Ran for 0:00:16
2016-08-12 12:18:09,407 [       cli] [INFO] Total XP Earned: 0  Average: 0.00/h
2016-08-12 12:18:09,407 [       cli] [INFO] Travelled 0.00km
2016-08-12 12:18:09,407 [       cli] [INFO] Visited 0 stops
2016-08-12 12:18:09,407 [       cli] [INFO] Encountered 0 pokemon, 0 caught, 0 released, 0 evolved, 0 never seen before
2016-08-12 12:18:09,407 [       cli] [INFO] Threw 0 pokeballs
2016-08-12 12:18:09,407 [       cli] [INFO] Earned 0 Stardust
2016-08-12 12:18:09,407 [       cli] [INFO]
2016-08-12 12:18:09,407 [       cli] [INFO] Highest CP Pokemon:
2016-08-12 12:18:09,408 [       cli] [INFO] Most Perfect Pokemon:
Traceback (most recent call last):
  File "pokecli.py", line 514, in <module>
    main()
  File "pokecli.py", line 83, in main
    tree = TreeConfigBuilder(bot, config.raw_tasks).build()
  File "/Users/userxxx/Downloads/PokemonGo-Bot-master/pokemongo_bot/tree_config_builder.py", line 43, in build
    worker = self._get_worker_by_name(task_type)
  File "/Users/userxxx/Downloads/PokemonGo-Bot-master/pokemongo_bot/tree_config_builder.py", line 21, in _get_worker_by_name
    raise ConfigException('No worker named {} defined'.format(name))
pokemongo_bot.tree_config_builder.ConfigException: No worker named UpdateLiveStats defined
2016-08-12 12:18:09,494 [sentry.errors] [ERROR] Sentry responded with an error: 'ascii' codec can't decode byte 0x9c in position 1: ordinal not in range(128) (url: https://app.getsentry.com/api/90254/store/)
Traceback (most recent call last):
  File "/Users/userxxx/Downloads/PokemonGo-Bot-master/pokemonEnv/lib/python2.7/site-packages/raven/transport/threaded.py", line 174, in send_sync
    super(ThreadedHTTPTransport, self).send(data, headers)
  File "/Users/userxxx/Downloads/PokemonGo-Bot-master/pokemonEnv/lib/python2.7/site-packages/raven/transport/http.py", line 47, in send
    ca_certs=self.ca_certs,
  File "/Users/userxxx/Downloads/PokemonGo-Bot-master/pokemonEnv/lib/python2.7/site-packages/raven/utils/http.py", line 66, in urlopen
    return opener.open(url, data, timeout)
  File "/Users/userxxx/Downloads/PokemonGo-Bot-master/pokemonEnv/lib/python2.7/site-packages/future/backports/urllib/request.py", line 494, in open
    response = self._open(req, data)
  File "/Users/userxxx/Downloads/PokemonGo-Bot-master/pokemonEnv/lib/python2.7/site-packages/future/backports/urllib/request.py", line 512, in _open
    '_open', req)
  File "/Users/userxxx/Downloads/PokemonGo-Bot-master/pokemonEnv/lib/python2.7/site-packages/future/backports/urllib/request.py", line 466, in _call_chain
    result = func(*args)
  File "/Users/userxxx/Downloads/PokemonGo-Bot-master/pokemonEnv/lib/python2.7/site-packages/raven/utils/http.py", line 46, in https_open
    return self.do_open(ValidHTTPSConnection, req)
  File "/Users/userxxx/Downloads/PokemonGo-Bot-master/pokemonEnv/lib/python2.7/site-packages/future/backports/urllib/request.py", line 1284, in do_open
    h.request(req.get_method(), req.selector, req.data, headers)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1057, in request
    self._send_request(method, url, body, headers)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1097, in _send_request
    self.endheaders(body)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1053, in endheaders
    self._send_output(message_body)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 895, in _send_output
    msg += message_body
UnicodeDecodeError: 'ascii' codec can't decode byte 0x9c in position 1: ordinal not in range(128)
2016-08-12 12:18:09,569 [sentry.errors.uncaught] [ERROR] [u'ConfigException: No worker named UpdateLiveStats defined', u'  File "pokecli.py", line 514, in <module>', u'  File "pokecli.py", line 83, in main', u'  File "pokemongo_bot/tree_config_builder.py", line 43, in build', u'  File "pokemongo_bot/tree_config_builder.py", line 21, in _get_worker_by_name']

Your config.json (remove your credentials and any other private info)
{
    "auth_service": "google",
    "username"<EMAIL_ADDRESS>    "password": "userxxx",
    "location": "location",
    "gmapkey": "gmapkey",
    "libencrypt_location": "",
    "tasks": [
      {
        "type": "HandleSoftBan"
      },
      {
        "type": "SleepSchedule",
        "config": {
          "enabled": false,
          "time": "22:54",
          "duration":"7:46",
          "time_random_offset": "00:24",
          "duration_random_offset": "00:43"
        }
      },
      {
        "type": "CollectLevelUpReward"
      },
      {
        "type": "IncubateEggs",
        "config": {
          "longer_eggs_first": true
        }
      },
      {
        "type": "UpdateLiveStats",
        "config": {
          "enabled": false,
          "min_interval": 10,
          "stats": ["uptime", "stardust_earned", "xp_earned", "xp_per_hour", "stops_visited"],
          "terminal_log": true,
          "terminal_title": true
        }
      },
      {
        "type": "TransferPokemon"
      },
      {
        "type": "NicknamePokemon",
        "config": {
          "nickname_template": "{iv_pct}_{iv_ads}"
        }
      },
      {
        "type": "EvolvePokemon",
        "config": {
            "evolve_all": "none",
            "first_evolve_by": "cp",
            "evolve_above_cp": 500,
            "evolve_above_iv": 0.8,
            "logic": "or",
            "evolve_speed": 20,
            "use_lucky_egg": false
        }
      },
      {
        "type": "RecycleItems",
        "config": {
          "min_empty_space": 15,
          "item_filter": {
            "Pokeball":       { "keep" : 100 },
            "Potion":         { "keep" : 10 },
            "Super Potion":   { "keep" : 10 },
            "Hyper Potion":   { "keep" : 10 },
            "Revive":         { "keep" : 10 },
            "Razz Berry":     { "keep" : 50 }
          }
        }
      },
      {
        "type": "CatchVisiblePokemon"
      },
      {
        "type": "CatchLuredPokemon"
      },
      {
        "type": "SpinFort"
      },
      {
        "type": "MoveToFort",
        "config": {
            "lure_attraction": true,
            "lure_max_distance": 2000
        }
      },
      {
        "type": "FollowSpiral",
        "config": {
          "diameter": 4,
          "step_size": 70
        }
      }
    ],
    "map_object_cache_time": 5,
    "forts": {
      "avoid_circles": true,
      "max_circle_size": 50
    },
    "websocket_server": false,
    "walk": 4.16,
    "action_wait_min": 1,
    "action_wait_max": 4,
    "debug": false,
    "test": false,
    "health_record": true,
    "location_cache": true,
    "distance_unit": "km",
    "reconnecting_timeout": 15,
    "catch_randomize_reticle_factor": 1.0,
    "catch_randomize_spin_factor": 1.0,
    "logging_color": true,
    "catch": {
      "any": {"catch_above_cp": 0, "catch_above_iv": 0, "logic": "or"},
      "// Example of always catching Rattata:": {},
      "// Rattata": { "always_catch" : true }
    },
    "release": {
      "any": {"release_below_cp": 0, "release_below_iv": 0, "logic": "or"},
      "// Example of always releasing Rattata:": {},
      "// Rattata": {"always_release": true},
      "// Example of keeping 3 stronger (based on CP) Pidgey:": {},
      "// Pidgey": {"keep_best_cp": 3},
      "// Example of keeping 2 stronger (based on IV) Zubat:": {},
      "// Zubat": {"keep_best_iv": 2},
      "// Also, it is working with any": {},
      "// any": {"keep_best_iv": 3},
      "// Example of keeping the 2 strongest (based on CP) and 3 best (based on IV) Zubat:": {},
      "// Zubat": {"keep_best_cp": 2, "keep_best_iv": 3}
    },
    "vips" : {
         "Any pokemon put here directly force to use Berry & Best Ball to capture, to secure the capture rate!": {},
        "any": {"catch_above_cp": 1200, "catch_above_iv": 0.9, "logic": "or" },
        "Lapras": {},
        "Moltres": {},
        "Zapdos": {},
        "Articuno": {},

        "// S-Tier pokemons (if pokemon can be evolved into tier, list the representative)": {},
        "Mewtwo": {},
        "Dragonite": {},
        "Snorlax": {},
        "// Mew evolves to Mewtwo": {},
        "Mew": {},
        "Arcanine": {},
        "Vaporeon": {},
        "Gyarados": {},
        "Exeggutor": {},
        "Muk": {},
        "Weezing": {},
        "Flareon": {}

    }
}

Other Information
OS: OSX Yosemite 10.10.5
Git Commit: fatal: Not a git repository (or any of the parent directories): .git
Python Version: Python 2.7.12

Git Commit: fatal: Not a git repository (or any of the parent directories): .git
are you running the latest version?

i installed 2.9.2 of Git for the Mac
but when i entered command - git log -n 1 --pretty=format:"%H" - in terminal i get message "Not a git repository (or any of the parent directories): .git"

are you doing that command in the root of the bot folder ?

in which folder i have to try? i tried in PokemonGo-Bot-master folder too

I would suggest than to restart.

i reinstalled and get this error, any suggestions?
2016-08-12 13:21:00,610 [PokemonGoBot] [ERROR] encrypt.so is not found! Please place it in the bots root directory or set libencrypt_location in config.
2016-08-12 13:21:00,610 [PokemonGoBot] [INFO] Platform: darwin Encrypt.so directory: /Users/userxxx/PokemonGo-Bot

use slack chat. there is file you need in there.

or just follow the install instructions...

yep i succeeded thanks!


Fix typos

🗣 Description
This pull request fixes a few typos in the gather-domains.sh script.
💭 Motivation and context
The typos could cause domains to be incorrectly included or discarded, so it is good to correct them.
🧪 Testing
All automated tests pass.
✅ Pre-approval checklist

[x] This PR has an informative and human-readable title.
[x] Changes are limited to a single goal - eschew scope creep!
[x] All relevant type-of-change labels have been added.
[x] I have read the CONTRIBUTING document.
[x] These code changes follow cisagov code standards.
[x] All relevant repo and/or project documentation has been updated to reflect the changes in this PR.
[x] All new and existing tests pass.

✅ Pre-merge checklist

[x] Finalize version.

✅ Post-merge checklist

[x] Create a release.

LGTM 👍


Code disappeared after formatting

I just use this extension and after saving on format, my code just disappear.
And I found that if there exists throw in the tact file, then it will trigger this abnormal behaviour.

[Update] I found that there exists other things can trigger this more than throw 😭

Can you share some code that I can test? Just formatting is not fully tested feature...

Tks for reply. I'd like to highlight the specific scenarios:

Usage of throw

import "./msg_types";

contract Messenger {
    owner: Address; // Router Address
    sourceAddress: Address;
    init(owner: Address){
        self.owner = owner;
    }

    receive(msg: BuildMessenger){
        if (msg.sourceAddress != self.sourceAddress) {
            throw(113);
        }
    }
}

Usage of with without a following word like Ownable

import "./msg_types";
import "@stdlib/ownable";

contract Messenger with {
    owner: Address; // Router Address
    sourceAddress: Address;
    init(owner: Address){
        self.owner = owner;
    }

    receive(msg: BuildMessenger){
        if (msg.sourceAddress != self.sourceAddress) {}
    }
}

I'd appreciate it if you could look into this and advise on a potential fix or workaround. Thank you for your support and dedication to this awesome project.

issue with throw fixed on 1.0.4
the with without a following word like Ownable is not a valid case. The parser doesn't expect this, because it is the same as write if  and didn't continue the input. I don't know why the tact-parser doesn't warn this issue, but I decided that for such cases the code will be remain the same after the formating. And only for a valid code the formatting feature will be applied.

LGTM. Thanks a lot for contributing this neccesary dev tool :+1:

you are welcome, thank you too!


Support for oidc-client-js via redux-oidc

Hi there,
I was wondering whether anyone has been able to get oidc-client-js working with CRA without ejecting?
It is a hard dependency of ours using silent auth implicit flow with kerberos and ldap.
At present we have the following webpack config that we inject in to our apps to support it:
module.exports = {
  entry: {
    silentCallback: ['whatwg-fetch', 'babel-polyfill', './app/src/silent.js']
  },
  plugins: [
    new webpack.optimize.CommonsChunkPlugin({
      name: 'silentCallback',
      chunks: ['commons']
    }),
    new HtmlWebpackPlugin({
      template: './app/src/silent.html',
      chunks: ['silentCallback'],
      filename: 'silent.html',
      inject: 'body'
    }),
    new CopyWebpackPlugin([
      {
        from<EMAIL_ADDRESS>      }
    ])
  ]
}

Would be great to hear any pointers on how to achieve this within CRA or some good places to start in creating some functionality to allow it.
Thanks.

Why can't the html be in the same directory as your app.

It is in the same directory.
My understanding is that if you need it to be a separate entry point with completely different code it needed to be specified in config.

The spa and html has no direct relation. You can use the html from oidc-client than from redux-oidc.
Just set the config to the html (e.g silent_renew.html)

Awesome, I have been thinking about this again recently but haven't had time to experiment. Will comment and close when I have it working.

Got this working, thanks for your help @flip-it !


conditional import

Hi,
The load_state_dict_from_url function has been moved in the latest release of Pytorch. I propose you this little PR to fix the bug with torch 1.10

Closing in favor of #148


Hidden Switcher Option

Instead of displaying a tabbed list with multiple sidebars, only display one.
To be used with the new NavLinks option.
Basically this would replace the need, to override the sidebar component in the following example:

This is an awesome idea! I would like to fiddle around with the nav links a bit first because they don't render well on Mobile at all. But this is on my list to tackle after that.

Thanks for the great library! I am also looking for this feature, it would be useful to have a possibility to hide switcher in case of using nav links.

If anyone would like to create a PR for this then I would be happy to accept it. I would imagine exposing an additional switcherStyle of hidden in the Starlight Utils config that would simply not render any switcher.

Hello, I just created the PR: #48

Hi! This has just been released thanks to @andrii-bodnar 🎉
https://github.com/lorenzolewis/starlight-utils/releases/tag/%40lorenzo_lewis%2Fstarlight-utils%400.1.2


Process files in parallel

Yesterday I wasn't happy with the processing times and thought it could be better. I messed with it a bit more and got the bulk indexing time down from ~9.3s to ~3.7s by processing the files in parallel.

I'm running this on an M2 mac and it's running in about 2.4 sec! 😅


IndexError: string index out of range

I tried to create a training dataset, but there is an error:
File "dataset.py", line 271, in
main()
File "dataset.py", line 267, in main
determiner=determiner)
File "dataset.py", line 66, in split_train_file
''.join(right_temp).replace('\u2581', ' ').replace('', '')):
File "/root/study/ersatz/ersatz/candidates.py", line 72, in call
if right_context[0] == ' ':
IndexError: string index out of range.
I prepared only one sentence in the raw data file, but it still raises this "out of range" error. How can I fix?

Can you clarify what the input is? I'm somewhat confused by using only one sentence as training data.


Issues with using amp.initialize() and torch.FloatTensor

Since the latest update and using the 19.04 container I cannot train models. Please see below:
root@984a583da487:/retinanet-examples# retinanet train retinanet_rn101fpn_2.pth --backbone ResNet101FPN  --images coco/images/train2017/ --annotations coco/annotations/instances_train2017.json --val-images coco/images/val2017/ --val-annotations coco/annotations/instances_val2017.json

Initializing model...
Downloading: "https://download.pytorch.org/models/resnet101-5d3b4d8f.pth" to /root/.torch/models/resnet101-5d3b4d8f.pth
178728960it [00:31, 5759407.31it/s]
model: RetinaNet
backbone: ResNet101FPN
classes: 80, anchors: 9
Selected optimization level O2:  FP16 training with FP32 batchnorm and FP32 master weights.
Defaults for this optimization level are:
enabled                : True
opt_level              : O2
cast_model_type        : torch.float16
patch_torch_functions  : False
keep_batchnorm_fp32    : True
master_weights         : True
loss_scale             : dynamic
Processing user overrides (additional kwargs that are not None)...
After processing overrides, optimization options are:
enabled                : True
opt_level              : O2
cast_model_type        : torch.float16
patch_torch_functions  : False
keep_batchnorm_fp32    : True
master_weights         : True
loss_scale             : 128.0
Traceback (most recent call last):
File "/opt/conda/bin/retinanet", line 11, in
load_entry_point('retinanet==0.1', 'console_scripts', 'retinanet')()
File "/opt/conda/lib/python3.6/site-packages/retinanet/main.py", line 181, in main
worker(0, args, 1, model, state)
File "/opt/conda/lib/python3.6/site-packages/retinanet/main.py", line 127, in worker
metrics_url=args.post_metrics, logdir=args.logdir, verbose=(rank == 0))
File "/opt/conda/lib/python3.6/site-packages/retinanet/train.py", line 34, in train
verbosity = is_master)
File "/opt/conda/lib/python3.6/site-packages/apex/amp/frontend.py", line 311, in initialize
return _initialize(models, optimizers, _amp_state.opt_properties)
File "/opt/conda/lib/python3.6/site-packages/apex/amp/_initialize.py", line 149, in _initialize
check_params_fp32(models)
File "/opt/conda/lib/python3.6/site-packages/apex/amp/_initialize.py", line 81, in check_params_fp32
name, param.type()))
File "/opt/conda/lib/python3.6/site-packages/apex/amp/_amp_state.py", line 31, in warn_or_err
raise RuntimeError(msg)
RuntimeError: Found param backbones.ResNet101FPN.features.conv1.weight with type torch.FloatTensor, expected torch.cuda.FloatTensor.
When using amp.initialize, you do not need to call .half() on your model
before passing it, no matter what optimization level you choose.

Hi, @mbufi. Have you been solved this issue?

Please try to update your driver to 418 for the pytorch:19.04 image. This error seems to be caused by the cuda compatibility layer with older versions of the driver.

Hmm. I have 418.56 driver version already and still have this error at 19.04 image.

@florischabert i have the same problem.
retinanet train \
  retinanet_rn152fpn.pth \
  --backbone ResNet152FPN \
  --batch 1 \
  --classes 80 \
  --iters 10000 \
  --lr 0.0005 \
  --val-iters 500 \
  --images /coco/train2017/ \
  --annotations /coco/annotations/instances_train2017.json \
  --val-images /coco/val2017/ \
  --val-annotations /coco/annotations/instances_val2017.json

File "/opt/conda/bin/retinanet", line 11, in
load_entry_point('retinanet==0.1', 'console_scripts', 'retinanet')()
File "/opt/conda/lib/python3.6/site-packages/retinanet-0.1-py3.6-linux-x86_64.egg/retinanet/main.py", line 181, in main
worker(0, args, 1, model, state)
File "/opt/conda/lib/python3.6/site-packages/retinanet-0.1-py3.6-linux-x86_64.egg/retinanet/main.py", line 127, in worker
metrics_url=args.post_metrics, logdir=args.logdir, verbose=(rank == 0))
File "/opt/conda/lib/python3.6/site-packages/retinanet-0.1-py3.6-linux-x86_64.egg/retinanet/train.py", line 153, in train
mixed_precision=mixed_precision, is_master=is_master, world=world, use_dali=use_dali, verbose=False)
File "/opt/conda/lib/python3.6/site-packages/retinanet-0.1-py3.6-linux-x86_64.egg/retinanet/infer.py", line 47, in infer
verbosity = 0)
File "/opt/conda/lib/python3.6/site-packages/apex/amp/frontend.py", line 311, in initialize
return _initialize(models, optimizers, _amp_state.opt_properties)
File "/opt/conda/lib/python3.6/site-packages/apex/amp/_initialize.py", line 149, in _initialize
check_params_fp32(models)
File "/opt/conda/lib/python3.6/site-packages/apex/amp/_initialize.py", line 81, in check_params_fp32
name, param.type()))
File "/opt/conda/lib/python3.6/site-packages/apex/amp/_amp_state.py", line 31, in warn_or_err
raise RuntimeError(msg)
RuntimeError: Found param backbones.ResNet152FPN.features.conv1.weight with type torch.cuda.HalfTensor, expected torch.cuda.FloatTensor.
When using amp.initialize, you do not need to call .half() on your model
before passing it, no matter what optimization level you choose.

This seems to come from the compat layer with some versions of the driver when using multiprocessing on the latest containers. You can try to rm /etc/shinit before running the retinanet command.
This should be fixed in some future version of the container.

@florischabert it did not help

[  120/90000] focal loss: 1.353, box loss: 0.464, 0.502s/2-batch (fw: 0.186s, bw: 0.313s), 4.0 im/s, lr: 0.0005
[  241/90000] focal loss: 1.287, box loss: 0.457, 0.498s/2-batch (fw: 0.181s, bw: 0.316s), 4.0 im/s, lr: 0.0005
[  366/90000] focal loss: 1.238, box loss: 0.460, 0.483s/2-batch (fw: 0.177s, bw: 0.306s), 4.1 im/s, lr: 0.0005
[  487/90000] focal loss: 1.267, box loss: 0.455, 0.497s/2-batch (fw: 0.182s, bw: 0.312s), 4.0 im/s, lr: 0.0005
Traceback (most recent call last):
File "/opt/conda/bin/retinanet", line 11, in
load_entry_point('retinanet==0.1', 'console_scripts', 'retinanet')()
File "/opt/conda/lib/python3.6/site-packages/retinanet-0.1-py3.6-linux-x86_64.egg/retinanet/main.py", line 181, in main
worker(0, args, 1, model, state)
File "/opt/conda/lib/python3.6/site-packages/retinanet-0.1-py3.6-linux-x86_64.egg/retinanet/main.py", line 127, in worker
metrics_url=args.post_metrics, logdir=args.logdir, verbose=(rank == 0))
File "/opt/conda/lib/python3.6/site-packages/retinanet-0.1-py3.6-linux-x86_64.egg/retinanet/train.py", line 153, in train
mixed_precision=mixed_precision, is_master=is_master, world=world, use_dali=use_dali, verbose=False)
File "/opt/conda/lib/python3.6/site-packages/retinanet-0.1-py3.6-linux-x86_64.egg/retinanet/infer.py", line 47, in infer
verbosity = 0)
File "/opt/conda/lib/python3.6/site-packages/apex/amp/frontend.py", line 311, in initialize
return _initialize(models, optimizers, _amp_state.opt_properties)
File "/opt/conda/lib/python3.6/site-packages/apex/amp/_initialize.py", line 149, in _initialize
check_params_fp32(models)
File "/opt/conda/lib/python3.6/site-packages/apex/amp/_initialize.py", line 81, in check_params_fp32
name, param.type()))
File "/opt/conda/lib/python3.6/site-packages/apex/amp/_amp_state.py", line 31, in warn_or_err
raise RuntimeError(msg)
RuntimeError: Found param backbones.ResNet50FPN.features.conv1.weight with type torch.cuda.HalfTensor, expected torch.cuda.FloatTensor.
When using amp.initialize, you do not need to call .half() on your model
before passing it, no matter what optimization level you choose.

So, it appears that there are two separate issues going on here:
1.) Issues stemming from the compat layer that cause training to fail right away (e.g. RuntimeError: Found param backbones.ResNet101FPN.features.conv1.weight with type **torch.FloatTensor, expected torch.cuda.FloatTensor.**)
2.) Issues occuring during the first validation inference like @Maxfashko is referencing (e.g. RuntimeError: Found param backbones.ResNet50FPN.features.conv1.weight with type **torch.cuda.HalfTensor, expected torch.cuda.FloatTensor.**)
From our testing, 1.) should be resolved by updating the driver to 418 or by using the rm /etc/shinit workaround mentioned above.
2.) looks like a bug in the inference logic: This should be resolved with #29 which has just been merged.
I am going to close this issue: @mbufi, if you are still seeing an issue like 1.) after updating the driver or using the workaround, please reopen and provide some additional details on your specific setup. @Maxfashko, please try with the latest updates and open a separate issue if that does not resolve.


OpenAIEmbeddings

System Info
Traceback:
File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 534, in _run_script
exec(code, module.dict)
File "/app/demo-chatbot/updatedapp.py", line 351, in
asyncio.run(main())
File "/usr/local/lib/python3.9/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/local/lib/python3.9/asyncio/base_events.py", line 647, in run_until_complete
return future.result()
File "/app/demo-chatbot/updatedapp.py", line 214, in main
vectors = file.get_vector()
File "/app/demo-chatbot/file.py", line 39, in get_vector
self.save_vector()
File "/app/demo-chatbot/file.py", line 30, in save_vector
embeddings = OpenAIEmbeddings(openai_api_key=st.secrets["OPEN_AI_KEY"])
File "pydantic/main.py", line 339, in pydantic.main.BaseModel.init
File "pydantic/main.py", line 1102, in pydantic.main.validate_model
File "/home/appuser/venv/lib/python3.9/site-packages/langchain/embeddings/openai.py", line 166, in validate_environment
values["client"] = openai.Embedding
Who can help?
@agola11 OpenAI changed the code https://platform.openai.com/docs/guides/embeddings/what-are-embeddings
Information

[X] The official example notebooks/scripts
[X] My own modified scripts

Related Components

[X] LLMs/Chat Models
[X] Embedding Models
[ ] Prompts / Prompt Templates / Prompt Selectors
[ ] Output Parsers
[ ] Document Loaders
[ ] Vector Stores / Retrievers
[ ] Memory
[X] Agents / Agent Executors
[ ] Tools / Toolkits
[ ] Chains
[ ] Callbacks/Tracing
[ ] Async

Reproduction
Just follow a funciton similar to
def save_vector(self):
    self.create_images()
    self.extract_text()
    loader = TextLoader(f"{self.dir}/info.txt")
    documents = loader.load()
    text_splitter = RecursiveCharacterTextSplitter(chunk_size=1000, chunk_overlap=0)
    documents = text_splitter.split_documents(documents)
    embeddings = OpenAIEmbeddings()
    vectors = FAISS.from_documents(documents, embeddings)

Expected behavior
No traceback adding .create

@paritoshk do you still see this with langchain==0.0.333


[SPARK-43589][SQL][3.3] Fix cannotBroadcastTableOverMaxTableBytesError to use bytesToString

What changes were proposed in this pull request?
This is a logical backporting of #41232
This PR aims to fix cannotBroadcastTableOverMaxTableBytesError to use bytesToString instead of shift operations.
Why are the changes needed?
To avoid user confusion by giving more accurate values. For example, maxBroadcastTableBytes is 1GB and dataSize is 2GB - 1 byte.
BEFORE
Cannot broadcast the table that is larger than 1GB: 1 GB.

AFTER
Cannot broadcast the table that is larger than 1024.0 MiB: 2048.0 MiB.

Does this PR introduce any user-facing change?
Yes, but only error message.
How was this patch tested?
Pass the CIs with newly added test case.

Thank you again, @LuciferYang ! Merged to branch-3.3.


Suggestion for fixes to installation on OSX.

NOTE: XQuartz has to be installed for this to work!
A patch for the configure file changes the libpng suffix (from .so to .dynlib).
The build script checks for if we are using OSX (darwin), and adjusts
the X11 path if we are. There's currently no check to ensure XQuartz
is actually installed.

Checklist

[ ] Used a fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[ ] Ensured the license file is being packaged.

Hi! This is the friendly automated conda-forge-linting service.
I wanted to let you know that I linted all conda-recipes in your PR (recipe) and found some lint.
Here's what I've got...
For recipe:

Selectors are suggested to take a <two spaces>#<one space>[<expression>] form. See lines [26, 33]

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

This builds locally for me, but I suspect this wont build here - because of the XQuartz dependency. However, once someone adds some cdt-like support for XQuartz in conda-forge then perhaps this can be merged.

Thanks for this work, @douglowe ! Do you have any idea on how we can follow up on the necessary osx improvements? Is there already a ticket for cdt like XQuartz support? Maybe we should open one and link this issue to it so that we notice when it is tackled?

There's this issue open: https://github.com/conda-forge/staged-recipes/issues/2587 (which @ocefpaf has linked to for other projects?) However it doesn't look like it's going anywhere fast.
Perhaps following the process carried out here (then abandoned): https://github.com/conda-forge/geant4-feedstock/pull/6 - installing xquartz using homebrew - might be a way forward?

There's this issue open: conda-forge/staged-recipes#2587 (which @ocefpaf has linked to for other projects?) However it doesn't look like it's going anywhere fast.

For now we are using a (terrible) workaround to hack the CI boilerplate after the re-render. See https://github.com/conda-forge/ncl-feedstock/pull/71/commits/1156e49c913934faa8a72256437b933450390347


Batch normalization

Hello,
i need to use batch normalization primitive without calculating mean and variance
i found this syntax but im not sure how it operates on a 4D input ( like does it calculate the mean of all values  or using values within a hyperplane )
batch_normalization_forward (const primitive_desc &aprimitive_desc, const primitive::at &src, const memory &dst)
can you please explain for me how this primitive works ?
Thank you
Environment
Intel MKL-DNN includes hardware-specific optimizations and may behave
differently on depending on the compiler and build environment. Include
the following information to help reproduce the issue:

CPU make and model (try lscpu; if your lscpu does not list CPU flags,
try running cat /proc/cpuinfo | grep flags | sort -u)
OS version (uname -a)
Compiler version (gcc --version)
MKLROOT value (echo MKLROOT=$MKLROOT)
CMake version (cmake --version)
CMake output log
git hash (git log -1 --format=%H)

Steps to reproduce
Please check that the issue is reproducible with the latest revision on
master. Include all the steps to reproduce the issue. A short C/C++ program
or modified unit tests demonstrating the issue will greatly help
with the investigation.
Actual behavior
Describe the behavior you see.
Expected behavior
Describe the behavior you expect.

Hi Radja,
Yeah, our C++ documentation is somewhat incomplete... The behavior that you want to get is controlled at batch normalization descriptor initialization using the following C API / C++ API. There you pass flags that might take one or several bit-masks described here: C API / C++.
So if you don't want Intel MKL-DNN to compute the mean and variance (but rather provide them by yourself) you need to set flags to mkldnn_use_global_stats.
A simple example can be found in our tests, e.g. see here.

Thank you, this really helped.


fix go run ./scripts/checks/interfaces

This PR fixes the issue of go run ./scripts/checks/interfaces caused by newly added ./interfaces/L2/ISoulGasToken.sol.
(Note the issue won't be discovered if we don't rebuild the forge-artifacts.)

I think we need to clarify that this is only a workaround, not a fix.


Add spread to TypeScript > 3.2rc

From the blog...

Given that intersections model the common cases, and that they’re relatively easy to reason about for both users and the type system, TypeScript 3.2 now permits object spreads on generics and models them using intersections:

// Returns 'T & U'
function merge<T, U>(x: T, y: U) {
    return { ...x, ...y };
}

// Returns '{ name: string, age: number, greeting: string } & T'
function foo<T>(obj: T) {
    let person = {
        name: "Daniel",
        age: 26
    };

    return { ...person, greeting: "hello", ...obj };
}

Thanks!


Add SAP IAS Provisioning link

@ArvindHarinder1 : Thanks for your contribution! The author(s) have been notified to review your proposed change.

#sign-off

@ArvindHarinder1: I'm sorry - only the author of this article, @jeevansd, can sign off on your changes. But we do have an exception process - if you are on the Microsoft content or product team for this product area, you can ask the PR review team to review and merge it by sending mail to the techdocprs alias.

#sign-off


Update demo file structure

Alaska Airlines Pull Request
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Resolves: #65
Summary:
Please summarize the scope of the changes you have submitted, what the intent of the work is and anything that describes the before/after state of the project.

Modernize the structure of how our demo files are created and built
Update dependencies

Type of change:
Please delete options that are not relevant.

[ ] New capability
[x] Revision of an existing capability
[ ] Infrastructure change (automation, etc.)
[ ] Other (please elaborate)

Checklist:

[x] My update follows the CONTRIBUTING guidelines of this project
[x] I have performed a self-review of my own update

By submitting this Pull Request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Pull Requests will be evaluated by their quality of update and whether it is consistent with the goals and values of this project. Any submission is to be considered a conversation between the submitter and the maintainers of this project and may require changes to your submission.
Thank you for your submission!
-- Auro Design System Team

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Add Breadcrumb to Create Dataset Page

What this PR does / why we need it:
In Create Dataset page, we don't have the breadcrumb for the page which is supposed to have.
Which issue(s) this PR closes:

Closes #480

Special notes for your reviewer:
Changes:

Add breadcrumb to the page
Create a createDatasetSkeleton for loading state
Add containers to multiple 'Create Dataset' text existing for E2E testing(Collection.spec.ts)

Suggestions on how to test this:

Log in to the SPA
Locate and click on the "Add Data" button in the navigation bar
From the dropdown or menu that appears, select "New Dataset"
Check the breadcrumb trail at the top of the page. It should display: "Root > Create Dataset"

Does this PR introduce a user interface change? If mockups are available, please link/include them here:
Yes, breadcrumb added.

Is there a release notes update needed for this change?:
No
Additional documentation:
No

coverage: 98.403% (+1.0%) from 97.443%
when pulling 5ffd1fc3f9f7e35adc8446487b438de0c69418d9 on 480-add-breadcrumb-to-create-dataset-page
into 1603ea2b3fc676fc24a13be3298feb423f03bd64 on develop.


Differents results for eval images when running inference

Hello,
First, thank you for your  work. I am currently fine-tuning the CycleGAN Turbo model to generate infrared images (day → infrared). I've successfully trained the model, and as part of the train_cyclegan_turbo.py file, we're performing inference on the evaluation data to compute the FID and Dino struct metrics, and the output images are saved. I have tried to reproduce the same results (eval images output) using the "unpaired_infrared.py" file but unfortunately, the outputs are differenets. Do you know how to fix it ?

In what ways are the outputs different?
Could you also share what the unpaired_infrared.py file looks like?
-Gaurav

Hello, can you share how you solved this, I also found the results different from the fake_b results saved during training when executing unpaired_infrared.py.

Hello, can you share how you solved this, I also found the results different from the fake_b results saved during training when executing inference_unpaired.py.


WordPress has a capital P

WordPress has a capital P just like CocoaPods

Thanks a lot!
Could you perform the changes to try.html instead? index.html gets generated.

Could you perform the changes to try.html instead? index.html gets generated.

meep. Sorry I glossed over that part of CONTRIBUTING.md

Thanks a lot!


Rails app not working after bundle install --path

Not sure if this is the right place to report this issue I'm having, so apologies in advance if not, but any words of wisdom would be a huge help. I'm working on a Rails app in an Ubuntu environment using Rbenv and Bundler. In my app folder, I can run bundle exec rails console, bundle exec rails server, etc., and all work fine.
I run bundle and see Bundle complete! Everything still works.
However, I'd like to have my bundle in a shared folder. When I run bundle install --path /home/deploy/domains/myapp/shared/bundle I get a similar Bundle complete! message but now my app doesn't work:
deploy@myapp:~/domains/myapp/releases/new_release_path$ bundle exec rails console
/home/deploy/domains/myapp/shared/bundle/ruby/2.2.0/bin/rails:23:in `load': cannot load such file -- /home/deploy/domains/myapp/shared/bundle/ruby/2.2.0/specifications/bin/rails (LoadError)
	from /home/deploy/domains/myapp/shared/bundle/ruby/2.2.0/bin/rails:23:in `<main>'

Nothing I can do will seem to get the app working. If I remove the newly created .bundle/ folder by rm -rf .bundle/, the app works again.
What's going on here, and how can I get the bundle install --path to happen without breaking my app?
If it's useful, running bundle env seems to show the only noticeable difference as being that after installing with the path flag, I see:
Bundler settings
path
  Set for your local app (/home/deploy/domains/myapp/releases/new_release_path/.bundle/config): "/home/deploy/domains/myapp/shared/bundle"
disable_shared_gems
  Set for your local app (/home/deploy/domains/myapp/releases/new_release_path/.bundle/config): "1"

I'm not deeply familiar with how Bundler works under the hood, so thanks for any pointers!

Rails does not support bundle exec as of 4.0+. You need to run the bin/rails in your app directory instead.


multiline comments not working when embedded language

Just started using Rainbow and I noticed if I embed languages multi-line comments don't work. Only the first line is recognized as a comment.
I'm using html as the data-language. I saw this behavior with embedded css and php when I set it up in WordPress posts. If using them on their own, multi-line comments are working as expected.
/*---------------
sexy comment
----------------*/

<?php
/*
sexy comment
*/
?>

Besides that, it works a treat. Love it.

Here's how I was setting up embedded stuff.

/*--------------
sexy comment
--------------*/
.foo { color:brown }
.bar { color:yellow }

It works fine for me. See example here:
https://jsfiddle.net/cdh0wjwy/3/

strange. I'll check my code and try to setup a fiddle.

yeah, something strange is going on. I setup a fiddle and it seems to be working, but it's broken on my test site. Maybe something in wordpress, or some plug-in, is conflicting.
I'll let you know if I find anything.

Hey man
I figured it out. The multi-line comments is breaking with Blender3D rainbow.linenumbers.js being used. I'll drop them a line and see if they can fix it.

Closing this out since it is not an issue with rainbow


Find_the_repeating_and_missing_numbers.cpp

Problem Statement: You are given a read-only array of N integers with values also in the range [1, N] both inclusive. Each integer appears exactly once except A which appears twice and B which is missing. The task is to find the repeating and missing numbers A and B where A repeats twice and B is missing.

Great work @deabhinav please give this repo a star if it really helped you to complete your PR.
Also follow me for follow back if you want to get connected with me for any such open source contribution program. Thank you 😊


[psimd] add a new port

What does your PR fix?
There was no port request for this project.
This is one of the 3rd party libraries for the PyTorch project. The PR will be used for future support of the libtorch port.
Which triplets are supported/not supported? Have you updated the CI baseline?
This port is a header-only library, so every triplet must be available.
Does your PR follow the maintainer guide?
The library doesn't have a tag/release.

Manifests and CONTROL files

[x] vcpkg format-manifest

Versioning

[x] Follow common conventions for the "version" field
... we use the date that the commit was accessed by you, formatted as YYYY-MM-DD.

LGTM, thanks for the new port! Excited to see pytorch :)


Bug Report: No space between faq questions

Reproduction steps
When I saw the faq questions,they were very sticking to each other which a user will not find attractive.
Expected behavior
More space is needed between them. I can change some styling so that it looks attractive. Can you assign this task to me.
Actual Behavior
Original

👀 Have you spent some time to check if this issue has been raised before?

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

🏢 Have you read the Code of Conduct?

[X] I have read the Code of Conduct

@rohanbabbar04 Can you assign this task to me?


Using hiredis in Qt QQuick causes an error in QQuick.

I created a Qt Quick Application using Qt Creator and added the hiredis library in the CMakeLists.txt file. However, it resulted in a compilation error: 'no type named 'TypedFunction' in namespace 'QQmlPrivate'.And I have noticed that if I create a Qt project without using the Quick framework, there are no issues. However, only Quick projects seem to be affected.
Here is the CMakeLists.txt content:
cmake_minimum_required(VERSION 3.16)

project(jack_test VERSION 0.1 LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

include_directories(/usr/local/include)
link_directories(/usr/local/lib)

find_package(hiredis)
find_package(Qt6 6.5 REQUIRED COMPONENTS Quick)

qt_standard_project_setup(REQUIRES 6.5)

qt_add_executable(appjack_test
    main.cpp
)

qt_add_qml_module(appjack_test
    URI jack_test
    VERSION 1.0
    QML_FILES Main.qml
)

set_target_properties(appjack_test PROPERTIES
    MACOSX_BUNDLE_GUI_IDENTIFIER my.example.com
    MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION}
    MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}
    MACOSX_BUNDLE TRUE
    WIN32_EXECUTABLE TRUE
)

target_link_libraries(appjack_test
    PRIVATE
    Qt6::Quick
    hiredis
)

install(TARGETS appjack_test
    BUNDLE DESTINATION .
    LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
    RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)

This is a screenshot of the error message.

The reason for this issue is that I mistakenly used include_directories(/usr/local/include). The correct setting should be include_directories(/usr/local/include/hiredis).


Typo in Image

The first image on the page has a spelling mistake in it - the blue heading text at the end of the arrow is spelt "Microsot 365 Defender Portal" and should read "Microsoft 365 Defender Portal"
I have highlighted in yellow my screenshot below

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

ID: c29e05f2-5a90-3457-220f-af7c4ad3c9f2
Version Independent ID: c29e05f2-5a90-3457-220f-af7c4ad3c9f2
Content: Microsoft Defender for Cloud Apps in Microsoft 365 Defender (Preview)
Content Source: microsoft-365/security/defender/microsoft-365-security-center-defender-cloud-apps.md
Product: microsoft-365-enterprise
GitHub Login: @dcurwin
Microsoft Alias: dacurwin

Thank you for your comment. We'll investigate and get back to you.

Thanks again for your suggestion. The image will be updated.


WIP: ekf2 replay: allow user to change parameters

@priseborough This will create a parameter text file in the rootfs directory.
When building the first time (after a make clean) it will fill the parameter file with the default values from the log file. After that you can change each parameter individually and it will keep the changes.

Merged!


Game Splits and Officials now missing?

Not sure if this is preseason or permanent, but I was previously able to get the game officials via:
      landing_feed = fetch_data("https://api-web.nhle.com/v1/gamecenter/#{game_id}/landing")
      officials = {}
      officials[:referees] = landing_feed["summary"]["gameInfo"]["referees"]
      officials[:lines] = landing_feed["summary"]["gameInfo"]["linesmen"]

And the in-game stats splits via:
      @game_stats = @feed["summary"]["teamGameStats"]
      splits = {}
      @game_stats.each do |stat|
        splits[stat["category"].to_sym] = {home: stat["homeValue"], away: stat["awayValue"]}
      end
      splits

Neither of them appeared to be in the data payload during last night's Canes preseason game.

@minter  I also noticed this today and investigating - looks like it was removed from historical games as well.

@ethan-project94 This is why we can't have nice things.
I suppose it could be back for the regular season, or maybe it's moved to a new, yet-undiscovered endpoint

This data was moved to another endpoint "right-rail". It contains some summary, matchup  data

@Healer928802 That seems to have the officials, at least! Will check an in-progress game to see if the stats splits show up there.

@Healer928802  @minter Also seems to have the rest of the summary info (like html reports)

@Healer928802 @ethan-project94 It looks like that right-rail endpoint did the trick! Officials and in-game stat splits are back!


Control Sprite Command

 OnSelected: Set Dim or Set Color ops
 Cross fade a sprite to use a different texture
 AutoHide script to hide a sprite by default at runtime, show it with ShowSprite

Another request on the forum for cross fading.


Action exit code is not set

Th Lychee action exit code is not reflected in the job
Example run:
https://github.com/lenisha/linkchecker-test/runs/2117110939?check_suite_focus=true
    steps:
      - uses: actions/checkout@v2
      - name: lychee Link Checker
        id: lychee
        uses<EMAIL_ADDRESS>        with:
          args: --exclude="^(javascript|chrome):.*"   --accept=200,403,429 "**/*.md" "**/*.html"
        env:
          GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
      - name: Fail if there were link errors
        run: exit ${{ steps.lychee.outputs.exit_code }}

Although Lychee step exits with status code 2, next steps does not get the exit code properly, it gets 0 instead of 2:
+ lychee '--exclude=^(javascript|chrome):.*' --accept=200,403,429 '**/*.md' '**/*.html' --output /tmp/lychee/out.md
+ exit_code=2
+ '[' 2 -ne 0 ']'
++ dirname lychee/out.md
+ mkdir -p lychee
+ echo 'Errors were reported while checking the availability of links:'
+ cat /tmp/lychee/out.md
+ cat /tmp/lychee/out.md
+ echo ::set-output name=exit_code::2
📝 Summary
---------------------
🔍 Total..........519
✅ Successful.....462
⏳ Timeouts.........0
🔀 Redirected.......0
👻 Excluded........53
🚫 Errors...........4

Errors in python/auto_examples/plot_train_convert_predict.html
✗ https://scikit-learn.org/stable/modules/preprocessing.html/nPlease [404 Not Found]

Errors in docs/reference/execution-providers/Nuphar-ExecutionProvider.md
✗ https://support.microsoft.com/en-us/help/841290 [404 Not Found]

Errors in docs/how-to/build.md
✗ https://cmake.org/files/v3.13/cmake-3.16.1.tar.gz [404 Not Found]
✗ https://www.raspberrypi.org/downloads/raspbian/ [404 Not Found]::set-output name=exit_code::2
1s
Run exit
  exit
  shell: /usr/bin/bash -e {0}

That's weird. You seem to have done everything correctly... 🤔

Tested locally and indeed lychee is exiting with status code 2.

Could be something Github actions related maybe? Was there a change recently on how error codes get propagated?

The only suspicious thing is that ::set-output didn't begin on a newline.
We recently removed extraneous newlines at the end of the status output, which might be the culprit.
(See https://github.com/lycheeverse/lychee/pull/178)
Added an echo now for a test. Can you try lycheeverse/lychee-action@master and report back?
fyi @pawroman

yep master with new line works
https://github.com/lenisha/linkchecker-test/runs/2117974486?check_suite_focus=true

🎉 thanks for the feedback


Word based suggestions returned when starting to type spread

Discovered in https://github.com/microsoft/vscode/issues/130096
Bug Report
🔎 Search Terms

word based suggestions
javascript
spread
warning suggestions

🕗 Version & Regression Information
4.4.1-rc
💻 Code

In a JS file:

const abc = {};

({ })

Put cursor inside the object literal and type: .

🙁 Actual behavior
JS warning suggestions (word based suggestions) are returned:
[Trace  - 22:36:59.359] <semantic> Response received: completionInfo (308). Request took 7 ms. Success: true
Result: {
    "isGlobalCompletion": false,
    "isMemberCompletion": true,
    "isNewIdentifierLocation": false,
    "entries": [
        {
            "name": "abc",
            "kind": "warning",
            "kindModifiers": "",
            "sortText": "17"
        }
    ]
}

🙂 Expected behavior
No suggestions should be returned in this case since the user is likely starting to type a spread operator

Rescheduling to 4.5. @mjbvz if we need we can easily cherry-pick the fix into a patch for 4.4 if necessary.


Delayed audio playback on Linux

Sound effects seem to have about a ~1s delay on my Linux machine, even after extensive tweaking of PulseAudio settings. That delay is much less noticeable on Windows, probably around ~0.25s or less. Further investigation is needed to determine if this happens on other boxes or platforms.

Because of the extensive work to the AudioEngine in #17 and #18, I'm not sure if this is still an issue, so it will need more testing.

Just to chime in, I don't see this on OpenSuse using the latest builds :)


nixops_unstable: bump dependencies

Description of changes
Ran the nixops update script. Fixes https://github.com/NixOS/nixpkgs/issues/214229

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 217200 run on x86_64-linux 1

1 package failed to build:

nixops_unstable


getting error in windows

Sorry you're having an issue, but you're going to have to be a little more clear than this.  I've adjusted the issue-filing template to help you get started on how to submit a good bug, and am closing this for you to follow that template if you still have an issue.


Add support for validations to pfFilterFields (filterType: text)

Using pfFilter, and would like to be able to add validation to a filterType: 'text' field. Either be able to add a custom directive or pfValidation to pfFilter.fields
Our use case is, any value that is a legal regular expression is valid.

Hi @vbusch, can you please provide a real world example of the type of validation(s) you are looking for?  Thanks, it will help me understand what you are looking for.
Thanks,
Dave

@dtaylor113, we are using the filter to filter a very large list(pf-list-view) of potentially 1000,000 items.  We provide them 2 ways to filter.  The first is by type, and we are using filterType=select, which works great.
They also want to be able to filter by name.  And in order for it to be flexible enough, we need to allow them to search for 'queueA*' or 'queue*small', which would return queueA1, queueA2, queue1small, queue2small etc.
The actual validation we are using on the name is ensuring "new RegExp(filter.value)" doesn't through an exception.  If they enter something like '**A', or any value that the RegExp can't handle, we want the user to receive a validation exception in the normal fashion (input field, outlined in red, with an error message).

Hi @vbusch, thank you for the example.  Can you provide a link to some code illustrating how/where you use "new RegExp(filter.value)"?  -thanks

@dtaylor113 I would like to add a validator to line 249 in https://github.com/vbusch/enmasse/blob/console-1626/agent/www/components/addresses/addresses_ctrl.js#L243-L262
The current validation is:
https://github.com/vbusch/enmasse/blob/console-1626/agent/www/components/addresses/addresses_ctrl.js#L213-L219
The html can be found https://github.com/vbusch/enmasse/blob/console-1626/agent/www/components/addresses/addresses.html
Let me know, if you would like me to extract the code into something easier to run.

Hi @vbusch, I see your HTML is structured as:
<div pf-toolbar id="exampleToolbar" config="toolbarConfig">

Which indicates that you are using the older angular-patternfly v3.  The current version of angular-patternfly is v4 where we have changed all attribute directives to component tags (see
Angular PatternFly 4 Migration Guide: Directive to Component Re-factor
Unfortunately, we do not have the filter validation you are looking for.  We could possibly investigate adding it to angular-patternfly v4, but it is unlikely we would be able to add it to the older angular-patternlfy v3.
You could look into customizing the angular-patternfly v3 Filter components and add the validation you require.  The v3 filter components are located here.  You could copy the source code into your own custom package.  It would require adding classes hasError and help-block, and form field $error processing like I recently added here.  You would probably need to add it to v3 FilterFields html.
HTH,
Dave


"Diff branch files" no longer appears in the context menu

Using atom on Windows 7.  Regardless of what file I click on, I never get the "Diff Against Branch" context menu option.   In "context-menu.ts" ts looks like that option should still be available for all files, but I'm not getting it anymore.

Yea I'm not seeing it on mac as well. This seems like an issue with atom since there weren't any changes here related to it. I'll investigate

Thank you!


How are errors handled?

It doesnt seem to follow normal pattern of callback ( error, result)?

The entire error handling of this module is buggy.
Exception are thrown and being caught in async code - not too much we can do to catch it....
This makes debugging of application that uses this module very difficult since you don't even get a print of what went wrong....


Clarify required fields in a response

Discussing the implementation of #210 in optimade-python-tools (PR Materials-Consortia/optimade-python-tools#153) with @ltalirz (and @ml-evs) we have found that it is quite unclear what is meant by SHOULD in the spec at the moment.
Specifically these lines are fuzzy.
We understand the need for certain fields to be "on-request", i.e., only given if explicitly asked for via response_fields. As well as having other fields that are REQUIRED in the response at all times, like id.
We suggest to combine the **Support** and **Response** part of all fields under Entry List and rewrite the section linked above to be more clear.
Tagging @merkys and @rartino here, since they were the main contributors to #210.

we have found that it is quite unclear what is meant by SHOULD in the spec at the moment.
Specifically these lines are fuzzy.

Is it possible to elaborate a bit on what is not clear? Your link goes to a single line that does not contain the word SHOULD. Are you referring to "SHOULD NOT" in point 3 of the section 'Entry Listing Endpoints'?
That SHOULD NOT means that an API implementation should avoid including properties in the response that are neither marked as REQUIRED nor are included in a supplied response_fields query parameter. However, it is still standards-conformant if it does.

We suggest to combine the **Support** and **Response** part of all fields under Entry List

Support tells you when a property is allowed to behave as null or not in queries and as return values.
Response tells how the property interacts with the response_fields query parameter.
Can you give examples of how you would prefer these to be written into one "thing"?

I'll try my best to explain, but I'm sure it's going to get convoluted.
First, concerning the three categories for the Entry list specific properties:

Properties marked as REQUIRED in the response. These properties MUST always be present for all entries in the response.

This seems clear to me: It means a property MUST be present for a resource object in the response, no matter the values given to response_fields.

Properties marked as REQUIRED only if the query parameter response_fields is not part of the request, or if they are explicitly requested in response_fields. Otherwise they MUST NOT be included.
One can think of these properties as consituting a default value for response_fields when that parameter is omitted.

The first sentence here is difficult for me to understand - mostly because I cannot seem to properly parse the first part.
What I understand from the sentence (with a revision for my parsing abilites) is that this is a category of properties that do not necessarily have to be present in the response by default, but the server MUST implement them and return them if they are explicitly asked for via response_fields.
Also, there is a minor error in the missing "t" in constituting ...
Concerning the second sentence, it makes sense, but not in connection with the first one. At least not with my understanding of it. The second sentence refers to "a defaullt value for response_fields", which is what I would call the properties that are REQUIRED to be implemented by a server and passed by default to the response.
Hmm, reading the sentences over and over, I feel like I am starting to understand that maybe the first one can be read that way - but it is by no means clear. Maybe it could be rewritten as such:

Properties that MUST be supported by the implementation and are considered default fields in the response for the given resource object(s), i.e., if the response_fields query parameter is not supplied in the request, these properties are REQUIRED in the response. These properties MUST be left out if not included explicitly in the value list for response_fields.

Properties not marked as REQUIRED in any case, MUST be included only if explicitly requested in the query parameter response_fields. Otherwise they SHOULD NOT be included.

This seems clear to me: It means a property that an implementation MUST support, but should be left out of the default response and only included if explicitly requested via response_fields.
This also leaves no room for OPTIONAL properties it seems, since there is no category specified for these.
It may be helpful to make a table for these properties, something like this:

Category
REQUIRED in implementation
OPTIONAL in implementation
REQUIRED always in response
default in response
on-request in response

1
X
-
X
X
X

2
X
-
-
X
X

3
X
-
-
-
X

So that's part one ... Now it comes to the Entry list of properties.
Keeping the above in mind, since it acts as the definition of the different kinds of properties there can be, let's look at the universal entry property type:

Requirements/Conventions:
Support: MUST be supported by all implementations, MUST NOT be null.
Query: MUST be a queryable property with support for all mandatory filter features.
Response: REQUIRED in the response.

From the Support requirement I understand that it MUST be in the implementation and cannot be null, i.e., have an unknown value.
From the Response requirement I understand it falls into category 1 from above.
From the table above, the first part of the Support requirement is clear (since there are no OPTIONAL properties allowed) and then it can't be null. Sure, I mean, I don't think that has to do with whether it's supported by the implementation or not, but with its value.
Let's now look at the universal entry property last_modified:

Requirements/Conventions:
Support: SHOULD be supported by all implementations, i.e., SHOULD NOT be null.
Query: MUST be a queryable property with support for all mandatory filter features.
Response: REQUIRED in the response unless the query parameter response_fields is present and does not include this property.

From the Support requirement I can suddenly understand that it SHOULD be supported by the implementation, i.e., it's essentially OPTIONAL, which is not an allowed category (according to the table and definitions above). Furthermore, it SHOULD NOT be null, which means it can. Why not instead then write:

Support: OPTIONAL support, i.e., MAY be null.

From the Response requirement I understand that it falls into category 2.
But category 2 states that it MUST be returned if requested for via response_fields. This means it MUST be supported by the implementation, but it MAY be null.

Now to a more wholesome part.
I think I'm grasping what the intent is with everything, I surely must have been previously, but coming back to it after some time it seems quite unclear to me what is meant when combining all these things.
By combining Support and Response or otherwise splitting up Support into what is really meant, it should be clearer. Even better would be to relate it back to the three categories of properties already laid out.
For example, last_modified could instead read:

Description: Date and time representing when the entry was last modified.
Type: timestamp.
Requirements/Conventions:

Implementation: REQUIRED
Value: MAY be null
Query: MUST be a queryable property with support for all mandatory filter features.
Response: Default (category 2).

Example:

As part of JSON response format: "2007-04-05T14:30Z" (i.e., encoded as an RFC 3339 Internet Date/Time Format string).

However, I don't like having it say that it is REQUIRED in the implementation, while it MAY be null, so it may be prudent to define that OPTIONAL in the implementation means it MUST be returned if explicitly required via response_fields, but the value MAY be null.
If you want, one can even add a Recommended (level of integration in the implementation) that states whether it is REQUIRED, SHOULD, or OPTIONAL to have a non-unknown value, i.e., not null.

I admit that the fuzzy lines are indeed difficult to parse.
The meaning of Support and Response in the specification is intended to be orthogonal. Thinking from scratch, there should be two levels of Support:

REQUIRED: property values MUST NOT be nulls;
OPTIONAL: property is MAY have non-null values.

And three levels of Response:

always REQUIRED: MUST be present in the response;
REQUIRED unless excluded: MUST be in the response unless response_fields is provided and does not contain this property;
REQUIRED if included: MUST be present only if provided in response_fields.

Or am I missing something? Putting it down this way sounds simple to me.

OPTIONAL: property is MAY have non-null values.

Could just as well be property MAY have null value(s), right?

Or am I missing something? Putting it down this way sounds simple to me.

I think that sums up quite neatly my wall of text, yes :)

Could just as well be property MAY have null value(s), right?

Right.

This also means that an implementation should put in all allowed properties somewhere, or retrieve them from the spec, so if they choose not to implement support for an OPTIONAL property, they can still return it in the response - but with the value null.

Same here :)

there should be two levels of Support:

REQUIRED: property values MUST NOT be nulls;
OPTIONAL: ~~property is MAY have non-null values.~~property MAY have null values.

You are omitting:

RECOMMENDED: property SHOULD not have null values

And three levels of Response:

always REQUIRED: MUST be present in the response;
REQUIRED unless excluded: MUST be in the response unless response_fields is provided and does not contain this property;
REQUIRED if included: MUST be present only if provided in response_fields.

This is different from the present specification in that the latter only RECOMMENDS against including fields in the response that are neither required, nor in response_fields, but it still accepts such behavior as standards-conformant. Your text makes such behavior violate the standard.
Is the distinction between MUST and RECOMMENDED in these two cases useful? It is up to us, but I can definitely argue that most implementations should not break them, but scenarios can be created for when it is motivated.

This issue has been marked with the v1.0.0 milestone. My personal interpretation is that this is NOT release-blocking and can be moved to the v1.1 milestone, because it is mostly about clarifying what is in the specification (in a way that makes it easier to read). @CasperWA, do you agree? If so, please change the milestone to v1.1.

This issue has been marked with the v1.0.0 milestone. My personal interpretation is that this is NOT release-blocking and can be moved to the v1.1 milestone, because it is mostly about clarifying what is in the specification (in a way that makes it easier to read). @CasperWA, do you agree? If so, please change the milestone to v1.1.

When taking into account the spec changes by @merkys in Materials-Consortia/OPTIMADE#210 it seems that this can indeed be postponed to v1.1.
However, this will more clear when we start treating the issue Materials-Consortia/optimade-python-tools#198, i.e., attempting to put the spec to a test in an "implementation". But let's cross that bridge when we get to it, i.e., change this to a v1.1 milestone.
What do you think @merkys and @ml-evs?

I'm fine with postponing this issue to v1.1.


npm package and webpack aren't compatible because style files

When webpack is used, to build an application, the following errors occurs :
ERROR in ./~/focus-components/lib/style/index.js
Module not found: Error: Cannot resolve 'file' or 'directory' ../application/bar/style/bar.scss in xxxxx.SPA\node_modules\focus-components\lib\style
@ ./~/focus-components/lib/style/index.js 3:0-44
ERROR in ./~/focus-components/lib/style/index.js
Module not found: Error: Cannot resolve 'file' or 'directory' ../application/cartridge/style/cartridge.scss in xxxxx.SPA\node_modules\focus-components\lib\style
@ ./~/focus-components/lib/style/index.js 5:0-56
And many others.
The following script can be run from the node_modules/focus-components/src/style/ directory to temporarily fix the problem :
focus-component-style.txt

We will fix it soon:

You can link to css file in dist instead of reading the style file.
Use webpack alias option such as in https://github.com/KleeGroup/focus-showcase/blob/develop/webpack.config.builder.js#L18 in order to link to src directory instead of lib directory in the node module

Made it work there


hyprctl dispatch dpms on/off doesn't work that well

Regression?
Yes
System Info and Version
 System/Version info
Hyprland, built from branch main at commit 83a5395eaa99fecef777827fff1de486c06b6180  (flake: update xdph).
Date: Mon Jul 22 14:47:06 2024
Tag: v0.41.2-69-g83a5395e, commits: 4955

flags: (if any)

System Information:
System name: Linux
Node name: icicle
Release: 6.10.0-rc2-baka+
Version: #16 SMP PREEMPT Sun Jul 21 22:06:19 IDT 2024

GPU information:
qcom,adreno-630.2

os-release: NAME="Artix Linux"
PRETTY_NAME="Artix Linux"
ID=artix
BUILD_ID=rolling
ANSI_COLOR="0;36"
HOME_URL="https://www.artixlinux.org/"
DOCUMENTATION_URL="https://wiki.artixlinux.org/"
SUPPORT_URL="https://forum.artixlinux.org/"
BUG_REPORT_URL="https://bugs.artixlinux.org/"
PRIVACY_POLICY_URL="https://terms.artixlinux.org/docs/privacy-policy/"
LOGO=artixlinux-logo

plugins:
  hyprgrass by horriblename ver 0.7

Description
It takes a few tries to get the monitor to turn back on after turning it off with hyprctl dispatch dpms off
How to reproduce
hyprctl dispatch dpms off
hyprctl dispatch dpms on
Crash reports, logs, images, videos
No response

the problem is that when running hyprctl dispatch dpms off you press down enter then dpms is off, but when you release the enter key then dpms is turned back on
so @vaxerski, maybe dpms should have a timeout? or maybe only key presses should re-enable dpms

Is this really what @System64fumo's issue is?
If yes, can you try sleep 1; hyprctl dispatch dpms off; sleep 5; hyprctl dispatch dpms on?

No?
My issue is running the actual command not having it bound to a key.
Though as of the last update things have become more stable i guess?

sleep 1; hyprctl dispatch dpms off; sleep 5; hyprctl dispatch dpms on

to be clear is the issue that when running hyprctl dispatch dpms off from terminal the screen turns off and immediately back on again?
i added some logs in key presses where dpms is turned back on immediately after hyprctl dispatch dpms off and it shows that the release is what turns dpms back on, atleast for me

No
The issue is whenever i run hyprctl dispatch dpms off then hyprctl dispatch dpms on the screen doesn't turn back on unless i dpms off and on a few times
Though again as of the latest update it "seems" to work consistently, Let's keep this open just in case, Unless someone else can test this.

I wish there was a feature to "auto close in 10 days if no activity"

If i remember i'll close it in 10 days :+1:

Update: Back to inconsistency
I think rotating my screen broke it :|
Welp my few hours of enjoying a functional power button are over

post a trace log

Also experiencing this. You want my 40MB hyprland.log? lol

correct

got er down to 23M for ya
hyprland.log
Also terminal seems to think I pressed enter like 100 times after running dpms off
 ╭─dot@dot in ~ took 11ms
 ╰─λ hyprctl dispatch dpms off
ok

 ╭─dot@dot in ~ took 11ms
 ╰─λ

 ╭─dot@dot in ~ took 11ms
 ╰─λ

 ╭─dot@dot in ~ took 11ms
 ╰─λ

 ╭─dot@dot in ~ took 11ms
 ╰─λ

 ╭─dot@dot in ~ took 11ms
 ╰─λ

 ╭─dot@dot in ~ took 11ms
 ╰─λ

 ╭─dot@dot in ~ took 11ms
 ╰─λ

 ╭─dot@dot in ~ took 11ms
 ╰─λ

 ╭─dot@dot in ~ took 11ms
 ╰─λ

 ╭─dot@dot in ~ took 11ms
 ╰─λ

 ╭─dot@dot in ~ took 11ms
 ╰─λ

 ╭─dot@dot in ~ took 11ms
 ╰─λ

 ╭─dot@dot in ~ took 11ms
 ╰─λ

 ╭─dot@dot in ~ took 11ms
 ╰─λ

 ╭─dot@dot in ~ took 11ms
 ╰─λ

 ╭─dot@dot in ~ took 11ms
 ╰─λ

 ╭─dot@dot in ~ took 11ms
 ╰─λ

 ╭─dot@dot in ~ took 11ms
 ╰─λ

 ╭─dot@dot in ~ took 11ms
 ╰─λ

 ╭─dot@dot in ~ took 11ms
 ╰─λ

 ╭─dot@dot in ~ took 11ms
 ╰─λ

 ╭─dot@dot in ~ took 11ms
 ╰─λ

 ╭─dot@dot in ~ took 11ms
 ╰─λ

 ╭─dot@dot in ~ took 11ms
 ╰─λ

 ╭─dot@dot in ~ took 11ms
 ╰─λ

 ╭─dot@dot in ~ took 11ms
 ╰─λ

 ╭─dot@dot in ~ took 11ms
 ╰─λ

 ╭─dot@dot in ~ took 11ms
 ╰─λ

 ╭─dot@dot in ~ took 11ms
 ╰─λ

 ╭─dot@dot in ~ took 11ms
 ╰─λ

 ╭─dot@dot in ~ took 11ms
 ╰─λ

 ╭─dot@dot in ~ took 11ms
 ╰─λ

 ╭─dot@dot in ~ took 11ms
 ╰─λ

 ╭─dot@dot in ~ took 11ms
 ╰─λ

 ╭─dot@dot in ~ took 11ms
 ╰─λ

 ╭─dot@dot in ~ took 11ms
 ╰─λ

 ╭─dot@dot in ~ took 11ms
 ╰─λ

 ╭─dot@dot in ~ took 11ms
 ╰─λ

 ╭─dot@dot in ~ took 11ms
 ╰─λ

 ╭─dot@dot in ~ took 11ms
 ╰─λ

 ╭─dot@dot in ~ took 11ms
 ╰─λ

 ╭─dot@dot in ~ took 11ms
 ╰─λ

 ╭─dot@dot in ~ took 11ms
 ╰─λ

 ╭─dot@dot in ~ took 11ms
 ╰─λ

 ╭─dot@dot in ~ took 11ms
 ╰─λ

 ╭─dot@dot in ~ took 11ms
 ╰─λ

 ╭─dot@dot in ~ took 11ms
 ╰─λ

 ╭─dot@dot in ~ took 11ms
 ╰─λ

 ╭─dot@dot in ~ took 11ms
 ╰─λ

 ╭─dot@dot in ~ took 11ms
 ╰─λ

 ╭─dot@dot in ~ took 11ms
 ╰─λ

 ╭─dot@dot in ~ took 11ms
 ╰─λ

 ╭─dot@dot in ~ took 11ms
 ╰─λ

 ╭─dot@dot in ~ took 11ms
 ╰─λ

 ╭─dot@dot in ~ took 11ms
 ╰─λ

 ╭─dot@dot in ~ took 11ms
 ╰─λ

 ╭─dot@dot in ~ took 11ms
 ╰─λ

 ╭─dot@dot in ~ took 11ms
 ╰─λ

 ╭─dot@dot in ~ took 11ms
 ╰─λ

 ╭─dot@dot in ~ took 11ms
 ╰─λ

 ╭─dot@dot in ~ took 11ms
 ╰─λ

It's really hard to describe this behvaiour because it is very inconsistent. It seems like if I turn my screens off via the terminal and move my mouse to bring them back, the session is locked up but I can bring it back by spamming my kitty hotkey. If my workstation is locked already though there's no way to get control of the system back (can't even open another TTY session) and I have to reboot the whole machine.

Still happening on latest main.
I think the dpms off dispatch is only properly working on one of my monitors and causing the dpms on dispatch to not be able to fire. That's kind of just a guess based on the behaviour though.

I solved this by disabling my second monitor's "overclock" setting to off and lowering its refresh rate to 144 (was at 165 before).
I'm not sure if this was ever a bug in hyprland or if there was an AMDGPU driver update that broke dpms with this mode active and I am too lazy to bisect. Very strange that there was no issue having the monitor set at 165 until now but whatever.
Since we haven't heard from OP in a couple months this can probably be closed.

Seems stable ish for the most part now, Not that i've used my phone that much.
So yeah i guess this can be closed. for now


Documentation help

Hi,
Please can you help with more documentation?
For example, how do i detect if a user is logged in or not?

You an check the header.html, it shows some menu based on if user is logged in or not.

@layinka see explanation by @sjumble if this helps. There isn't any special code, its just a simple method to determine if user is logged in.


Poison Detection - Activation Defense with Keras Generator

Describe the bug
If a batch of a generator doesn't contain all classes the method segmenation of classes returns an empty list for the class and the line 671 cannot get the amount of values inside the class (nb_activations = np.shape(activation)[1])
To Reproduce

fit a model with keras/tensorflow
use a small enough batch size

Expected behavior
I guess it ignores this class for this batch (not sure though).
Screenshots
If applicable, add screenshots to help explain your problem.
System information (please complete the following information):

OS
Python version
ART version or commit number
TensorFlow

Thanks for using ART!
Could you show a code snippet of the issue so I can reproduce? Also what version of ART are you using. The data generator version of Activation Defense has been added recently and changes have been made. Are you using v1.3.1?

model = load_model(library.MODEL_LOAD_PATH)

train_data_gen = create_generator(train_dataframe,
                                  batch_size=16)

classifier = TensorFlowV2Classifier(
    model=model,
    nb_classes=library.NUM_CLASSES,
    input_shape=model.input_shape,
)

data_gen = KerasDataGenerator(train_data_gen, size=train_data_gen.samples, batch_size=train_data_gen.batch_size)
defense = ActivationDefence(classifier=classifier, x_train=None, y_train=None, generator=data_gen)
defense.detect_poison()

FYI: train_dataframe is a dataframe containing filepaths and labels, I have 15 classes (YALE FACES) and have poisoned the dataset. The model is a TensorFlowV2 Model, but the Generator is a tf.keras.preprocessing.image.DataGenerator.
In this snippet batch size is 16, but due to shuffling I cannot assume that in each batch every class is present.
If I change the batchsize to the size of my dataframe I am able to detect poisoning.
I used adversarial-robustness-toolbox==1.3.1

Hi @ebubae Have you been able to reproduce this issue?


trying to undo musica-core changes

Codecov Report
Base: 81.81% // Head: 81.81% // No change to project coverage :thumbsup:

Coverage data is based on head (7299574) compared to base (caea8ee).
Patch has no changes to coverable lines.

Additional details and impacted files
@@               Coverage Diff                @@
##           example-3d-host     #203   +/-   ##
================================================
  Coverage            81.81%   81.81%
================================================
  Files                   99       99
  Lines                 5273     5273
================================================
  Hits                  4314     4314
  Misses                 959      959

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Add ClusterMembers Settings to MassTransit.Host

PR for #751
Since there can be one or more clustered members, I decided to use csv string which is Split() into an array for string[] ClusterMembers. Hope that's okay.

Merged.


Support for blinking ANSI art

The recent Fire pack contained a piece by ResetSurvivor which took advantage of blinking text. Libansilove doesn't support blinking text however PNGs support animation, see attached image


Enable MacOS arm64 builds

Checklist

[x] Used a personal fork of the feedstock to propose changes
[x] Bumped the build number (if the version is unchanged)
[x] Reset the build number to 0 (if the version changed)
[x] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

After fixing the bison install, the current build error is that mariadb has build time executable helpers which need to be compiled/runnable on the build host:
2023-06-08T13:24:37.1714220Z [ 19%] Linking CXX executable comp_err
2023-06-08T13:24:37.3923290Z [ 19%] Built target comp_err
2023-06-08T13:24:37.4625550Z [ 19%] Generating ../include/mysqld_error.h.tmp
2023-06-08T13:24:37.4826870Z /bin/sh: ./comp_err: Bad CPU type in executable
2023-06-08T13:24:37.4927980Z make[2]: *** [extra/CMakeFiles/GenError.dir/build.make:74: include/mysqld_error.h.tmp] Error 126
2023-06-08T13:24:37.5029290Z make[1]: *** [CMakeFiles/Makefile2:5104: extra/CMakeFiles/GenError.dir/all] Error 2
2023-06-08T13:24:37.5031050Z make: *** [Makefile:156: all] Error 2
2023-06-08T13:24:40.3580790Z Traceback (most recent call last):

Current status: cross-compile is failing to find/setup the import_executables build which is used to create the host-native builds of required tools (https://mariadb.com/kb/en/cross-compiling-mariadb/)
2023-06-09T01:18:33.5876459Z CMake Error at CMakeLists.txt:405 (INCLUDE):
2023-06-09T01:18:33.5876833Z   INCLUDE could not find requested file:
2023-06-09T01:18:33.5877006Z
2023-06-09T01:18:33.5877320Z     IMPORTFILE-NOTFOUND


adds a folder for the ANS abstract and the latex template

Closes issue #4
Added a folder that holds the ANS abstract. Template was pulled from 2018-chee-predicting-ans.

You are correct, they are unnecessary files.
Thanks for catching that!

LGTM!


cmd/cue: trim bug when using disjunction of embeded definitions?

What version of CUE are you using (cue version)?

$ cue version
cue version 0.4.0 linux/amd64

Does this issue reproduce with the latest release?
What did you do?

$ cat <<'EOF' >x.cue
#DefA: A: "a"
#DefB: B: "b"

First: {
        #DefA | #DefB
        C: "c"
}

First: {
        B: "b"
        C: "c"
}
EOF

$ cue trim x.cue
  {
      #DefA: {
        A: "a"
      }
      #DefB: {
        B: "b"
      }
-     First: {
-       B: "b"
-       C: "c"
-     }
+     First: {
+       C: "c"
+       A: "a"
+     } | {
+       C: "c"
+       B: "b"
+     }
  }
Aborting trim, output differs after trimming. This is a bug! Use -i to force trim.
You can file a bug here: https://github.com/cuelang/cue/issues/new?assignees=&labels=NeedsInvestigation&template=bug_report.md&title=

What did you expect to see?
No error, and trimming of line 11 C: "c"
What did you see instead?
Bug detection by cue trim as described above.

To be more precise on what is going on: evaluation eliminates one of the disjunctions. Trim proceeds with the evaluated value as if it weren't evaluated from a disjunction. It then removes the very field that was used to disambiguate the disjunction. After this removal, the disjunction no longer disambiguates.

Dropping the now meaningless v0.4.x milestone. We have relabelled this from trim to roadmap/trim to indicate that a fix for this issue (and indeed all trim issues) requires a more substantial piece of work.