text:
Attempt to fix the issue https://github.com/PowerShell/PowerShell/issues/20055

Attempt to fix the issue of Powershell's magnet icon being too large on the Windows 10 start menu and not displaying the application name
Original issuse: https://github.com/PowerShell/PowerShell/issues/20055

Expected fix:
fixed tile displaying application name 'PowerShell' on Windows 10 22h2 Start menu

https://answers.microsoft.com/zh-hans/windows/forum/all/有些microsoft/ee1b391c-5ce6-4304-903e-94be1fa29bb7

Please use the pull request template and give the PR a descriptive name

请使用拉取请求模板并为 PR 指定一个描述性名称

finnished

authors: Zhoneym dkaszews


text:
xSQLServerNetwork: When TcpDynamicPorts is set to '0' then Test-TargetResource always fail

Details of the scenario you tried and the problem that is occurring:
When parameter TcpDynamicPorts is set to '0' then Test-TargetResource will always fail because network protocol property TcpDynamicPort is always set to the actual listening port when SQL Server is restarted.
If parameter TcpDynamicPort is set to '0' then Test-TargetResource should only return false if network protocol property TcpDynamicPort is not set to a value.
The DSC configuration that is using the resource (as detailed as possible):
xSQLServerNetwork "$($currentSqlInstance)-InstanceNetworkConfiguration"
{
    SQLServer = $Node.NodeName
    InstanceName = $Node."$($currentSqlInstance)InstanceName"
    ProtocolName = 'Tcp'
    IsEnabled = $true
    TcpDynamicPorts = '0'
    RestartService = $true
}

Version of the Operating System, SQL Server and PowerShell the DSC Target Node is running:
All
What module (SqlServer or SQLPS) and which version of the module the DSC Target Node is running:
n/a
Version of the DSC module you're using, or 'dev' if you're using current dev branch:
Dev

This should have been solved with a boolean parameter instead, but hold off on that until another PR. See issue https://github.com/PowerShell/xSQLServer/issues/534.

source: gharchive/issue

repo: PowerShell/xSQLServer

license: mit

license_type: permissive

license_source: bigquery


text:
README.md: Small fixes to sections and fixed wrong product name

Changes to README.md

Now the correct product name is written in the installation section, and a typo was also fixed.
Fixed a typo in the Requirements section.
Added link to Examples folder in the Examples section.

This Pull Request (PR) fixes the following issues:
Fixes #283

[x] Change details added to Unreleased section of CHANGELOG.md?
[ ] Added/updated documentation, comment-based help and descriptions in .schema.mof files where appropriate?
[ ] Examples appropriately updated?
[ ] New/changed code adheres to Style Guidelines?
[ ] Unit and (optional) Integration tests created/updated where possible?

This change is

Reviewed 2 of 2 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved.

Comments from Reviewable

source: gharchive/pull-request


text:
xSQLServerSetup: Support feature CONN and BC

It now detects that feature Client Connectivity Tools (CONN) and Client Connectivity Backwards Compatibility Tools (BC) is installed. This is based on the work of @joshan1120 in PR #163. This resolved issue #159 and might also resolve #142.
This Pull Request (PR) fixes the following issues:
Fixes #159

[x] Change details added to Unreleased section of CHANGELOG.md?
[ ] Added/updated documentation, comment-based help and descriptions in .schema.mof files where appropriate?
[ ] Examples appropriately updated?
[x] New/changed code adheres to Style Guidelines?
[x] Unit and (optional) Integration tests created/updated where possible?

This change is

Codecov Report

Merging #383 into dev will increase coverage by <1%.
The diff coverage is 87%.

@@         Coverage Diff          @@
##            dev   #383    +/-   ##
====================================
+ Coverage    63%    64%   +<1%
====================================
  Files        31     31
  Lines      3092   3104    +12
====================================
+ Hits       1978   1988    +10
- Misses     1114   1116     +2

Continue to review full report at Codecov.

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

Reviewed 2 of 3 files at r1, 1 of 1 files at r2.
Review status: all files reviewed at latest revision, all discussions resolved, some commit checks failed.

Comments from Reviewable

Reviewed 3 of 3 files at r3.
Review status: all files reviewed at latest revision, all discussions resolved.

Comments from Reviewable

authors: codecov-io johlju


text:
🛑 HDArea is down

In b1502d6, HDArea ($HDAREA) was down:

HTTP code: 502
Response time: 342 ms

Resolved: HDArea is back up in 44ad395 after 6 minutes.

repo: PowerfulRichard/PT-Status

license: MIT

license_source: github-api


text:
[WIP] Random weight and favored

This PR is basically a combination of random favored idea https://github.com/Practical-Formal-Methods/AFL-public/pull/4 and weight random selection https://github.com/Practical-Formal-Methods/AFL-public/pull/5.

@wuestholz, I am setting up the fuzzbench experiment with the following fuzzers.

vanilla AFL
the latest setting of the random favored PR (increase_boost_inputs && base_weight_fac == 4.0 && max_weight_fac_decr == 3.75)
combination of random favored and weight random selection (this PR with the customzed values same as fuzzer no.2  — increase_boost_inputs && base_weight_fac == 4.0 && max_weight_fac_decr == 3.75)
combination of random favored and weight random selection (this PR with default parameters)

@wuestholz, could you please help to confirm that I have correct fuzzers for the evaluation?

@jiradeto Thanks! This will be a local experiment, right?
Did you already run an experiment to compare increase_boost_inputs with new_increase_boost_fast_seqs (from https://github.com/Practical-Formal-Methods/AFL-public/pull/4#issuecomment-879207228)? If not we should also include just the increase_boost_inputs configuration.

@jiradeto Thanks! This will be a local experiment, right?

@wuestholz, yes I mean the local experiment.
So, based on your your comment in another PR (https://github.com/Practical-Formal-Methods/AFL-public/pull/4#issuecomment-882443156), I assume the current setting means the default value of increase_boost_inputs which is:
default && max_weight_fac_incr == 15.0

If this is the case, I will run fuzzbench with the following fuzzers:

vanilla AFL
the increase_boost_inputs setting of the random favored PR (max_weight_fac_incr == 15.0)
combination of random favored and weight random selection (this PR with max_weight_fac_incr == 15.0)
combination of random favored and weight random selection (this PR with default parameters)

Could you please tell me if I am missing something?

@jiradeto Great! Thanks!
I think we don't need the fourth configuration.
Could you please also update this PR to make 15.0 the default value?

Let's add the following flags:

DISABLE_WRS: disables weighted random selection
DISABLE_RF: disables random favorites
ENABLE_UF: enables uniformly random favorites (i.e., weight always 1)

DISABLE_RF: disables random favorites

@wuestholz, does this mean that we disable both random weighted selection (PR https://github.com/Practical-Formal-Methods/AFL-public/pull/4) and uniformly random favorites (PR https://github.com/Practical-Formal-Methods/AFL-public/pull/5)?

DISABLE_RF: disables random favorites

@wuestholz, does this mean that we disable both random weighted selection (PR #5) and uniformly random favorites (PR #4)?

@jiradeto No, just  uniformly random favorites (PR https://github.com/Practical-Formal-Methods/AFL-public/pull/4).

DISABLE_RF: disables random favorites

@wuestholz, does this mean that we disable both random weighted selection (PR #5) and uniformly random favorites (PR #4)?

@jiradeto No, just uniformly random favorites (PR #4).

@wuestholz OK, that makes sense.
But I am unsure when to use ENABLE_UF since the default weight is already set to 1.0 if all additional parameters enable_throttle_inputs, enable_boost_fast_seqs, enable_boost_inputs are not enabled.

DISABLE_RF: disables random favorites

@wuestholz, does this mean that we disable both random weighted selection (PR #5) and uniformly random favorites (PR #4)?

@jiradeto No, just uniformly random favorites (PR #4).

@wuestholz OK, that makes sense.
But I am unsure when to use ENABLE_UF since the default weight is already set to 1.0 and untouched if additional parameters enable_throttle_inputs, enable_boost_fast_seqs, enable_boost_inputs are not enabled.

@jiradeto I see. I suggest we replace enable_throttle_inputs, enable_boost_fast_seqs, and enable_boost_inputs with a single flag ENABLE_UF. When it is not set we will use enable_boost_fast_seqs and enable_boost_inputs.
We can probably remove the enable_throttle_inputs flag and the corresponding code.

@jiradeto Great! Thanks for the latest changes. There's only a small typo I noticed. I think we could try to set up an fuzzbench experiment with the following fuzzers:

afl (vanilla AFL)
afl_no_favs: DISABLE_WRS && DISABLE_RF && !ENABLE_UF && DISABLE_FAVS
afl_wrs_rf: !DISABLE_WRS && !DISABLE_RF && !ENABLE_UF && !DISABLE_FAVS
afl_rf:  DISABLE_WRS && !DISABLE_RF && !ENABLE_UF && !DISABLE_FAVS
afl_rf_u:  DISABLE_WRS && !DISABLE_RF && ENABLE_UF && !DISABLE_FAVS
afl_wrs: !DISABLE_WRS && DISABLE_RF && !ENABLE_UF && !DISABLE_FAVS

Can you think of another setup that would be interesting?

afl_rf_u: !DISABLE_WRS && !DISABLE_RF && ENABLE_UF && !DISABLE_FAVS

@jiradeto Sure, why not. :)
I was thinking a public one.

@wuestholz, I feel that I'd rather at least have a local experiment result before I can go with the public one. Maybe we should start with the local experiment to see whether the above configurations behave properly?

@jiradeto Sure, that's also fine with me. 👍

@jiradeto As discussed, I would first do the following:

close #8
merge #9
merge #7
close #3, #4, and #5

Afterwards, it would be great if you could run a local experiment that compares the following:

afl (vanilla AFL)
afl_wrs_rf: !DISABLE_WRS && !DISABLE_RF && !ENABLE_UF && !DISABLE_FAVS && DISABLE_RP
afl_wrs_rf_u: !DISABLE_WRS && !DISABLE_RF && ENABLE_UF && !DISABLE_FAVS && DISABLE_RP
afl_wrs_rf_t: !DISABLE_WRS && !DISABLE_RF && !ENABLE_UF && !DISABLE_FAVS && DISABLE_RP && changes below

The changes for the last configuration are:
      if (!enable_uniformly_random_favorites) {
        // enable_boost_inputs
        double base_weight_fac_boost_inputs = 1.0;
        double max_weight_fac_incr = 7.0;
        double scale_fac_boost_inputs = 0.001;
        double num_selections = (double)q->num_fuzzed;
        weight *= base_weight_fac_boost_inputs + max_weight_fac_incr / (scale_fac_boost_inputs * num_selections + 1.0);

        // enable_boost_fast_seqs
        double base_weight_fac_boost_fast = 8.0;
        double max_weight_fac_decr = 7.0;
        double scale_fac_boost_fast = 0.005;
        double execs_per_sec = 1000000.0 / (double) q->exec_us;
        weight *= base_weight_fac_boost_fast - max_weight_fac_decr / (scale_fac_boost_fast*execs_per_sec + 1.0);
      }

@wuestholz thank you for your detailed guidance. The fuzzbench evaluation for the changes you requested is available and can access using the following links:

bloaty
sqlite
libjpeg
libxml
freetype

@jiradeto Thanks a lot! Looks like it's slightly better. If you agree I suggest we update the code.

authors: jiradeto wuestholz

repo: Practical-Formal-Methods/AFL-public


text:
Cannot Use SVGs that are not from FontAwesome

Submit an Issue
Hi,
Thanks for helping us improve the Predix UI platform by submitting an issue.
Expected behavior and actual behavior:
Looking at the APIs for px-map-marker-symbol (part of px-map) and the only way to feed in input is fa- where  is substituted for one of the several icons in FontAwesome. It is not clear how to feed in own SVGs from a local copy

Thanks for this report. We looked into this a bit to figure out the best approach.
Our early thoughts were allowing developers to pick the icon CSS class and define new icons by creating a new CSS class. But we decided that wouldn't be feasible because (1) there's no good way for developers to get their new icon CSS class definition into the shadow root of the px-map component, and (2) we're looking to move away from webfonts for icons in the long term in favor of SVGs.
I think we've landed on changing the way <px-map-marker-symbol> works by allowing the developer to define and use their own SVGs. Two ways we could approach this:

Expose a new attribute that accepts a string of SVG markup, and render that markup in the marker (e.g. <px-map-marker-symbol svg="<svg>...</svg>"></px-map-marker-symbol)
Follow the path of px-polymer-font-awesome and use iron-iconsets defined by the developer, or default iconsets defined by the component, to render SVG in the marker. This option would be a bit more work for our team to implement, and a bit more work for the developer, but has the added benefit of allowing developers to use their defined SVG icons in a marker or to use then in <iron-icon> tags elsewhere in the app.

My initial estimate is we can release a minor update within 1-2 weeks to accomplish this, but we'll comment back here with updates if the timeline changes. We'd also accept a contribution (pull request) that implemented this functionality.
cc @Menkhaus-ge @talimarcus

Hi @icicle167,
As of v2.0.0, px-map has been updated to take svg icons (rather than an icon font, such as Font Awesome) everywhere icons are used:

px-map-marker-symbol
px-map-marker-group
px-map-control-zoom
px-map-control-locate

authors: davidrleonard icicle167 talimarcus

repo: PredixDev/px-map


text:
Fixing the bug that appeared when anonymize customer last name option has been added.

Questions
Answers

Description?
Fixing the bug that appeared when anonymize customer last name option has been added.

Type?
bug fix

BC breaks?
no

Deprecations?
no

Fixed ticket?
Fixes PrestaShop/Prestashop#22222.

How to test?
Issue describes it enough.

CSFixer is red, please run it :)

@PierreRambaud I did it against latest dev branch with your CS fixer changes.

@Oksydan I don't know how you rebased your PR but something's wrong 🤔, you shouldn't see someone else's commits on your PR.

@atomiix
branch fixed

Hi @Oksydan,
It is ok :heavy_check_mark:

Thanks!

Thank you @Oksydan

authors: NeOMakinG Oksydan PierreRambaud atomiix khouloudbelguith

repo: PrestaShop/productcomments


text:
Merge pull request #11 from PrestaShop/dev

error 500 when enable the module.
just change in the ps_viewedproduct.php at the start of the file the line
use PrestaShop\PrestaShop\Adapter\Presenter\Product\ProductListingPresenter;
to
use PrestaShop\PrestaShop\Core\Product\ProductListingPresenter;

Thanks to @Matt75 we have a Pull Request that follows these guidelines 😉 : https://github.com/PrestaShop/ps_viewedproduct/pull/13
So I close this one


text:
[Request] Add Labels on Endscreen

Adds Labels on Endscreen
Examples.
Noclip Deaths/Accuracy, From%, Best runs.
Pls, This is cool.

Nice idea

authors: LouemPH PotatoTriesIt

repo: Prevter/OpenHack


text:
As an admin, I want changes made to books, cards, and people in the admin interface to automatically update the public search, so that content in the search and admin interface stay in sync.

Dev notes
This will require signal handling to be implemented for Django in parasolr.

duplicates #339

authors: bwhicks thatbudakguy

repo: Princeton-CDH/mep-django


text:
As a global admin, I want addresses automatically associated with accounts in the logbook where possible to minimize the amount of manual cleanup required.

Encoder will reference personography to determine which account addresses are NOT the account-holder's address.

@elspethgreen Ben filled me in on the logic you all discussed for associating addresses with accounts on import.  I'm converting this issue to handle address logic on import (as an extension of #9 ) and have asked @bwhicks to document the logic he intends to implement and what pieces of information will nee to be cleaned up manually (e.g., care of addresses, people with multiple addresses).  If I understand correctly, it sounds like this should handle the majority of simple cases and leave the complicated ones to be sorted out manually by the team after import.

@elspethgreen after discussing a bit more with @bwhicks, I'm wondering if we should hold off on any logic to automatically associate addresses with accounts until we import the lending cards.  What do you think?

If it's easier to do it on the next import, that's fine!  But when encoders start actually working with the system, we'd want those addresses automatically associated.

@elspethgreen we're going to push this back to the next release.  It requires some conversation among me, @bwhicks and @jabauer to figure out how to model addresses properly in the database (we'll probably be back to the team with questions to refine this soon).
We absolutely will do what we can to clean those up automatically before you do any manual clean up or association.  It may actually be a good thing to look at this as we're working on the card import in the next stage.

@clmahoney @i-davis  could you play with this a bit?  I've taken a look and I think it's working as described in Rebecca's testing notes, but since it's complicated I'd like some other eyes on it.

I think all this looks good to me! I should say I'm a bit lost by testing notes, generally, & this last batch has felt esp a bit beyond me; but I think I get this one!

authors: elspethgreen i-davis rlskoeser


text:
生成成功后GIF为空GIF

`[root@VM_0_13_centos ~]# ffmpeg
ffmpeg version 3.4.2 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-23)
configuration:
libavutil      55. 78.100 / 55. 78.100
libavcodec     57.107.100 / 57.107.100
libavformat    57. 83.100 / 57. 83.100
libavdevice    57. 10.100 / 57. 10.100
libavfilter     6.107.100 /  6.107.100
libswscale      4.  8.100 /  4.  8.100
libswresample   2.  9.100 /  2.  9.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...
Use -h to get full help or, even better, run 'man ffmpeg'
`
以上是检查FFMPEG时的代码，我以前装了最新版（v4.0）但是不行，又装了教程里的版本还是不行，php.ini的system函数也开了。网站:www.make233.cn，求大佬帮忙解决，Q:2403393945，谢谢了！

使用宝塔面板 PHP5.6 求帮忙解决

你试试这个新的 https://github.com/PrintNow/Make-Funny-Image ，需要开启 exec 函数

好的，我试试。

repo: PrintNow/php-sorry-gif


text:
"language-git" don't show any coloration on my navigator (FireFox & Chrome).

Hi,
I use prismjs with « Okaidia » theme,
pro coloring code of my learning « HTML » page's of web‑dev note's.
And strangely even if I have downloaded the version on the official page,
with all language's & some extra feature's,
"language-git" doesn't show any coloration, except pro :

comment's starting with « # ??? » in dark‑grey,
phrase starting with « -  » shown in magenta,
string using « " ??? " » or « ' ??? ' » in green.

Can you help please ?

This is because the git uses mostly non-standard token names which are not supported by any Prism themes.
You can edit the Okaidia theme to highlight the different parts of git commands and their outputs to your liking. You can find all tokens names in the language definition along with comments explaining every single one of them.

Thank pro your help,
but it is strange that "prismjs" propose support of this language without any result ?

Well, there are results for comment, string, and parameter.
The rest of the language is for the outputs of git commands which are pretty hard to fit into the current style system of Prism themes.
So leaving the choice of color to the user doesn't seem like a bad idea IMO.
You are right in that it is a little confusing that the themes of Prism do not cover/highlight every (little) feature Prism supports. But as these themes are intended to be modified by the user, I think that it is alright for them to be minimalistic.

I'm not very good in JavaScript (beginner) to start to configure by my self this language-git "js" & "css", I'm still happy to get good result with HTML, CSS, PHP & JS language, but really I don't comprehend why each user's should make this modification by himself, it's such a waste of time, if we addition all the time we use all of us to make them. It would be surely better if the standard commands had directly specific syntax colors according to theme chose pro install.

It would be surely better if the standard commands had directly specific syntax colors according to theme chosen pro install.

That's true but doing so for every little feature of every theme would blow up the file size of the themes and it makes them hard to maintain. So for simplicity's sake, only the most common features are supported by Prism's themes.

I comprehend the problem of file size, but « prism » could be proposed in two version light & heavy, at least we will have the choice…

authors: Nemzag RunDevelopment

repo: PrismJS/prism


text:
Update Minecraft wiki link to new domain

The Minecraft Fandom wiki has been forked to a new domain: minecraft.wiki. Learn more here: https://minecraft.wiki/w/Minecraft_Wiki:Moving_from_Fandom. This PR updates the old wiki link accordingly.

Thanks!

authors: Spongecade extremeheat

repo: PrismarineJS/bedrock-protocol


text:
Added several glass/tranparent navbar effect

added  three different transparent navbar effect, choose the one that is most suitable

Hey @hassana123 can you make this boxes go away ?? or do I have to tell you which code you should remove ?

on it

Hey @hassana123 can you make it more like this ?

Don't change the color. Instead use this piece of code
.navbar {
  position: fixed;
  top: 0;
  background: rgba(0,0,0,0.3);
  backdrop-filter: saturate(180%) blur(10px);
  left: 0;
  display: flex;
  width: 100%;
  justify-content: space-between;
  padding: 10px;
  z-index: 10;
  color: whitesmoke;
}

done

Thank you @hassana123 🙌
make sure to check other issues

Sure

repo: PritamSarbajna/tourism-website


text:
Update security.md

As per the issue #1441
Fixes:  #1441
Description
I changes the file with thw symbols and tried to make it interactive. So that it becomes easy to read it fastly and easily.
If any further changes required please let me know.
Type of PR

[ ] Bug fix
[ ] Feature enhancement
[ x] Documentation update
[ ] Other (specify): _______________

Screenshots / videos (if applicable)

Checklist:

[ x] I have made this change from my own.
[ x] I have taken help from some online resources.
[ x] My code follows the style guidelines of this project.
[x ] I have performed a self-review of my own code.
[ x] I have commented my code, particularly in hard-to-understand areas.
[ x] I have made corresponding changes to the documentation.
[ x] My changes generate no new warnings.
[ x] I have tested the changes thoroughly before submitting this pull request.
[ x] I have provided relevant issue numbers and screenshots after making the changes.

If possible please add the labels of a level 2 or level 3 , it will be a great help from your side.
Thank you for giving me an opportunity.

repo: PriyaGhosal/BuddyTrail


text:
Change the color of text for better visible

Related Issue
Feat:Text Not Visible #640
Fixes:  #issue no.640
Description
The current text is not visible properly. I've changed the font-size, weight, and color. So that it can properly visible.
Issue no: #640
Type of PR

[ ] Feature enhancement

Screenshots / videos (if applicable)
Before:

After:

Checklist:

[ x] I have made this change from my own.
[ x] My code follows the style guidelines of this project.
[x ] I have performed a self-review of my own code.
[ x] My changes generate no new warnings.
[ x] I have tested the changes thoroughly before submitting this pull request.
[x ] I have provided relevant issue numbers and screenshots after making the changes.

@PriyaGhosal @samarth-6  Please review my code and also add label of hacktoberfest'24, hacktoberfest-accepted, level-2.

@Sudhanshu248
Your pull request has been successfully merged! Don't stop here—continue contributing by addressing more issues and aiming to become a top contributor. Exclusive swag awaits for those who go the extra mile!
Great contribution to GSSOC'24 EXTENDED! 🎉


text:
Cometchat stuck on loading

Downloaded the clone and it runs without issue the only problem I am seeing is with CometChat.
When I click the chat with seller button
it just hangs on this loading screen. I have verified that the .env file is setup correct with the IDs

Hi @Mattw11486. Could you please share your console output?
There is probably additional information there on what seems to be wrong when loading CometChat

I am a noob when it comes to this but in Terminal on Visual Studio code it just shows a few warnings about links not working which is fine. Nothing about cometchat. Output is blank.

No problem @Mattw11486. The console I was looking for is the browser console.
So on Chrome (if that is what you are using) you can press F12 and a new window will appear with several tabs. One of which is the browser console. This is where the application will show runtime errors.

Thank you

Looks like that was the key to my fix. I realize cometchat 2.0 is installed on the project while on my dashboard in cometchat I had to select the 2.0 version. Hopefully that won't be an issue later if cometchat forces to update version? Anyway it seems to be working now!


text:
ForceDelete model

$storedFile = Storedfile::findOrFail($id);
$storedFile->forceDelete();

Outputs error:
Call to a member function toArray() on array
exception | Symfony\Component\Debug\Exception\FatalThrowableError
file | \vendor\proai\eloquent-versioning\src\BuilderTrait.php

I have the same issue with normal delete:
$storedFile = Storedfile::findOrFail($id);
$storedFile->delete();
The fix from netcom does not help.
Are there some news about this?

I'm using a custom BuilderTrait (to patch few bugs). Try use this in your case @10bias :

    /**
     * Get affected records.
     *
     * @return array
     */
    protected function getAffectedRecords()
    {
        // model only
        if ($this->model->getKey()) {
            $records = [$this->model];
        }

        // mass assignment
        else {
            $records = $this->query->get()->all();
        }

        return $records;
    }

    /**
     * Run the default delete function on the builder.
     *
     * @return mixed
     */
    public function forceDelete()
    {
        // get records
        $affectedRecords = $this->getAffectedRecords();
        $ids = array_map(function($record) {
            return $record->{$this->model->getKeyName()};
        }, $affectedRecords);

        // delete main table records
        if (! $this->query->delete()) {
            return false;
        }

        // delete version table records
        $db = $this->model->getConnection();
        return $db->table($this->model->getVersionTable())
            ->whereIn($this->model->getVersionKeyName(), $ids)
            ->delete();
    }

repo: ProAI/eloquent-versioning


text:
Adding the Growth Chamber MK2

It's an improved version of the current growth chamber.
It yields 4x the amounts of the growth chamber while using only 2x as much power.
It has 9 input slots and 27 output slots.
As you see I made an entire new "AMachineMK2" file, the reason for that is because I wanted the new machine to have more input and output slots but didn't see another way to do it without making a new file and changing the registered slots. I also made the "GrowthChamberMK2" file because I also didn't see a way to change the amounts it produces without affecting the already existing machine. I haven't tested it yet to see that nothing breaks, so if you could take a quick peak at the code and tell me if you see anything that could easily break I'd thank that a lot.

Please use the Antigravity Bubble as a reference make a new ui instead of making a seperate abstract machine.
AMachineMK2 is not needed at all. That is currently that I all see

Got it

Why did you close it?

You an just add a commit

I'm making the file, will reopen when done

oh ok 👍

repo: ProfElements/DynaTech


text:
Eprice555 patch 1

@manishapriya94 testing

@manishapriya94 testing 2

@manishapriya94 Testing again.

repo: ProgramEquity/amplify


text:
Password Strength helper

Existing helper class created, PasswordStrength, which should use configuration to determine minimum password strength and return friendly results as required.

This is handled by ASP.NET Identity


text:
[API] Funktionsschnittstelle

Über die DSL werden die Entitäten angelegt, also mit Components versehen.
Components werden ggf. auch über die DSL konfiguriert (Parameter).
Interessanter wird der Fall, wenn Verhaltensweisen in der DSL definiert werden.
Anmerkung: In der DSL werden die Funktionen nicht richtig selbst programmiert, sondern eher aus vorhandenen zusammengesteckt.
Ein simples Beispiel, wäre eine Falle.
Eine Falle ist eine Entity mit einem PositionComponent, AnimationComponent und HitBoxComponent (so grob).
Jetzt muss der Falle aber noch mitgeteilt werden (über die DSL), was sie bei einer Kollision macht.
Ganz Stumpf:
onCollision: hitPlayer(5); deactivate();
hitPlayer und deactivate wären über die API vordefinierte Funktionen.
Die Frage ist mehr: Wo kommt onCollision hin. Für mich logisch wäre im HitBoxComponent aber das sind eigentlich keine Daten. Aber in ein System wäre das zu übergreifend, oder?
Außerdem: Woher weiß die Falle, dass sie mit dem Player kollidiert (aber vermutlich eher was für #87)
Dieses Problem ist repräsentativ für weitere Probleme. Wir wollen Teilweise noch komplexere Verhalten definieren (vgl #91)
@malt-r Habe ich das so richtig/gut beschrieben?

Yes, passt passt aus meiner Perspektive gut :)
Du hast Recht, dass das onCollision nicht zu den Daten gehört, allerdings müssen die Components ja irgendwie in der Lage sein, sich mitzuteilen. "Sauberer" (also mehr dem Gedanken ECS folgend) wäre es sicherlich, das über ein System zu regeln. Allerdings wäre meine Einschätzung, dass das eine gute pragmatische Aufweichung vom ECS Gedanken ist, wenn wir neben reinen Daten auch Callback-Funktionen in den Components erlauben.
Allerdings steht man dann vor der Herausforderung, dass man ja in der DSL irgendeine "Reaktion" in die Callback-Funktion einhängt und da dann wieder andere Komponenten des gleichen GameObjects manipulieren will, ggfs. über Methodenaufrufe. Ob die Components dann die Logik dieser Methoden selbst implementieren oder die Implementierung in ein System ausgelagert werden sollte, kann ich grade irgendwie nicht gut abschätzen.
Ein Beispiel wäre hier hitPlayer(5) als Reaktion auf onCollision: wird da dann direkt eine Methode aufgerufen, die den health-Wert in einer Komponente im Player abzieht oder merkt sich das die Komponente bis zum nächsten Update Zyklus und lässt dann den health-Wert durch ein System abziehen?

#Time: 16 WiMi Std.?

@malt-r Könnte ungefähr hinkommen. Aber mit Tests etc... tendiere zu 24

authors: AMatutat malt-r

repo: Programmiermethoden/Dungeon


text:
Update luna detection

Try to use ApplyTransformToPointsd to update luna detection pipeline
Checks

[ ] Avoid including large-size files in the PR.
[ ] Clean up long text outputs from code cells in the notebook.
[ ] For security purposes, please check the contents and remove any sensitive info such as user names and private key.
[ ] Ensure (1) hyperlinks and markdown anchors are working (2) use relative paths for tutorial repo files (3) put figure and graphs in the ./figure folder
[ ] Notebook runs automatically ./runner.sh -t <path to .ipynb file>

I didn't modify the generate_detection_val_transform and generate_detection_inference_transform because it would offer no significant benefit. Making these changes would require converting boxes to points, applying the transform, and then converting the points back to boxes.

Looks good to me overall. Hi @Can-Zhao , we introduced some early features about point operations. Would you mind taking a look at this PR? Thanks!

authors: KumoLiu mingxin-zheng

repo: Project-MONAI/tutorials


text:
02 05 authorization

Добавлена папка приложения Comment, изменен дизайн публичной части сайта

Рейтинг

license: Unlicense


text:
Primeira issue do projeto

Neste ticket, todos vocês vão ser notificados

Salve salve galerinha do zap

OK, TEAtcher

Boa noite !

Obrigada pela notificação! Grata!

ótima tarefa, irei iniciar em breve

hey

conta Catarina!!

chore não rei delax

bom dia

authors: Athsxt Emillysouzz LUKASRIB15 MatheuzsFer Tiago-Ramon felipebastos vitoriajuli


text:
export NodeViewConstructor and MarkViewConstructor

Would be nice to expose these types for libraries that build abstractions on top of these two.

We'll also need doc comments on these if they are going to appear in the reference docs.

authors: BrianHung marijnh

repo: ProseMirror/prosemirror-view


text:
片源可播，能保障多久呢？

片源可播，能持续修复吗？
怕上个站，就挂了

正常情况下应该不至于挂,毕竟选的几个采集站都还算稳定长久,而且播放源也是一对多,同时挂的可能性很小,就算挂了重新换主站从零采集也才3-10分钟左右,时间也不算很长

authors: ProudMuBai yoorxee

repo: ProudMuBai/GoFilm


text:
🛑 Service - Help Center is down

In bb80639, Service - Help Center (https://help.proxeuse.com) was down:

HTTP code: 500
Response time: 10588 ms

Resolved: Service - Help Center is back up in 84b802e.

repo: Proxeuse/status


text:
🛑 Service - Help Center is down

In f194763, Service - Help Center (https://help.proxeuse.com) was down:

HTTP code: 500
Response time: 5435 ms

Resolved: Service - Help Center is back up in 726f176.


text:
Pub 2941 fixing missing logging of invalid bids

Ticket: PUB-2941
This ticket addresses an issue in which an auction containing only invalid bids is not recorded.
Invalid bids are mapped to bidtype 1. Timed-out bids are mapped to bidtype 3. If any auction contains only bidtypes 1 or 3, it is now sent to pubx (assuming the relevant downsampling permits this).
There was a query as to whether or not auctions. with no bids at all were recorded. using the javascript array.prototype.every function on an empty array returns true, so this condition is satisfied. An additional test already verified this in prebid, but the test was quite obscure, so i tried to tidy it up a little.
Additional tests were added to confirm that auctions with timed out bids or invalid bids (as far as i can tell this only occurs due to pricing issues) are also recorded.

@nathan-pubx It's showing all other non-related commits in this PR. Could you please rebase the upstream master before adding this commit to avoid duplicate commits?

@nathan-pubx It's showing all other non-related commits in this PR. Could you please rebase the upstream master before adding this commit to avoid duplicate commits?

Sorry @pnhegde , that's done now. The branch was based on the prebid.js master branch, but now is based on the pubx master

authors: nathan-pubx pnhegde


text:
Eva Weekly Notes -- 2024-03-04

RA Projects
AwardFindR / award-pynder

5/16 data sources ported to Python
handed off to Nic + Isaac

Research Software
EAGER / Software Sustainability

[ ] Create dataset and basic EDA for "follow up sample" -- specifically:

Select only CISE and BIO from 2013 - 2023 (ask Nic if he wants to 2023 because need grants that have concluded)
Remove no code and survey responses from the set
Remove EAGER, Workshop, REU, and coop grants

[ ] Build on top of this dataset by:

Retrieve project reports
Identify Publications and Software from those reports
Put these in a dataset linked by award (award-software and award-publication)
Find multiple publications under the same award using WoS

[ ] Come up with clear questions to answer using the existing survey data
[x] Timeline plot / think through other ways to visualize "typical development patterns as they relate to grant funding timelines"

RS-Graph / Database for RS Research

[ ] Review and talk through planning doc with Nic
[x] Put together a plan for Akhil and Terra to work on the CRediT work
[ ] Ask Isaac for help writing a Llama/Mistral/etc. fine-tuning script for the Dev - Author annotation data
[x] ICSSI: minor plan for abstract proposal
[ ] Write WoS script for getting papers who mention software, tool, pipeline, or package in title from set of journals

Civic
Public Comment Segmentation

[ ] Write evaluation script for application of model for determining the segmentation quality (i.e. are we missing parts before, after, etc.)
[ ] Train and eval models for Seattle and Oakland
[ ] Choose next city council for data annotation and prep data

ML for PIT

No progress.

PhD Activities
Writing

[ ] Review and contribute to the Gig Driver Deactivation paper
[ ] Review and contribute to the CZI Software Dependency Graph paper

Reading

Read this week:

https://doi.org/10.1007/s11192-023-04806-2

Plan to read this week:

https://www.semanticscholar.org/paper/Ecosystem-level-determinants-of-sustained-activity-Valiev-Vasilescu/e8eb4dc83c7f74848c331005aa7c124dc13cf6a9?utm_source=direct_link
https://www.semanticscholar.org/paper/Beyond-the-Repository-Casari-Ferraioli/21dd9f046fc807a498840e19f6c81e69ffad8651?utm_source=direct_link
https://www.semanticscholar.org/paper/Fairness-and-Abstraction-in-Sociotechnical-Systems-Selbst-Boyd/9dae5041ed97ab21f637fb282d758fd9cb771476?utm_source=direct_link
https://doi.org/10.1162/qss_a_00275
https://doi.org/10.1162/qss_a_00277
https://doi.org/10.1162/qss_a_00264
https://doi.org/10.1162/qss_a_00266

Specific tasks 2024-03-07:

finish constructing dataset for ankil and terra
put together script for evaluating whole public comment segmentation model
choose next city council and prep data for annotation
keep working on icssi

Specific tasks 2024-03-08

put together script for evaluating whole public comment segmentation model (train fine-tune-mpnet-three-sentences for real and then apply)
read two papers from above list
start JOSS review
choose next city council and prep data
check in on nic for new email dump
check in on akhil and terra for practice annotations

repo: PugetSoundClinic-PIT/ProjectTracking


text:
Feature request: skipmissing keyword

Now it's hard to implement skipmissing
listingtable(
    df,
    :Conc => "Concentration (ng/mL)",
    rows = [:Formulation => "Formulation", :Subject => "ID"],
    cols = :Time => "Time (hr)",
    summarize_rows = :Formulation => [length => "N",
    Pair(x->mean(skipmissing(x)), "Mean"),
    Pair(x->std(skipmissing(x)),"SD"),
    Pair(x->median(skipmissing(x)) , "Median"),
    Pair(x->maximum(skipmissing(x)) , "Maximum"),
    Pair(x->minimum(skipmissing(x)) , "Minimum")]
)

also it lead to error when only missing data found in group.

You can use f ∘ skipmissing (written \circ + tab) for a short version of what you're doing, but if you want robustness against all-missing data, you can define a helper function like
function robust_skipmissing(f)
    return function(vec)
        all(ismissing, vec) && return Annotated("NC", "NC - Not computable", label = nothing)
        return (f ∘ skipmissing)(vec)
    end
end

data = DataFrame(
    concentration = [missing, 4.5, 2.0, 1.5, 0.1, missing, 3.2, 1.8, 1.2, 0.2],
    id = repeat([1, 2], inner = 5),
    time = repeat([0, 0.5, 1, 2, 3], 2)
)

listingtable(
    data,
    :concentration => "Concentration (ng/mL)",
    rows = :id,
    cols = :time => "Time (hr)",
    summarize_rows = [
        length => "N",
        robust_skipmissing(mean) => "Mean",
        robust_skipmissing(std) => "SD",
        robust_skipmissing(median) => "Median",
        robust_skipmissing(maximum) => "Maximum",
        robust_skipmissing(minimum) => "Minimum",
    ]
)

authors: PharmCat jkrumbiegel


text:
added terms and conditions

@Puskar-Roy
I have added the terms and conditions page and made it responsive for the mobile view as well
Sorry I have deleted the previous PR by mistake, that why I created this new PR
And also in the previous PR, you have added all the labels and considered it as level3, please dont forget to add the labels here
The issue number is #123
Kindly check it out
https://github.com/user-attachments/assets/82c5652e-ae83-4c63-a5aa-78d1b4b7f9a9

Hello @AswaniBolisetti, thank you for your pull request! We will review it shortly. 😇❣
Your contributions help us grow and improve our project. Please make sure you have read and followed our CONTRIBUTING GUIDELINES.
Your efforts are appreciated, and we value your participation in our community. Don't forget to ⭐ our repository!
Happy coding!✨

authors: AswaniBolisetti Puskar-Roy

repo: Puskar-Roy/create-my-api


text:
Closes #33 make the black format workflow apply to all code

went for pre-commit

Hmm, I was hoping for fewer complaints. One step closer ...

repo: PxTools/PxBuild


text:
🛑 Overseerr is down

In d64d788, Overseerr (https://request.pxlbuzzard.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Overseerr is back up in ba8ea2c.

repo: PxlBuzzard/upptime


text:
🛑 ArchiveBox is down

In 769c389, ArchiveBox (https://archivebox.pxlbuzzard.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ArchiveBox is back up in bd9a55a.


text:
updated the logo

A logo with the circular background was needed, so I have made a logo with high px quality, along with the size of 60X60 px, white background as per the instructions. Do let me know if you need any further changes here. Glad to help :)
I'm attaching the same file here so that it would be easy for you to review.

make the border white or remove the black one.

@reveurguy  please check the new commit.

authors: aditimaurya reveurguy


text:
Remove dictionary from default install

Current dictionary is quite big and probably not every users are going to use that.
Also, PyThaiNLP may consider to include nlpO3 Python-binding as one of the word tokenzation options. That means two exact copies of a same dictionary will be installed.
Dictionary can be installed if the user explicitly put it in a feature flag, maybe something like:
nlpo3 = {version = "1.3.0", features = ["dict-pythainlp", "dict-libthai"]}

More dictionary options can be offered in this way as well.
If user just install it without the feature flag:
nlpo3 = {version = "1.3.0"}

the user have to supply a dictionary of their own.

#43 merged. Close.


text:
classwisewrapper doesn't support prefix

🐛 Bug
Hi, good afternoon.
I have defined ClasswiseWrapper inside a MetricCollection which looks like this
train_metrics = MetricCollection({
                # weighted acc
                "WA": Accuracy(num_classes=num_classes, threshold=0.5, average=avg),
                # unweight acc
                "UA": Accuracy(num_classes=num_classes, threshold=0.5, average="micro"),
                "Precision": Precision(num_classes=num_classes, threshold=0.5, average=avg),
                "Recall": Recall(num_classes=num_classes, threshold=0.5, average=avg),
                "UAR": Recall(num_classes=num_classes, threshold=0.5, average="micro"),
                # weighted F1
                "WF1": F1Score(num_classes=num_classes, threshold=0.5, average=avg),
                # unweight F1
                "UF1": F1Score(num_classes=num_classes, threshold=0.5, average="micro"),
                "MAE": MeanAbsoluteError(),
                "Corr": Corr(compute_on_step=False),
                "acc": ClasswiseWrapper(Accuracy(num_classes=num_classes, average=None), labels),
                "r": ClasswiseWrapper(Precision(num_classes=num_classes, average=None), labels),
                "p": ClasswiseWrapper(Recall(num_classes=num_classes, average=None), labels),
                "f1": ClasswiseWrapper(F1Score(num_classes=num_classes, average=None), labels),
            }, prefix="train/epoch/")

But it seems that when I call
metrics = train_metrics.compute()

although I can get other metrics with prefix all right (e.g. train/epoch/UF1),classwisewrapper doesn't take prefix into account, and I get acc_label1 acc_label2 etc.
Expected behavior
I think once classwisewrapper is inside a MetricCollection it should have something like train/epoch/acc_label1.
Environment

PyTorch Version (e.g., 1.0): 1.8.2
OS (e.g., Linux): Linux
How you installed PyTorch (conda, pip, source): conda
Python version: 3.7.11
Any other relevant information: torch metrics install from lastest master (0.8.0.dev0)

Additional context
Thank you for this awesome project!!

@cnut1648 thanks for reporting this. I take a look at it today (should be a simple fix). Great to know that the wrapper is useful to some users :]

repo: PyTorchLightning/metrics


text:
Fix markdown for .env section

Due to consecutive markdown blocks not being rendered correctly inside lists (only when accessing the page from the Pycord Guide), I removed one of the two examples that are basically showing the same thing in the same place. In addition to that, I improved the explanation so that it is more clear for beginners.

Please fix merge conflicts

authors: BobDotCom Elitesparkle

repo: Pycord-Development/guide


text:
Use a sphinx theme that supports dark mode natively

Currently we are using "Read The Docs" theme for our Sphinx-generated documentation pages. However, there are many additional theme options available to explore at https://sphinx-themes.readthedocs.io/en/latest/.
Personally, I prefer the PyData or Furo. Both support dark mode natively and, in my view, offer a cleaner, more modern style. For example, Qualtran uses the PyData theme for their docs, which has a really nice look.
Do you have any preferences or thoughts on this?

No issue from my end if you have a strong preference and would prefer to
change the style.
On Tue, Oct 29, 2024, 7:47 AM Adrien Suau @.***> wrote:

Both seems fine to me. I agree that RTD is not perfect, and having a
native black-theme is a nice feature.
—
Reply to this email directly, view it on GitHub
https://github.com/QCHackers/tqec/issues/382#issuecomment-2444485432,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAKAXTDZCZXQEFZULKZCCO3Z56NYJAVCNFSM6AAAAABQZ5XVHSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBUGQ4DKNBTGI
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

authors: afowler inmzhang

repo: QCHackers/tqec


text:
Dond: Only set parameter if not already at setpoint.

Current implementation of dond will ask every instrument to set the setpoint at every measurement point. This leads to an excessive amount of instrument communication as well as adding up all post_delays at every measurement point.
Especially for magnet parameters this becomes a huge issue as setting the parameter even to the current value can take several seconds due to internal PID loops in the magnet power supply.
Change behaviour to only set the parameter if it isn't already at the desired value as known by qcodes. This ensures we inly ping instruments that needs to get the setpoint updated during the run.

closed in favor of #3534 which is functionally the same change.

repo: QCoDeS/Qcodes


text:
unable to install jenkins

sir,
when i tried to install jenkins its showing me following error please help me with that

If plugin install fails the only option is to reinstall. If the reinstall is failing removing JENKINS_HOME directory & retry

sir how to remove JENKINS_HOME directory
its saying no such file or directory

JENKINS_HOME is environment variable for the Jenkins HOME DIRECTORY generally present @ /var/lib/jenkins.
PLease understand what you are trying to do before implementing any stuff

first type command echo $JENKINS_HOME you will find Jenkins home directory.

sorry sir can u please tell me how to remove jenkins _home directory

rm -rf /var/lib/jenkins

sir when i use these commands rm -rf /var/lib/jenkins
its says permission denied ihave tried new ubuntu server still same issue sir unable to connect jenkins

restart your jenkins service  and try again.

yes sir due to internet issue its hapenning sir so i have created new instance and done installation its working

authors: babasmd chittalalk shaikkhajaibrahim vijaybhaskarreddyy

repo: QT-DevOps/DevOpsIssues


text:
Refactoring Python code

Main Changes
:warning: This is still WIP
TODOs

[ ] Move hw_test_receiver.py to the test folder
[x] RC: remove any methods that send/receive data to/from ESP32; move them to EspBridge
[ ] Populate constants.json with all constants
[x] Delete old altitude_Kalman_filter.py
[ ] Documentation is needed for all functions
[x] Probably we'll have to get rid of all (or most) caches in main.py
[x] euler_angles: move to bzzz.util
[x] process_radio_data and process_ESP_data: this functionality will be mostly moved to EspBridge
[x] We need to figure out why we need a time.sleep statement in the main loop

Associated Issues

Closes #109
Closes #118
Closes #179
Addresses #193

Tests
None

To stop this PR getting to big it might be worth merging soon?

To stop this PR getting to big it might be worth merging soon? @alphaville

Sure. Can we just tick all the boxes in our todo list?

@jamie-54 where do we stand on this? I suppose, as you said, we need to cross out the first item on our todo list.

@jamie-54 where do we stand on this? I suppose, as you said, we need to cross out the first item on our todo list.

I think it might be worth merging the working version of this then address the other issues separately?

@alphaville @Runway27 @ejb-11 pretty sure this is ready to be merged, please take a look

repo: QUB-ASL/bzzz


text:
Build frontpage table by storing ids only

Right now frontpage table is filled with huge json fields.
It'd be better to keep a simple table with 50 ids, and then join it with questions in getFrontpage. I'm pretty sure the performance won't degrade.
(And frontpage_full is entirely unnecessary, since the same effect can be achieved with SELECT * FROM questions).
PS: This is not really important, but it's part of the work I'd like to do on normalizing the database.

I'm pretty sure the performance won't degrade

No strong opinions, happy to defer to you

authors: NunoSempere berekuk

repo: QURIresearch/metaforecast


text:
add some files

2 commits, check if https://github.com/sequoia-pgp/fast-forward works

/fast-forward

repo: Qbicz/fast-forward-rebase-merge


text:
Very Slow Performance

The Ubuntu image worked well (using a 64 GB SD card), but the Ubuntu system is very slow when installing certain libraries and packages such as Spyder IDE or others. The system appears to hang many times.
Additionally, the free space is only 4.6 GB, whereas the SD card has a capacity of 64 GB.

That's due to the Jetson Nano Quad-core ARM Cortex-A57.
It isn't fast. To be precise, with a clock of 1.4 GHz, it can be slower than a Raspberry Pi 4.
The great advantage of the Jetson family are their CUDA acceleration.
But CPU-wise, their are not the fastest in town.

Is there a way to make this image (Ubuntu 20.04) faster ??

authors: Qengineering adeljalalyousif


text:
Attempting to leverage for multilingual data.

I am trying to leverage the HiStruct architecture for Multilingual (the Hindi language in this case) type of data. I have modified the existing codebase which can be found here, with all instructions to run the code.
However, the following issue seems to occur when I attempt to start model training:
[2022-06-27 13:40:25,965 INFO] Loading train dataset from data_hiwiki/data_hiwiki_roberta/hiwiki.train.0.bert.pt, number of examples: 7 Traceback (most recent call last):   File "histruct/src/train.py", line 159, in <module>     train_ext(args, device_id)   File "/vc_data/users/gmanish/table2Text/histruct/histruct/src/train_extractive.py", line 463, in train_ext     train_single_ext(args, device_id)   File "/vc_data/users/gmanish/table2Text/histruct/histruct/src/train_extractive.py", line 505, in train_single_ext     trainer.train(train_iter_fct, args.train_steps)   File "/vc_data/users/gmanish/table2Text/histruct/histruct/src/models/trainer_ext.py", line 152, in train     self._gradient_accumulation(   File "/vc_data/users/gmanish/table2Text/histruct/histruct/src/models/trainer_ext.py", line 511, in _gradient_accumulation     sent_scores, mask = self.model(src, segs, clss, mask, mask_cls,sent_struct_vec,tok_struct_vec,section_names)   File "/home/gmanish/miniconda3/envs/table2Text_histruct/lib/python3.8/site-packages/torch/nn/modules/module.py", line 889, in _call_impl     result = self.forward(*input, **kwargs)   File "/vc_data/users/gmanish/table2Text/histruct/histruct/src/models/model_builder.py", line 518, in forward     top_vec = self.bert(src, mask_src)   File "/home/gmanish/miniconda3/envs/table2Text_histruct/lib/python3.8/site-packages/torch/nn/modules/module.py", line 889, in _call_impl     result = self.forward(*input, **kwargs)   File "/vc_data/users/gmanish/table2Text/histruct/histruct/src/models/model_builder.py", line 194, in forward     top_vec = self.model(x, attention_mask=mask,position_ids=position_ids).last_hidden_state   File "/home/gmanish/miniconda3/envs/table2Text_histruct/lib/python3.8/site-packages/torch/nn/modules/module.py", line 889, in _call_impl     result = self.forward(*input, **kwargs)   File "/home/gmanish/miniconda3/envs/table2Text_histruct/lib/python3.8/site-packages/transformers/models/roberta/modeling_roberta.py", line 815, in forward     encoder_outputs = self.encoder(   File "/home/gmanish/miniconda3/envs/table2Text_histruct/lib/python3.8/site-packages/torch/nn/modules/module.py", line 889, in _call_impl     result = self.forward(*input, **kwargs)   File "/home/gmanish/miniconda3/envs/table2Text_histruct/lib/python3.8/site-packages/transformers/models/roberta/modeling_roberta.py", line 508, in forward     layer_outputs = layer_module(   File "/home/gmanish/miniconda3/envs/table2Text_histruct/lib/python3.8/site-packages/torch/nn/modules/module.py", line 889, in _call_impl     result = self.forward(*input, **kwargs)   File "/home/gmanish/miniconda3/envs/table2Text_histruct/lib/python3.8/site-packages/transformers/models/roberta/modeling_roberta.py", line 395, in forward     self_attention_outputs = self.attention(   File "/home/gmanish/miniconda3/envs/table2Text_histruct/lib/python3.8/site-packages/torch/nn/modules/module.py", line 889, in _call_impl     result = self.forward(*input, **kwargs)   File "/home/gmanish/miniconda3/envs/table2Text_histruct/lib/python3.8/site-packages/transformers/models/roberta/modeling_roberta.py", line 323, in forward     self_outputs = self.self(   File "/home/gmanish/miniconda3/envs/table2Text_histruct/lib/python3.8/site-packages/torch/nn/modules/module.py", line 889, in _call_impl     result = self.forward(*input, **kwargs)   File "/home/gmanish/miniconda3/envs/table2Text_histruct/lib/python3.8/site-packages/transformers/models/roberta/modeling_roberta.py", line 243, in forward     attention_scores = attention_scores / math.sqrt(self.attention_head_size) RuntimeError: CUDA out of memory. Tried to allocate 18.85 GiB (GPU 0; 39.59 GiB total capacity; 20.30 GiB already allocated; 16.78 GiB free; 21.85 GiB reserved in total by PyTorch)
Considering the fact that the data sample which I am trying to use is quite small, I am unable to understand the reason of this error, as this seems to be an exponential increase in the requirement of resources as opposed to the original (monolingual) architecture.
Any insight from your end would be deeply appreciated.
Thanking you in anticipation.

Hi anupampatil44! Many thanks for your interest in using histruct. I am not sure if the problem is with the multilingual model. I had no problem training with the vanilla longformer on 24GB GPUs and fine-tuning roberta and bert (with input length 512 and 1024). If I get it right, you freezed the LM (i.e., -finetune_bert false) when taking longer inputs and didn't add token-level hierarchical position embeddings(HPE)  (-add_tok_struct_emb false)? Did you try to clear GPU memory before training? Maybe you can also try reducing the input length (e.g. -max_pos) and the number of sentence-level HPE (i.e., you can count the number of sentences in your inputs (turncated by max_pos), set a minimum possible value for max_nsent, adjust -max_npara and  -max_nsent_in_para accordingly if necessary).
Best,
Qian

repo: QianRuan/histruct


text:
running_programs_using_decorators fails

Steps to reproduce the problem
Install quantum middleware locally (M1 Mac for my case)
Execute 'running_programs_using_decorators' in the Jupyter notebook.
What is the current behavior?
"Hello, Qiskit!" fails
job.logs() shows
Traceback (most recent call last):\n  File "/tmp/ray/session_2023-11-14_10-23-00_770226_8/runtime_resources/working_dir_files/_ray_pkg_6635b2a1eae383f6/entrypoint_a80fb97c.py", line 11, in <module>\n    function = cloudpickle.load(file)\nAttributeError: Can\'t get attribute \'_function_setstate\' on <module \'cloudpickle.cloudpickle\' from \'/home/ray/anaconda3/lib/python3.9/site-packages/cloudpickle/cloudpickle.py\'>\n'

What is the expected behavior?
Completes without error

This may unique for M1 mac
The notebook image gets cloudpickle 3.0.0 installed and the Ray node gets cloudpickle 2.2.1 installed.  This causes serialization mismatch and causes the failure.

@IceKhan13 @Tansito @psschwei  Is this only for M1 mac(arm64)?  Can somebody try this with amd64 system? Thanks!

Pin cloudpickle to 2.2.1 fix this but I'm not sure if it's the right fix for this yet.

when you say install locally, are you building from source or pip install quantum-serverless?

I built it from the main branch.

and running locally using docker compose?

I installed with helm.

even better (that's what I started trying to install with)

The python package is installed at the image build time and won't change after that (I believe).

I can test it in M2 now 😂

it failed for me, but not for the reason it failed for you:
Failed to pull image "registry.access.redhat.com/ubi8/openssl:8.8-9": rpc error: code = Unknown desc = failed to pull and unpack image "registry.access.redhat.com/ubi8/openssl:8.8-9": failed to resolve reference "registry.access.redhat.com/ubi8/openssl:8.8-9": pulling from host registry.access.redhat.com failed with status code [manifests 8.8-9]: 502 Bad Gateway
that (should be) temporary... let me try again

same error:
Traceback (most recent call last):
File "/tmp/ray/session_2023-11-14_12-46-08_676930_14/runtime_resources/working_dir_files/_ray_pkg_60b88e2da40ac6db/entrypoint_a8565cd6.py", line 8, in
function = cloudpickle.load(file)
AttributeError: Can't get attribute '_function_setstate' on <module 'cloudpickle.cloudpickle' from '/home/ray/anaconda3/lib/python3.9/site-packages/cloudpickle/cloudpickle.py'>

My error 😂 :
 => ERROR [gateway 7/8] RUN chown -R 1000:100 /usr/src/app &&    mkdir /usr/src/app/media && chown 1000:100 /usr/src/app/media               22.5s
 => ERROR [scheduler 7/8] RUN chown -R 1000:100 /usr/src/app &&    mkdir /usr/src/app/media && chown 1000:100 /usr/src/app/media             22.5s
------
 > [gateway 7/8] RUN chown -R 1000:100 /usr/src/app &&    mkdir /usr/src/app/media && chown 1000:100 /usr/src/app/media:
22.52 mkdir: cannot create directory ‘/usr/src/app/media’: File exists
------
------
 > [scheduler 7/8] RUN chown -R 1000:100 /usr/src/app &&    mkdir /usr/src/app/media && chown 1000:100 /usr/src/app/media:
22.44 mkdir: cannot create directory ‘/usr/src/app/media’: File exists

@Tansito you have to delete /gateway/media directory before you build the gateway image.

Oh, true! Thanks @akihikokuroda 👍

@psschwei So it's not m1 unique.  We can pin cloudpickle to 2.2.1 for now in requirements.txt in client directory.  @WDYT

I confirm, it happens to me too, yeah.

works for me.
do we need to pin in the notebook requirements file too?

It's only in the client/requrements.txt.  I'll change it.  Thanks for helm @psschwei @Tansito

Thanks to you @akihikokuroda for detecting it 👍

authors: Tansito akihikokuroda psschwei

repo: Qiskit-Extensions/quantum-serverless


text:
Incorrectly displayed primitive result plot in Step 4 of Hello World

URL to the relevant documentation
https://docs.quantum-computing.ibm.com/start/hello-world
Select all that apply

[ ] typo
[ ] code bug
[ ] add new content
[ ] out-of-date content
[X] it's just wrong
[ ] other

What is the documentation issue/request?
Wrong plot in Step 4 for the code block from Step 3.  Should look like the below.

Just now I ran the code both on the simulator and on manila, and both times I got the plot we see in the current version, rather than the one @jerrymchow shows. Anyone know what's wrong in the code? @frankharkins

I also can't reproduce (using qiskit==0.44.2 and qiskit_ibm_runtime==0.12.2). @jerrymchow can you give more information about how you ran the code?

I spoke with Jerry and he determined his outcome was different because how he initialized qc -- so our graph is ok, and I'll close this issue. Thanks all!

authors: abbycross frankharkins jerrymchow

repo: Qiskit/documentation


text:
Define U gate before parsing

This adds a bogus gate definition for U, which is required to be built in. This appears as the first statement in the ASG.
This is perhaps not the best way to handle the built in gate. But it doesn't touch much code. It can be changed to something better without too much trouble.

Since U is required by the language spec, I am thinking it may be better to treat this specially rather than always sticking it in the ASG.
This would require an explicit check in a gate call. Also an explicit check every time a symbol is bound (If I recall correctly you are not allowed to shadow U).

If I recall correctly you are not allowed to shadow U

I think the scoping rules are no different from any other global-scope identifier (if I remember right), in that you can shadow it with a variable in an inner scope, but not in the global scope.  But equally, if it's easier to treat it as reserved for the time being, I don't think that's an onerous request for people.

My mention of shadowing is a bit of a red herring. In fact, we can treat U as reserved (with special handling for checking semantics of calls); and at the same time allow it to be shadowed where the spec allows.

Closing this in favor of #68

#68 is cleaner, smaller, and more efficient.

authors: jakelishman jlapeyre


text:
[WIP] Spectroscopy and calibrations integration V2

Summary
This is a WIP PR designed to show and discuss how calibrations and experiments could be integrated through the analysis class. An alternative option is shown in #80.
Details and comments
The user would run the calibration experiment as follows:
calibrations = BackendCalibrations(backend)
...
qubit = 5
qubit_freq = calibrations.get_qubit_frequencies()[qubit]
frequences = np.linspace(qubit_freq - 10e6, qubit_freq + 10e6)
spec = QubitSpectroscopy(qubit, frequencies)
spec.set_analysis_options(calibrations=calibrations, force_update=True, calibration_group="my_group")
spec.run(backend)

The pros of this integration are:

The BackendCalibrations class will remain lightweight.

The cons of this integration are:

The analysis class may not be reusable for other types of peak fits unless extra logic will be needed to support other peak-fit experiments such as spectroscopy on 1<->2.
The user needs to write a lot of code.

When you compare the number of lines that the user has to write in #79 and #80, note that there is something "unfair" for #79: #79 contains two lines for calculating frequencies, while frequencies is just None in #80. So in the code snippet above, these two lines should be removed, for a fair comparison.
By the way, In both #79 and #80, if we want to calculate the frequencies from the calibrations, we can do it internally for the user.

Closed by #88

authors: eggerdj yaelbh

repo: Qiskit/qiskit-experiments


text:
SparseLabelOp doesn't validate input when copy=False

Environment

Qiskit Nature version: 40f18174ed8246c9d0fa02981ffda7f127c30a45
Python version: N/A
Operating system: N/A

What is happening?
As you can see, the validation is not performed if copy is False.
https://github.com/Qiskit/qiskit-nature/blob/40f18174ed8246c9d0fa02981ffda7f127c30a45/qiskit_nature/second_q/operators/sparse_label_op.py#L76-L81
How can we reproduce the issue?
N/A
What should happen?
Validation should be performed even if copy=False.
Any suggestions?
No response

This is done by design to completely avoid having to iterate over the data contents when copy=False.
This is also stated in the documentation of both, the SparseLabelOp baseclass here and the FerminionicOp class here.

authors: kevinsung mrossinek

repo: Qiskit/qiskit-nature


text:
CouplingMap.reduce raises with connected subgraphs

I might be missing something important here, in which case, an friendly explanation would suffice to close this issue.
The test test.python.transpiler.test_coupling.CouplingTest.test_failed_reduced_map  attempts to create a coupling map that is not connected and, therefore, CouplingMap.reduce should rice. However, the resulting candidate (reduced_cmap) is [[1, 2], [0, 1]], which is connected.
What am I missing?

but it does not connect in qubit 4

Oh! Thanks.

repo: Qiskit/qiskit-terra


text:
Routing pass does not account for calibrations when assessing gate direction

Environment

Qiskit Terra version: 0.23.2
Python version: 3.10.9
Operating system: Fedora Linux 37

What is happening?
When transpiling a circuit with a custom gate with a calibration, the gate direction pass does not check the circuit calibrations for the gate. It only checks the target and looks at a special-cased gates.
How can we reproduce the issue?
from qiskit import QuantumCircuit, pulse, transpile
from qiskit.circuit.gate import Gate
from qiskit.circuit.library import CXGate
from qiskit.transpiler import Target

# Placeholder schedule because the schedule content does not matter
sched = pulse.ScheduleBlock()
# Custom target with one two qubit gate added so that the target coupling map is connected
target = Target(num_qubits=2)
target.add_instruction(CXGate(), properties={(0, 1): None})
gate = Gate("my_2q_gate", 2, [])

circ = QuantumCircuit(2)
circ.append(gate, (0, 1))
circ.add_calibration(gate, (0, 1), sched)

transpile(circ, target=target, optimization_level=0)

Running this code produces:
Traceback (most recent call last):
  File "/reverse.py", line 16, in <module>
    transpile(circ, target=target, optimization_level=1)
  File "/lib/python3.10/site-packages/qiskit/compiler/transpiler.py", line 381, in transpile
    _serial_transpile_circuit(
  File "/lib/python3.10/site-packages/qiskit/compiler/transpiler.py", line 474, in _serial_transpile_circuit
    result = pass_manager.run(circuit, callback=callback, output_name=output_name)
  File "/lib/python3.10/site-packages/qiskit/transpiler/passmanager.py", line 528, in run
    return super().run(circuits, output_name, callback)
  File "/lib/python3.10/site-packages/qiskit/transpiler/passmanager.py", line 228, in run
    return self._run_single_circuit(circuits, output_name, callback)
  File "/lib/python3.10/site-packages/qiskit/transpiler/passmanager.py", line 283, in _run_single_circuit
    result = running_passmanager.run(circuit, output_name=output_name, callback=callback)
  File "/lib/python3.10/site-packages/qiskit/transpiler/runningpassmanager.py", line 125, in run
    dag = self._do_pass(pass_, dag, passset.options)
  File "/lib/python3.10/site-packages/qiskit/transpiler/runningpassmanager.py", line 173, in _do_pass
    dag = self._run_this_pass(pass_, dag)
  File "/lib/python3.10/site-packages/qiskit/transpiler/runningpassmanager.py", line 202, in _run_this_pass
    new_dag = pass_.run(dag)
  File "/lib/python3.10/site-packages/qiskit/transpiler/passes/utils/gate_direction.py", line 300, in run
    return self._run_target(dag, layout_map)
  File "/lib/python3.10/site-packages/qiskit/transpiler/passes/utils/gate_direction.py", line 270, in _run_target
    raise TranspilerError(
qiskit.transpiler.exceptions.TranspilerError: "Flipping of gate direction is only supported for ['cx', 'cz', 'ecr'] at this time, not 'my_2q_gate'."

What should happen?
Transpilation should run without error. It should leave the circuit unmodified.
Any suggestions?
In gate_direction.py, right before/after the target is checked in _run_target, the circuit's calibrations should be checked for the gate and no exception should be raised if the calibration is there.
Additionally, there may be an additional bug here because the error message is confusingly about flipping the gate direction when the calibration has the right direction present. A "gate not found" type of message would be more appropriate. I wonder if there are other ways to trigger the "flipping the gate" message where the issue is that the gate was not found at all.
This issue was first noticed in the qiskit-dynamics PR for the DynamicsBackend tutorial. In most cases, we are working only with gates already in the Target so this issue does not come up.

Probably we could copy added calibrations to target in the running pass manager, which might be easiest fix. Alternatively, we could update every pass to check calibration -- so far calibration was ignored in many places and we needed to manually update basis gates to respect added calibration.
Target must be copied through serialization so mutating the target per circuit doesn't trigger race condition.
https://github.com/Qiskit/qiskit-terra/blob/2ce129a14279a746d309f00e311b930ddbfe633c/qiskit/transpiler/passmanager.py#L264-L266

I've made #9786 to address the bulk of this issue.  For the error messages:

when running in CouplingMap mode, the pass can't know if an instruction is actually supported or not, so the "flipping of gate direction" thing is the right call - it's up to translation passes to sort that stuff out first
agreed that the transpiler error messages can be confusing; if a gate isn't supported in the flipped direction either, we should say that rather than saying "we don't know how to flip this gate".

I've also made #9787 to address the error-message concerns of this issue.

Yes, that sounds reasonable. PR also looks good to me. Thanks Jake.

authors: jakelishman nkanazawa1989 wshanks


text:
Remove list argument broadcasting and simplify transpile()

Summary
This commit updates the transpile() function to no longer support broadcast of lists of arguments. This functionality was deprecated in the 0.23.0 release. As part of this removal the internals of the transpile() function are simplified so we don't need to handle broadcasting, building preset pass managers, parallel dispatch, etc anymore as this functionality (without broadcasting) already exists through the transpiler API. Besides greatly simplifying the transpile() code and using more aspects of the public APIs that exist in the qiskit.transpiler module, this commit also should fix the overhead we have around parallel execution due to the complexity of supporting broadcasting. This overhead was partially addressed before in #7789 which leveraged shared memory to minimize the serialization time necessary for IPC but by using PassManager.run() internally now all of that overhead is removed as the initial fork will have all the necessary context in each process from the start.
Three seemingly unrelated changes made here were necessary to support our current transpile() API without relying on custom pass manager construction.
~The first is the handling of layout from intlist. The current Layout class is dependent on a circuit because it maps Qubit~
~objects to a physical qubit index. Ideally the layout structure would just map virtual indices to physical indices (see #8060~
~for a similar issue, also it's worth noting this is how the internal NLayout and QPY represent layout), but because of the~
~existing API the construction of a Layout is dependent on a circuit. For the initial_layout argument when running with~
~multiple circuits to avoid the need to broadcasting the layout construction for supported input types that need the circuit~
~to lookup the Qubit objects the SetLayout pass now supports taking in an int list and will construct a Layout object at run~
~time. This effectively defers the Layout object creation for initial_layout to run time so it can be built as a function of the~
~circuit as the API demands.~ (this was handled separately in https://github.com/Qiskit/qiskit-terra/pull/10344)
The second is the FakeBackend class used in some tests was constructing invalid backends in some cases. This wasn't caught in the previous structure because the backends were not actually being parsed by transpile() previously which masked this issue. This commit fixes that issue because PassManagerConfig.from_backend() was failing because of the invalid backend construction.
The third issue is a new _skip_target private argument to generate_preset_pass_manager() and PassManagerConfig. This was necessary to recreate the behavior of transpile() when a user provides a BackendV2 and either basis_gates or coupling_map arguments. In general the internals of the transpiler treat a target as higher priority because it has more complete and restrictive constraints than the basis_gates/coupling map objects. However, for transpile() if a backendv2 is passed in for backend paired with coupling_map and/or basis_gates the expected workflow is that the basis_gates and coupling_map arguments take priority and override the equivalent attributes from the backend. To facilitate this we need to block pulling the target from the backend This should only be needed for a short period of time as when #9256 is implemented we'll just build a single target from the arguments as needed.
Details and comments
Fixes #7741
TODO:

[x] Fix last failing tests (dt handling for scheduling)

The test failure was a flakiness in the CI suite that I've made #10439 to address.

This looks a jillion times better than the old code. Given that this PR claims to close #7741, do you have approximate timings for the type of thing in that issue?

I don't have the timings handy. I think that I tried to run the recreate from the issue when I wrote this a month ago and I was having trouble reproducing the issue locally. I'll give it a try again in a bit and see if I can get real numbers.

authors: jakelishman mtreinish


text:
Qasm3 loader fails on feed-forward circuit

Environment
Python 3.10.12
openqasm3                 0.5.0
qiskit-qasm3-import       0.4.1
pytket-qiskit             0.46.0
qiskit                    0.45.1
qiskit-aer                0.13.1
qiskit-algorithms         0.2.1
qiskit-dynamics           0.4.2
qiskit-experiments        0.5.4
qiskit-ibm-experiment     0.3.5
qiskit-ibm-provider       0.7.2
qiskit-ibm-runtime        0.17.0
qiskit-terra              0.45.1
What is happening?
The exporting and importing of Qasm3 uses different Qasm3 version/convention:
qasmInst=qiskit.qasm3.dumps(qcT)
qc3=qiskit.qasm3.loads( qasmInst)

This is the Qasm3 circuit I want to parse  with qiskit.qasm3.loads(.)
OPENQASM 3;
include "stdgates.inc";
bit[5] c0;
rz(pi/2) $13;
sx $13;
rz(pi/2) $13;
cx $13, $14;
cx $13, $12;
barrier $13, $14, $12, $0;
c0[0] = measure $13;
c0[1] = measure $14;
c0[2] = measure $12;
barrier $13, $14, $12, $0;
if (c0[0] & c0[1] | c0[0] & c0[2] | c0[1] & c0[2]) {
  x $0;
}
c0[3] = measure $0;

The error is:
File "/usr/local/lib/python3.10/dist-packages/qiskit_qasm3_import/exceptions.py", line 20, in raise_from_node
   raise ConversionError(message, node)
qiskit_qasm3_import.exceptions.ConversionError: 14,4: unhandled binary operator '|'

How can we reproduce the issue?
Attached code demonstrates I can save a transpiled circuit with feed-forward operations as Qasm3, but I can't read it back.
https://bitbucket.org/balewski/quantummind/src/master/Qiskit/issues/issue27_qasm3_IO.py
What should happen?
I should get back the original circuit
Any suggestions?
There is also a 2nd issue. When I switch to a simpler  circuit w/o feed-forward logic, like GHZ,
then qiskit.qasm3.loads( .) works, but it forgets the qubit mapping assigned by the transpiler and counts qubits from 0 to N-1. Such a read-in  circuit  would not run on the HW properly.

The extended binary-operation conditions aren't currently supported in the OpenQASM 3 import; we just haven't added that capability to the converter yet, because we're in the process of completely rewriting it to switch to a more performant and easier to extend parser.  This feature is very much on our roadmap, it's just likely a few months away, since it's taking a backseat right now in favour of changing the foundations of OQ3 import.
For the second issue: it's hard to know exactly what you mean without a reproducible example.  If you would like to open a second issue about that, please do.

thanks for the explanation. How should I export a feed-forward circuit constructed in Qiskit to other frameworks, like TKet or cuQuantum?
Until this issue using QASM  allowed the convenient  conversion of circuit.
I have filed  new ticket #11480 with regard of lost qubit IDs

Well, the export still works, it's just our import that doesn't at the moment.  I wasn't aware that tket had any support for the dynamic-circuits features of OpenQASM 3 yet (the circuit-runtime operations on classical data in your condition), so I'm not sure if they'd be able to import OpenQASM 3 themselves, but if they've added it recently, then the import should work.  I'm not very familiar with cuQuantum's offerings, but I believe they have a functional OpenQASM 3 converter to other formats, which I assume contains themselves.

authors: balewski jakelishman

repo: Qiskit/qiskit


text:
Avoid lossing precision when scaling frequencies

Summary
Classes in pulse_instruction.py scale frequency values to GHz by multipliying ParameterExpression with float 1e9. This can lead to numerical errors on some systems due to symengine "rounding" errors. Instead, this scaling can be done multiplying by integer 10**9.
Details and comments
In this unit test
https://github.com/Qiskit/qiskit/blob/235e581b1f76f29add0399989ed47f47a4e98bb8/test/python/qobj/test_pulse_converter.py#L343
The frequency string "f / 1000" gets converted to ParameterExpression(1000000.0*f) after ParameterExpression(f/1000) is multiplied by 1e9. For some unknown reason, when the symbol f is later substituted with the value 3.14, and the RealDouble is converted to float, an error is introduced that can't be fixed by
https://github.com/Qiskit/qiskit/blob/235e581b1f76f29add0399989ed47f47a4e98bb8/qiskit/pulse/utils.py#L71-L74
This fixes: https://github.com/Qiskit/qiskit/issues/12359#issuecomment-2104426621
Upstream issue: https://github.com/symengine/symengine.py/issues/476

Pull Request Test Coverage Report for Build 9052405331
Details

2 of 2 (100.0%)  changed or added relevant lines in 1 file are covered.
5 unchanged lines in 2 files lost coverage.
Overall coverage increased (+0.02%) to 89.65%

Files with Coverage Reduction
New Missed Lines
%

qiskit/transpiler/passes/synthesis/unitary_synthesis.py
2
88.2%

crates/qasm2/src/lex.rs
3
92.62%

Totals

Change from base Build 9037095581:
0.02%

Covered Lines:
62216

Relevant Lines:
69399

💛  - Coveralls

@Mergifyio backport stable/0.46

authors: 1ucian0 coveralls iyanmv


text:
Add Qiskit Pulse Benchmarks

Summary
Partially fixes #794.
Schedule construction benchmarks:

with parameters being the:

[x] number of unique pulses
[x] number of channels
[x] ~number of uses of each pulse~

options:

pulse types:

[x] Parametric
[x] Sample

Building methods:

[x] Append instruction
[x] Insert instruction right to left
[x] Convert the instruction to a schedule and then take the union of all schedules.

Details and comments

I understand the the pulse api is in flux and currently being refactored. But what is concerning me here is that the main value of asv is showing performance over time as we make changes. If/when we need to update the benchmark code to adapt to deprecation removals in the future that will invalidate the old results, not only in spirit (by changing the measurement) but the benchmarks are all actually implicitly versioned with the hash of the code. So changing the code treats the benchmark as a new version that can't be compared to the old one. The question I have is while we probably should update the api here to be the non-deprecated version so we can measure consistent results moving forward, is this new api going to stay around for longer than 3 months? Rebuilding the historical data set every time there is an api change won't scale (back-filling old data takes a very long time)

The core content of the tests will remain relevant over time, I imagine this revision of the pulse API should stay current for > 3 months even as we move to the new builder interface which will sit on top of the IR these tests use.

Ok, sounds good then let's update the API usage in the benchmarks here to avoid the deprecation warnings and then this is good to go from my perspective.

Lint error
************* Module test.benchmarks.pulse.schedule_to_instruction_conversion
test/benchmarks/pulse/schedule_to_instruction_conversion.py:20:0: E0611: No name 'Play' in module 'qiskit.pulse' (no-name-in-module)
************* Module test.benchmarks.pulse.schedule_construction
test/benchmarks/pulse/schedule_construction.py:19:0: E0611: No name 'Play' in module 'qiskit.pulse' (no-name-in-module)

Will be fixed after Qiskit Terra release.

authors: SooluThomas mtreinish taalexander


text:
Develop a public roadmap for a11y improvements

Summary

There is an existing GH project that Isabela, Tony, et. al have put together over time to track issues and work-related to a11y on Jupyterlab.
There is however no canonical roadmap to refer to and to track work and goals against.

Acceptance Criteria

[x] The roadmap is published and shared with the broader community
[ ] Write a blogpost to announce the creation of the roadmap

Tasks to complete

[ ] #33
[x] #34
[x] #35
[ ] #36

@tonyfast  will help Isabela to get this into Jupyter a11y

This is in jupyter/accessibility as #64, but I haven't merged it for reasons I listed on this PR. Many of these come from the fact that I don't know how the docs are (partially) set up on this repo.
From the PR:

[ ] Create a file to listed completed roadmap items (also good so people can double check that changes are working)
[ ] Check if I need to update the docs index (or if this is grouped in fine with the meeting notes)
[ ] Make sure the intro has proper context for this repository. Maybe link to the proposal or other issues on this repo that are relevant.

authors: isabela-pf trallard


text:
Docs not built properly, not showing all pages?

It seems all the pages are not visible on qhub.dev for example the following:

https://github.com/Quansight/qhub/blob/main/docs/source/08_integrations/
https://github.com/Quansight/qhub/blob/main/docs/source/04_how_to_guides/7_qhub_gpu.md

As @costrouc said:

There is a latest  and stable version of our docs. We recently changed the default to stable. Did you visit https://docs.qhub.dev/en/latest/?

repo: Quansight/qhub


text:
Decouple prepare from chat

WIP

I'm ok with this an an initial implementation when my comments are addressed and CI is green.
What I dislike here is that Corpus is a second class citizen. It is more like a dataclass and one can only interact with it through the Chat. However, and admin in the "managed Ragna" use case which we are targeting here, only wants to interact with the Corpus and not the Chat. Meaning, they need to have an assistant present and meet its requirements before they can even prepare a Corpus. In the presence of the demo assistant that is not terribly bad, but it is not sound design. I'm wondering if the source storage should be a component of the Corpus and the assistant a component of the Chat. That way, the Corpus can stand on its own, e.g. can be prepared, without the need to ever create a Chat.

This PR has become quite messy. I'm closing it (to preserve the history, if we need it for whatever reason in the future), and opening a clean version in #269. (Trying to add #269 on top of this made the history completely unreadable.)

authors: nenb pmeier

repo: Quansight/ragna


text:
Difference between GeneralizedLinearRegressor and GeneralizedLinearRegressorCV for finding best alpha

Hi there,
I am currently using GeneralizedLinearRegressorCV for L1-penalized regression for variable selection purpose. Currently, I am leaving everything as default which means there will be 100 alpha being tried on 5-cv folds resulting in 500 times glm repeated.
This process is extremely slow for my dataset and I want to improve it.
I notice GeneralizedLinearRegressor also allows specifying a list of alphas to try. I am wondering if I can use that as an alternative for better run time.
Also, what is your criteria for finding best alpha for GeneralizedLinearRegressor?
Thanks!

Closing as answered. Feel free to reopen!

Thank you!!! Very helpful suggestions.

repo: Quantco/glum


text:
Refresh rules button in proof panel

This button should reload the rules in the toolbar in the proof panel.

Completed in 73da7b8ebbd3eaf193cc76af572c036a5f3bdec5

repo: Quantomatic/zxlive


text:
Add type annotations

Since you added docstrings, how about you add type annotations
https://towardsdatascience.com/type-annotations-in-python-d90990b172dc
https://dev.to/dstarner/using-pythons-type-annotations-4cfe
https://github.com/ninjamar/pyaw/blob/main/pyaw/core.py#L19
https://stackoverflow.com/questions/38727520/how-do-i-add-default-parameters-to-functions-when-using-type-hinting

Seems good! I'll add this in the future!

Thanks

Just... replit doesn't recognize "NoReturn" lol

wdym? noreturn isn't defined. i think you mean None

wdym? noreturn isn't defined. i think you mean None

https://stackoverflow.com/a/48038206
Here.
If I make a function: ```py
def func():
#return is never used...
print("okay...")
It never returns anything in whatever case. So NoReturn should be used according to the answer

wdym? noreturn isn't defined. i think you mean None

https://stackoverflow.com/a/48038206 Here. If I make a function:
def func():
#return is never used...
    print("okay...")

It never returns anything in whatever case. So NoReturn should be used according to the answer

from typing import NoReturn

I https://pypi.org/project/typing/

For package maintainers, it is preferred to use typing;python_version<"3.5"

I don't really wanna do that

In https://pypi.org/project/typing/

For package maintainers, it is preferred to use typing;python_version<"3.5"

I don't really wanna do that

then don't support versions less than 3.5. python 3.5 is oldish

In https://pypi.org/project/typing/

For package maintainers, it is preferred to use typing;python_version<"3.5"

I don't really wanna do that

then don't support versions less than 3.5. python 3.5 is oldish

Oh, so my package will be fine if everyone uses python > 3.6?

In https://pypi.org/project/typing/

For package maintainers, it is preferred to use typing;python_version<"3.5"

I don't really wanna do that

then don't support versions less than 3.5. python 3.5 is oldish

Oh, so my package will be fine if everyone uses python > 3.6? Thanks!

3.6+ will work. i think your code only needs requests which needs 3.6. typing needs 3.5. i personally just choose 3.7 when i don't know because it isn't too old but it isn't super new.

I'd just use None lol

I agree

Ok, so I tried. https://github.com/Quantum-Codes/ScraGet/blob/0d9c0b3436826a7b2732df58cfc2972767872c3d/ScraGet/user.py#L42
In v0.1.7 I added it. But it does nothing...

Ok, so I tried.
https://github.com/Quantum-Codes/ScraGet/blob/0d9c0b3436826a7b2732df58cfc2972767872c3d/ScraGet/user.py#L42
In v0.1.7 I added it. But it does nothing...
I just requested for user 100 like this
user = ScraGet.get_user()
user.updateScratch(100) #in int format

No error was thrown :/ Unlike docstrings, replit also didn't say that str is supposed to be used.

type hints. it doesn't change how to code is run but it provides help to a user using ScraGet .

Ok, so I tried.
https://github.com/Quantum-Codes/ScraGet/blob/0d9c0b3436826a7b2732df58cfc2972767872c3d/ScraGet/user.py#L42
In v0.1.7 I added it. But it does nothing...
I just requested for user 100 like this
user = ScraGet.get_user()
user.updateScratch(100) #in int format

No error was thrown :/ Unlike docstrings, replit also didn't say that str is supposed to be used.

type hints. it doesn't change how to code is run but it provides help to a user using ScraGet.

Can you give an example? I expected a popup like docstr

Can you give an example? I expected a popup like docstr
Ide's like replit show the docstring and the function definition (def updateScratch(self, user: str) -> None:) so when the user writes code, they know what type of argument to pass in. This also helps with documentation generators.
https://stavshamir.github.io/python/the-other-benefit-of-python-type-annotations/

Oh thanks!!! I get it! I saw it in the pop-up too lol!
Well, the union operator doesn't work.
def hello(text : int | str) #unsupported operator | for type and type
  print(text)
.```
Couldn't find info on google

not sure

Maybe an issue with annotations? Anyways I completed this except for that..

Sure

https://stackoverflow.com/questions/33945261/how-to-specify-multiple-return-types-using-type-hints

You mean replit isn't using py 3.10?

replit python doesn't use 3.10 but u can use a nix replit and in the dependencies put python3.10

authors: Quantum-Codes ninjamar

repo: Quantum-Codes/ScraGet


text:
support expectation

expectation semantic can be useful in compiling differentiable programs
function vqe(theta)
    1 => Rx(theta)
    2 => Rx(theta)
    @expect 1:3 <op>
end

the @expect should be semantically equivalent to multiple @measure statements

suggested by @GiggleLiu , a better way to support this is via a primitive expect, which is equivalent to
ob = 0
for _ in 1:nshots
   ob += @measure 1:3 op
end
ob/nshots

in concept, but will be handled specially under different contexts.


text:
aarch64: userspace fails to parse vdso through auxv

test code (note: should be GPL but I forgot where the code was from).
https://paste.sr.ht/blob/2bd3b5a16686b99fe4790d298d90d6a38c90f3a8
on native aarch64 (kernel 5.15)
$ ./test
VDSO @ 0xffff871d8000
__kernel_rt_sigreturn  @ (nil)
__kernel_clock_getres  @ 0xffff871d8760
__kernel_clock_gettime @ 0xffff871d8720
__kernel_gettimeofday  @ 0xffff871d8740

with Quark:
docker run --rm --runtime=quark_d test
VDSO @ 0xa000001000
__kernel_rt_sigreturn  @ (nil)
__kernel_clock_getres  @ (nil)
__kernel_clock_gettime @ (nil)
__kernel_gettimeofday  @ (nil)

(note: I didn't include @chl337 's vdso patch as it has nothing to do with userspace and auxv)

Interesting, I will give it a look later.

I can repro similar issue happened in x86.

On Tue Jul 9, 2024 at 5:01 PM CEST, QuarkSoft wrote:

I can repro similar issue happened in x86.

For x86, are you using arch specify vdso symbol names? i.e. instead of
__kernel_rt_sigreturn
__kernel_gettimeofday
__kernel_clock_gettime
__kernel_clock_getres
use
__vdso_clock_gettime
__vdso_getcpu
__vdso_gettimeofday
__vdso_time

Yes. I did the change.

From: Tianhao Wang @.***>
Sent: Tuesday, July 9, 2024 8:24 AM
To: QuarkContainer/Quark
Cc: Yulin Sun; Assign
Subject: Re: [QuarkContainer/Quark] aarch64: userspace fails to parse vdso through auxv (Issue #1324)
On Tue Jul 9, 2024 at 5:01 PM CEST, QuarkSoft wrote:

I can repro similar issue happened in x86.

For x86, are you using arch specify vdso symbol names? i.e. instead of
__kernel_rt_sigreturn
__kernel_gettimeofday
__kernel_clock_gettime
__kernel_clock_getres
use
__vdso_clock_gettime
__vdso_getcpu
__vdso_gettimeofday
__vdso_time
—
Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_QuarkContainer_Quark_issues_1324-23issuecomment-2D2218012267&d=DwMCaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=DlVd8EA60eTawMXHolu8r3SI1kM4__hdCe61U_easzU&m=p0FBFjvdqF74dcfSeVh3n2MquzGtLIFo5rrQn-GCb4079mlgZu1fWcipZmu9fh2f&s=foEkgOVlQZ6_mznmXimUkLoqUdO4lzVzcISdvH6T1m4&e=, or unsubscribehttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_ATC5KBHBITFY7S7VC4DUMGTZLP6DLAVCNFSM6AAAAABKSOBW5CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJYGAYTEMRWG4&d=DwMCaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=DlVd8EA60eTawMXHolu8r3SI1kM4__hdCe61U_easzU&m=p0FBFjvdqF74dcfSeVh3n2MquzGtLIFo5rrQn-GCb4079mlgZu1fWcipZmu9fh2f&s=M_SWwVBPUty6cxwJvGwRbNWwiFeEl4od69BIFzMvZ4Q&e=.
You are receiving this because you were assigned.Message ID: @.***>

Looks like our vdso binary build has issue. I tried to use https://github.com/enarx/vdso to parse our vdso.so and get wrong result.

for x86, we need to change the test code
vdso_sym("LINUX_2.6", "__vdso_clock_gettime")) instead of vdso_sym("LINUX_2.6.39", "__vdso_clock_gettime"))
Then it will work

repo: QuarkContainer/Quark


text:
Environment setup script fails if SDK is checked out using git

If git protocol is used to checkout the repository the hard-coded remote URL's fail to detect this and environment setup fails. I have this fixed locally with another nested if. Will submit a PR to fix shortly.

Reviewed the way we were using the envsetup.sh, and now ensure that the script can be sourced from anywhere, but will always work relative to qorc-sdk dir, hence removing the need for these checks, making it more robust.
Please open a new issue if you see problems with the latest master.

repo: QuickLogic-Corp/qorc-sdk