which version of python?

Hi Siraj , amazing work you are doing on youtube!
just have a question , I've tried to run your examples in python 3.5 but it does not work , which version of python do you recommend to run your examples ?

I also used python 3.5 on windows Anaconda.
You have to modify original source to work with python 3.5.
Maybe original code works with 2.x.

tried to run project but get error: "ImportError: No module named 'midi'"
All the other import work after running pip for them.
ran C:\ pip install midi but that did not work,  Google came up with nothing.  Downloaded midi from github but have no idea what to do with the folder.  Sorry maybe not best place to ask this question.

I have uploaded a python3 version here - for anyone who needs it

I have uploaded a python3 version here - for anyone who needs it

hi, PandaWhoCodes, have you really run it? it works? i coded the same as Siraj showed on Youtube, and used your Python 3, but some errors happened, can you help check?
when i coded: "
data_fn =  "original_metheny.mid"
abstract_grammars = get_musical_data(data_fn)
X,Y = get_corpus_data(abstract_grammars)"
the error is as below, if you have the codes which worked, can you help please upload? :)
thank you so much
best regards
V
"
AttributeError                            Traceback (most recent call last)
 in
1 data = "midi/" + "original_metheny.mid"
2 abstract_grammars = get_musical_data(data_fn)
----> 3 X,Y = get_corpus_data(abstract_grammars)
~\preprocess.py in get_corpus_data(abstract_grammars)
135
136 ''' Get corpus data from grammatical data '''
--> 137 def get_corpus_data(abstract_grammars):
138     corpus = [x for sublist in abstract_grammars for x in sublist.split(' ')]
139     values = set(corpus)
~\preprocess.py in (.0)
135
136 ''' Get corpus data from grammatical data '''
--> 137 def get_corpus_data(abstract_grammars):
138     corpus = [x for sublist in abstract_grammars for x in sublist.split(' ')]
139     values = set(corpus)
AttributeError: 'collections.OrderedDict' object has no attribute 'split' "


[ci:component:github.com/gardener/machine-controller-manager:v0.48.2->v0.49.1]

Release Notes:
The API generation now works again. Previously the API docs was generated to a location that was ignored by git and other API docs file was maintained.

Removal of the following flags (and corresponding fields in associated structs): 'machine-creation-timeout' 'machine-drain-timeout', 'machine-pv-detach-timeout', 'machine-health-timeout=10m', 'machine-safety-apiserver-statuscheck-timeout', 'machine-safety-apiserver-statuscheck-period', 'machine-safety-orphan-vms-period', 'machine-max-evict-retries', 'node-conditions', 'bootstrap-token-auth-extra-groups', 'delete-migrated-machine-class'. The MCM no longer accepts these flags since these are options handled by the Machine Controller invoked by platform specific provider launchers.

Deletion of 'Driver.GenerateMachineClassForMigration'. Providers need to adapt to this.

An edge case where all the machineSets were scaled down to zero has been dealt with.

Fix a bug in the bootstrap token creation that caused node to not be able to join the cluster due to an expired bootstrap token.

`CrashloopBackoff` machines will turn to `Running` quicker

Machine object won't turn from `Pending`  to `Running` state if `node.gardener.cloud/critical-components-not-ready` taint is there on the corresponding node.

An issue causing nil pointer panic on scaleup of the machinedeployment along with trigger of rolling update, is fixed

CVE categorization for MCM has been added.

Bump `k8s.io/*` dependencies to v1.26.2

Added proposal for hot-update of resources (instance/Nic/Disk)

/close
raised #51


broken link to Py3K.txt

On Release Notes page, the link to Python 3 support is broken:
http://projects.scipy.org/numpy/browser/trunk/doc/Py3K.txt (doesn't work, and is not archived on the web archive).

That part belongs to a very old version release notes (1.5.0 we are now 1.16.3) from pre-Github times. You can use https://github.com/numpy/numpy/blob/master/doc/Py3K.rst.txt

Thank you very much for the link! I needed that link to see the transition to Python 3, it was very interesting for me.


Wiki on SickChill points to wrong sickchill.github.io repo

Hi @miigotu
https://github.com/SickChill/SickChill/wiki/Scene-exceptions-and-numbering
On this Wiki page, you link to the Scene Exceptions

So when you have a show that requires a manual scene exception please submit a Pull Request to the scene exception list at SickChill.GitHub.io. This also helps other users that experience this problem.

But the URL in that "SickChill.GitHub.io" is currently:
https://github.com/SickChill/sick-chill.github.io/blob/master/sb_tvdb_scene_exceptions/exceptions.txt
Which will take you to the wrong page. Need to remove the hyphen in sick-chill.github.io
Replace with
https://github.com/SickChill/sickchill.github.io/blob/master/sb_tvdb_scene_exceptions/exceptions.txt
Didn't have edit rights so I am posting an issue.
Thanks.

Fixed


5.4.0

Pull Request Type

[x] Feature addition
[x] Bugfix
[ ] Documentation update
[ ] Code refactor
[ ] Tests improvement
[ ] CI/CD pipeline enhancement
[ ] Other: [Replace with a description]

Description

Changes

See commits below
Related Issues

Test Scenarios

Python Compatibility

[ ] I've ensured my code works on Python 3.10.x
[x] I've ensured my code works on Python 3.11.x

Checklist

[x] I've run the pre-commit code linter over all edited files
[x] I've tested my changes on supported Python versions
[ ] I've added tests for my code, if applicable
[ ] I've updated / added  documentation, where applicable

Codecov Report
Patch coverage: 25.67% and project coverage change: -13.05 :warning:

Comparison is base (3655951) 60.43% compared to head (af5989d) 47.39%.

:exclamation: Current head af5989d differs from pull request most recent head 513b5eb. Consider uploading reports for the commit 513b5eb to get more accurate results

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
Additional details and impacted files
@@             Coverage Diff             @@
##           stable    #1404       +/-   ##
===========================================
- Coverage   60.43%   47.39%   -13.05%
===========================================
  Files         139      139
  Lines       14587    14638       +51
===========================================
- Hits         8815     6937     -1878
- Misses       5772     7701     +1929

Impacted Files
Coverage Δ

interactions/api/http/http_requests/guild.py
30.63% <0.00%> (-2.90%)
:arrow_down:

interactions/models/discord/channel.py
45.03% <0.00%> (-6.72%)
:arrow_down:

interactions/models/discord/guild.py
53.20% <0.00%> (-7.36%)
:arrow_down:

interactions/models/internal/context.py
38.92% <0.00%> (ø)

interactions/api/http/http_client.py
27.83% <18.75%> (-51.24%)
:arrow_down:

interactions/client/client.py
30.61% <26.66%> (-15.58%)
:arrow_down:

interactions/models/discord/message.py
55.21% <28.57%> (-26.33%)
:arrow_down:

...teractions/models/internal/application_commands.py
31.73% <33.33%> (-1.33%)
:arrow_down:

interactions/client/const.py
87.23% <57.14%> (-4.91%)
:arrow_down:

... and 58 files with indirect coverage changes

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

Check failures are due to a third party - tested locally and working


An error gets thrown when you utilise pageContext on a dialog view

Example: If a wizard is configured and at a done button, a execute script is configured to log values written on a pageContext. When you execute the script, an error of Cannot read properties of undefined (reading 'setFieldValue') get displayed. If you reuse the form on the designer and execute the same script, it logs successfully without throwing an error. This can also be tested just adding a button on a dialog view and configure to execute a script
Console/set the values onUpdate and render the dialog form, it throws the same error

Steps to reproduce the behavior:

Go to 'https://function-adminportal-test.shesha.dev/dynamic/TestModule/pageContext-table'
Click on 'Wizard' button
Enter all the required info until the last step and click on 'Done'
Check the error that shows afterwards
Actual Results: Cannot read properties of undefined (reading 'setFieldValue')

Expected behavior
The value should be set successfully without throwing an error

Related item
#1386


Register organization with existing administrator user data

Summary
On register organization the initial organization admin is created with an existing user in the OP by overtaking his user data.
Details

When creating organizations in SSO mode, the platform administrator only provides a User ID for the initial organization administrator. Other fields are removed from Administrator data section in Operator > Create Organization
User details are retrieved from the oscm-core IdentityService (mocked):
 VOUserDetails IdentityService#loadUserDetailsFromOIDCProvider(String userId, String tenantId)

Acceptance criteria

[ ] No user data input on create oranization page
[ ] Initial organization admin is created successfully with JSON data from TenantService
[ ] email is sent out the configured administrator email address
[ ] User details are validated and user-friendly messages are returned

Additional context
Later

https://github.com/servicecatalog/oscm/pull/362
https://github.com/servicecatalog/oscm-interfaces/pull/18


DISCONTINUED How to proceed anyways? I'd like to continue

This library was discontinued some days ago. Any ideas how to keep it alive? 18 open PRs, 44 Contributors... These numbers send a clear signal!
Since we make heavy usage of this lib in several projects, i'd like to continue this project. I know this code on all three layers (javascript, ObjectiveC, Java) very well and has debugged it quiet often. A switch to another library is currently not planned in our projects.
However, where to start to continue?
§1 First i'd like to ask @johanneslumpe if he is interested to transfer the ownership to another person (e.g. me)? If not, am i allowed to continue this repo under a similar name like "react-native-fs2"?
§2 Second i renamed my fork (which is updated to the very last commit here on master) to "react-native-fs2" as a working title for now to be able to publish it on npm in upcoming days until a solution is in sight (currently it isn't published anyways).
§3 Third, if §1 isn't possible, i'd like to ask authors of the recent, unmerged contributions to submit their PR to the "new" library.
Any ideas? Answers? Questions?

I hope the community can continue to work on this but I think it will depend on the reasons  @johanneslumpe stopped maintaining the project. Is it more about the time it takes ? Or is there something else ?
Thank you @johanneslumpe for your hard work and thank you @itinance for offering to continue the project!

Oh yes, thank you @johanneslumpe for this excellent work! I was totally shocked yesterday that i've forgotten to mention it separately in my opener :)

@itinance @Antonhansel I am not using react-native actively at work and my day job takes a huge chunk of my time, thus leaving no extra time to maintain this library. I haven't been able to keep up with all the changes to react-native and the codebase became stale rather quickly. Long story short: I can transfer ownership to @itinance but it would be nice if original credit would remain in place somehow. How does that sound?

Sounds great @johanneslumpe! Of course i will keep original credits.

@itinance
what's the progress on this? I gotta decide whether to stick with this or not. At this point this lib is in a rather bad condition

Transfer is done. Thank you very much for your trust, @johanneslumpe, and once more for the awesome work on this library!
Over the next days (and weeks for the complicated ones) i will view the open PRs and merge if valid and possible


how to use the releases for msys2?

Hi,
How can I add the releases to my already existing MSYS2 system?
many thanks
cheers
stefan

@HaidStefan Hello!
Did you try install mingw toolchains by pacman?
See README.md's "Build" section:
pacman -Syuu
pacman -S bzip2 base-devel mingw-w64-x86_64-toolchain

These fragments install the base toolchain sets without breaking your environment (maybe :)
Or did you have any troubles?

@kekyo No, this worked successfully, but after that I tried to build the toolchain with build.sh arm-none-eabi and that did not work. I get a lot of errors there.
After that I tried to install a release made from you. I use the MINGW64 Shell with the blue icon. But there I got that error:
$ pacman -U gcc-7.2.0_x86_64-w64-mingw32_arm-none-eabi_2018-01-16.tar.bz2
Lade Pakete...
Fehler: Fehlende Paket-Metadaten in gcc-7.2.0_x86_64-w64-mingw32_arm-none-eabi_2018-01-16.tar.bz2
Fehler: 'gcc-7.2.0_x86_64-w64-mingw32_arm-none-eabi_2018-01-16.tar.bz2': Ungültiges oder beschädigtes Paket

Do you have any Idea?
Should I also post the build error from the build.sh script?

@HaidStefan the answer for two parts:

I'm trying build with latest version for MSYS2 ( http://repo.msys2.org/distrib/x86_64/msys2-x86_64-20180531.exe ), please wait ;)
gcc-7.2.0_x86_64-w64-mingw32_arm-none-eabi_2018-01-16.tar.bz2 is not pacman style package. It's plain tar-gz archive. You can extract and place to some place. It means portable-style.

@HaidStefan sorry later. I tested current MSYS2 environment and just cause problem too.
I'm thinking about MSYS2 default gcc package (current version) may causes unknown problem...
I feel use gcc's multi-staging buid steps (with fixed version) to fix problem, we have to change build.sh scripts.

Thanks a lot for trying, i found an other solution for building micropython now (See: https://github.com/micropython/micropython/issues/3941)


linker: riscv: Disable creating ROM domain by config option.

Patch is useful for RISCV platforms which can not provide ROM memory.
Switching CONFIG_XIP to "n" disables allocating ROM region.
Signed-off-by: Vitaly Gaiduk<EMAIL_ADDRESS>

Codecov Report

Merging #10549 into master will decrease coverage by 0.15%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master   #10549      +/-   ##
==========================================
- Coverage   53.34%   53.18%   -0.16%
==========================================
  Files         210      210
  Lines       25825    25825
  Branches     5686     5686
==========================================
- Hits        13776    13735      -41
- Misses       9734     9781      +47
+ Partials     2315     2309       -6

Impacted Files
Coverage Δ

include/posix/posix_sched.h
0% <0%> (-100%)
:arrow_down:

lib/posix/pthread_barrier.c
0% <0%> (-100%)
:arrow_down:

lib/posix/pthread_cond.c
62.5% <0%> (-20.84%)
:arrow_down:

lib/posix/pthread.c
68.03% <0%> (-12.33%)
:arrow_down:

lib/posix/pthread_mutex.c
76.38% <0%> (-1.39%)
:arrow_down:

lib/posix/pthread_sched.c
62.5% <0%> (+20.83%)
:arrow_up:

Continue to review full report at Codecov.

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

Thanks for the PR @vitaly-gaiduk! Just want to make sure I'm clear on one thing, though. You mentioned that RISC-V doesn't support read-only memory, do you mean that Zephyr doesn't make use of RISC-V's read-only memory support? Zephyr doesn't currently use this, but RISC-V can support read-only memory through Physical Memory Protection (PMP) in the RISC-V Privileged Architecture Specification.

@nategraff-sifive
My practical case were i hit this issue is :
I have a FPGA softcore which has a RAM which contain the instruction + data  => XPI off. This RAM is loaded by the FPGA bitstream itself, so there is no rom region,
In this system the physical memory mapping is  : RAM -> 0x80000000 to 0x8000FFFF
Currently my workaround was to set (as zephyr config) a fake rom region at 0x80000000 with a length of 16 bytes, and directly after it come the ram region at 0x80000010. But that's dirty ^^

Thank you @nategraff-sifive for your note! My solution is useful in two cases I mean:

You have not ROM in your core design (and you don't use PMP).
In the development process It's cose to map ROM behind RAM data for debug. Also you may save the bootrom resource this way cause you don't rewrite ROM to it.

@Dolu1990 @vitaly-gaiduk Those use-cases make a lot of sense, thanks for clarifying!

@nategraff-sifive I have done fix, could you review ? :)

@vitaly-gaiduk This looks good to me, but I unfortunately don't have write access, I'm just a collaborator, so we need a core contributor to review this.

@nashif Could you write me core contributor name? Should I write to code owners or smb else to review this pull?

@nashif I approve the changes, but I'm not authorized to merge.

@nashif I approve the changes, but I'm not authorized to merge.

You should at least approve it by using the approve button ;-)


memo to wmemo for wonderland troubleshoot. Have avax , contract implemented, still doesn't show my "wmemo", please help me. Had time to memo converted but some suggested to do wmemo instead for tax purposes, pressed it, dont work. pls help

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like. Include clear acceptance criteria.
A clear and concise description of what you want to happen using the Given, When, Then framework - "Given, I am in the Olympus app, When I want to stake, Then I should have the ability to stake through my wallet provider." You can include multiple examples of acceptance criteria.
Is any UX Design input needed?
If yes, give a description of what is required.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Tech Notes/Testing Notes
Include any relevant information related to tech capabilities or testing needed to implement this feature.
Out of scope
Include any necessary out of scope information to make clear what this feature is not delivering.
Additional context
Add any other context or screenshots about the feature request here.

Hello @touchheart1 Kindly chat with one of our dev on live chat to get a quicker response click here


Configure gmail smtp to send email

The TodoTemplate is configured to send emails using a fake mail server. It is better to configure a real SMTP server. Gmail is free and easy to use.

@ysmoradi
should this issue be triaged?

Why do we have a PR for this issue which is not triaged yet?
@msynk @ysmoradi @mohabbati

As we discussed in our internal channel, we've to allow configuring smtp server's username/password.
Such an issue that makes this happen should triaged ASAP
We can continue this discussion in our internal meeting
Meanwhile the Issue / PR is not related to Gmail at all
@msynk @mohabbati @maryamhdr

since this issue is obsolete, I'm closing it.


Load pretrained model YOLO_small.ckpt  error

When i restored the YOLO_small.ckpt，there was an error:         "Data loss: not an sstable (bad magic number): perhaps your file is in a different file format and you need to use a different restore operator?"
As we know, tensorflow saves model into four files  including checkpoint, index, data and meta, why this checkpoint only has one file, how can i use it?
Thanks for anyone's help.
By the way, when i trained the model in Pascal VOC 2007  without using the pre-trained model, the loss couldn't decrease and changed between 8 and 12.

You should load the pretrained model in V1, please pay attention to the parameters in save(restorer) operation.

hello, another problem, why you have  this layer 'net = slim.fully_connected(net, 512, scope='fc_33')'
a  FC_layer with 512 output_size   it doesn't apear in the paper


Tests fail on Arm

The test suite fails to run on Arm, specifically a raspberry pi, the failures seem rooted in dashmap. When looking at dashmap it seems riker is using an unreleased version of dashmap which has a lot of code churn. Would it make sense to use the stable dashmap until its released possibly?

Just an update on this, the author of dashmap is effectively closing issues immediately on the unreleased version, which I think is telling that they were not ready for this to really be depended on yet


🚀 Feature: Allow async function in describe

In addition to --delay flag. Describe should also able to use done/promise flow to do async before using it
Such as, I want to do dynamic test for all user in database. I need to query user in database with async first, then each of user will emit their own test case in block
describe(function(done){
   query(function(users){
       users.forEach(function(user,i){
             it("Test : " + user.ID,function() {
                  if(!user.ID)
                        throw new Error("user " + i + has no ID);
             });
       });

       done();
   });
});

ps. This thread is copied from #2085 . It was ruin by a someone and was locked. And I need to make it reopen to ask for something
@boneskull I know that it would not be implemented immediately. That's what software development process is
What I would like you to do is consider you will never do it. Or will be doing it in which version. So I would consider move to another tool or make it by myself
ps2 @boneskull if you just not hurry lock that thread I would not need to waste another thread like this

@Thaina I locked it because you were becoming belligerent.   It's difficult to infer tone in written comments, but I'm sensing some of the same here.  Please be polite when posting in issues.
We may be able to implement this in the next major (nothing imminent).  I'm not sure it's wise to merge any feature PRs at this point, however.  Feel free to implement it yourself in a fork, or use another tool.

I've been using describe->before(done) to accomplish this, and it seems to be working just fine.

It is working, but it's inconvenient. describe('', async () => {} ) we definitely be a step forward!

Related: #2975

:+1:

Enable this eslint-plugin-mocharule.
We backed out the deprecation warning in #3744 due to problems dealing with CoffeeScript's implicit return, but describe's function is just a namespace -- don't add async to it!

I'm not too keen on this model.  And by 'not too keen' I mean I'd be deeply upset and disappointed in Mocha if this was added.
Before, After, and It can all deal with async code, promises, and callbacks.  The only use I can see for adding 'done' to suites is to run them in parallel.
Speaking as someone who spends a good bit of effort helping people figure out their broken tests, running two tests suites in parallel at the same time is a recipe for red test runs that aren't reproducible on another machine (ie, build server versus dev machine).  Async code is a big source of this due to bugs that let two tests run as once.  But they're just that.  Bugs.   Adding it as a feature is a crazy footgun.
The safe way to parallelize test suites is to run them in separate processes.   Then the only concurrency problems you have to deal with is in a moderate number of end-to-end tests, and a small minority of smoke/integration tests.

FWIW the use case here is not to run tests in parallel, but rather to dynamically generate tests from data which is retrieved via asynchronous I/O operations.  --delay gets us part of the way there, but it is not convenient for certain use cases.

Is the problem with the lack of async or the lack of ability to register new tests late?

Registering tests late works perfectly in the "before" with a dummy "it" test. So that use case is fully supported (admittedly a bit hacky).

@simlu is there any case that you could post an example of registering tests late?

@betweenbrain Sure thing!
This uses node-tdd because the test setup and tests make external requests. However it should work similarly with vanilla mocha.
const expect = require('chai').expect;
const { describe } = require('node-tdd');

const loadTestConfigsAsync = async () => { /* ... */ };
const runTest = async (config) => { /* ... */ };

describe('Load Configuration Wrapper', { useNock: true, nockFolder: '$FILENAME__cassettes__setup' }, () => {
  beforeEach(async () => {
    const configs = await loadTestConfigsAsync();

    describe('Generate Tests Wrapper', { useNock: true, timeout: 180000 }, () => {
      configs.forEach((config) => {
        // eslint-disable-next-line mocha/no-nested-tests
        it(`Testing ${config.name}`, async () => {
          const result = await runTest(config);
          expect(result).to.equal('success');
        });
      });
    });
  });

  it('Fetching Configuration', () => {});
});

Thank you @simlu!

My very humble 2c... I just spent 1.5h on this (because I am an idiot). I agree that describe() can be seen as a "namespace" and therefore shouldn't wait for promise resolution. I tried to fix this myself, but Mocha's code is quite complex, and I wouldn't be 100% about the repercussions of such a chance.
What I can say is... maybe let's make it clearer in the documentation, or even (if technically possible) add a big fat warning in case describe() returns a promise, so that others don't get caught in this :D
Again my humble 2c. Sorry for the bother and for the noise.

See #3243

This is strange... I have a describe() function defined with async, and doing async stuff, and things just don't work. And yet that was merged in 2018... surely it would have made it to release? (Confused)

Regression perhaps?  What version are you using?

Alright so try this...
const chai = require('chai')
const expect = chai.expect

const asyncFunction = async () => { console.log('an async function') }

describe(`Initialising tiny memory data server`, async function () {

  before(async function () {
    console.log('****************BEFORE******************')
  })

  describe(`All tests starting`, async function () {

    // COMMENT OUT THE NEXT LINE, AND YOU WILL SEE THE before() FUNCTION MAGICALLY WORK
    // await asyncFunction()

    it('One', async function () {
      expect(null).to.be.null
    })

    it('Two', async function () {
      expect(null).to.be.null
    })
  })

})

By trying this code, you will see that if you comment out the line after // COMMENT OUT THE [...] line, the before() function will actually tun.
Please note that there are no warnings in any case.
Do you want me to open a new bug report for this?

Marking a function as async doesn't make it asynchronous. That's a fundamental problem with Javascript that makes async/await have a smaller feature set than green threads (where you can at least do cooperative multitasking by yielding in the middle of a long operation).
Everything before the first await call always runs sequentially. The context only yields at the first await.

Honest hat on, I am having difficulties understand this part:.

Everything before the first await call always runs sequentially. The context only yields at the first await. So all of your 'it' functions are called before describe() returns, meaning that they are all listed in the suite prior to the runner starting.

async function math(x, y) {
    let result = x + y;
    console.log(result);
    return result;
}

async function main() {
    let answer = math(4, 6);
    console.log("....calculating");
    let result = await answer;
    console.log("Answer was", result);
}

If you run this, the output will be:
10 ....calculating Answer was 10
Anything in the async function that happens before the first await, happens before the promise is returned.  If you have nothing async in your function, it will run all the way to the end before the caller runs another instruction.
So, an async describe() that contains no async logic will succeed in defining all of the tests. An async describe that defines some tests and then does an async operation, will only register the tests prior to that block of code. One that starts with an async function will register no tests at all.

I realise that. But isn't this solved by having the caller of the
describe function, within Mocha, to await for the describe function, so
that the describe() function will register all of the test before Mocha
progresses to run them? I apologise for the noise...
On Tue, 1 Feb 2022 at 11:38, Jason Marshall @.***>
wrote:

async function math(x, y) {
let result = x + y;
console.log(result);
return result;
}
async function main() {
let answer = math(4, 6);
console.log("....calculating");
let result = await answer;
console.log("Answer was", result);
}
If you run this, the output will be:
10 ....calculating Answer was 10
Anything in the async function that happens before the first await,
happens before the promise is returned. If you have nothing async in your
function, it will run all the way to the end before the caller runs another
instruction.
So, an async describe() that contains no async logic will succeed in
defining all of the tests. An async describe that defines some tests and
then does an async operation, will only register the tests prior to that
block of code. One that starts with an async function will register no
tests at all.
—
Reply to this email directly, view it on GitHub
https://github.com/mochajs/mocha/issues/2116#issuecomment-1026448169,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAQHWXXSGQVS4MCR6DKIJFTUY5ISFANCNFSM4B3TBRCA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you commented.Message ID:
@.***>

See also: #1431 & #3106 & #3593 & #4588.


Integrated animations for weather icons and results

Do we have to add animation to weather icons and result?
I would like to solve it.

all the best @Kajal13081

can you please tell me what exactly we have to do in this issue??

@namra4122 you can add animation on weather icons and result according to your creativity good luck :)

@Jatin887 ok so can you please assign me??

I have made PR for this issue. Could someone check it? @Jatin887


Training on Custom Dataset

Thank you for this PWC_Net implemented in Tensorflow.
Kindly i would like your help on the following issues;
1.What are the procedure for training custom data set, (Do i need only images without optical flow ground truth or images and its correspondingoptical flow ground truth ).
2.On testing, i get the images of opticaflow which are on the pdf, how can i get only the optical (last optical image and save it for further work).
3The testing consider only two frame, is there a suggestion/means to work on more than one frame extracted from video (arranged in ascending order ) and generate its corresponding opticalflow for all n-1 frames.

Welcome!

training dataset requires paired images and ground truth optical flow.
using the function vis_flow in flow_utils.py, you can obtain RGB-converted optical flow, then plt.savefig() (which is a function of matplotlib.pyplot) can save the converted optical flow as an image (eg. pdf, png, ...).
maybe yes, prepare a list of paired images, and running optical flow estimation (same as test.py) for each pair of the prepared list will satisfy your requirements.


feat(rspack_plugin_copy): Set source_filename and copied flag when copying an asset

Summary
This PR adds a new copied flag to the AssetInfo structure in Rspack and sets the source_filename attr when copying a file.
Key changes include:

Added copied field to JsAssetInfo, AssetInfo, and StatsAssetInfo structures.
Updated the CopyPlugin to set the copied flag and sourceFilename when copying assets.
Modified the stats printer to display the "copied" flag in asset information.
Updated TypeScript definitions and API documentation to reflect these changes.

This aligns Rspack more closely with webpack's behavior regarding copied assets.
Checklist

[x] Tests updated (or not required).

Updated CopyPlugin.test.js to include assertions for the new copied flag.

[x] Documentation updated (or not required).

Updated api.md to include the new copied field in KnownAssetInfo.

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


Swift will important Objc id as Any

SE-0116 paves the way for making it easier to interact with objc APIs in swift, but importing id as Any the main API we use that is effected by this is JSONSeralisation which forced our types to be NS* rather than the swift value type. With this change we should be able to convert our APIs from taking AnyObject to Any without the need to make the manual bridging using as.

A;; APIs should now take Any rather than AnyObject

Work was done in #115


Contribution list / checklist

Hey!
I came across this project and was wondering if you guys could build a checklist of TODOs etc for potential contributors.
Something like

[ ] Benchmarks
[ ] CNNs
[ ] POMDPs
..etc?

I have added a contributions page.  I need to learn how to make it flow better in the markdown language, but it is a start.  Suggestions on the best way to acknowledge that someone is actively working on a particular addition would be welcome.  I will leave this issue open so comments can be added until I get the contributions page formatted better.

I formatted the contribution page better.  I will close this issue now, but comments on how to improve the process will always be welcome.  I put my email address on the contribution page if needed.  Thanks for the suggestion.


Welcome messages not getting deleted

Seems like the welcome message deletion isn't working properly.
Probably makes sense to keep an array of welcome message IDs, in case a deletion doesn't work for whatever reason. Then every new member joining would trigger the deletion of all IDs in the array.

it should save the Welcome Message id's , delete them and check again if they are still exitst. If they are , for whatever reason, still exits, delete them again otherwise delete the id from the array

Yes, at the moment it only saves 1 ID, deleting it before posting the new message.
I'm not sure what happened that it's suddenly not working correctly any more.
It's been working flawlessy until a few weeks ago :confused:
Maybe Telegram doing API updates or something...

@Hitmare I'll take care of this issue :+1:

Has been fixed in develop branch.


Runaway CPU usage on high memory servers (>1B items)

After upgrading from memcached 1.5.6 on Ubuntu 18.04 to memcached 1.5.22 on Ubuntu 20.04, I started having issues where everything would be fine during initial cache fill, but then CPU usage would go crazy around 750GB of cached data. After a bunch of debugging, I finally figured out the tipping point was actually when switching from hashpower=30 to 31. Armed with information, I looked through the changes from 1.5.6 to 1.5.22, and discovered that dae3191 introduced an integer overflow which breaks the hash table.
With dae3191 reverted, performance is restored to normal, even with hashpower=32 and greater than two billion items.
To Reproduce

Run memcached >= 1.5.14 with -o hashpower=30
Generate a moderate amount of load with memslap (or similar)
Everything is fine
Rerun memcached -o hashpower=31
Generate a moderate amount of load with memslap
memcached will consume all available CPU

System Information

OS/Distro: Ubuntu Server
Version of OS/distro: 20.04
Version of memcached: 1.5.22
Hardware detail: AMD 7702P, 1TB DDR4

Thanks for the report and the fix/test! Golden! :)
Note mostly for me but maybe also for you: I thought I had capped the hashpower value to not go over 30 or 31 (and also tested it at 31), so I need to dig into why that failed. It's been long enough that I forgot what I did. There were other things that may start to fail or act odd when the hash table gets near or above 2^32 so I wanted to simply avoid it for a while. One major issue is surprise at runtime, as it allocates a new hashtable, and migrates before dropping the old one: that ends up being a lot of memory at the high end and causes people to OOM. That has been giving people a really bad time in production.

Yeah, while debugging I realized how expensive increasing the hashpower could be. All my servers now start with hashpower preset to its expected max value to prevent runtime expansion.
For what it's worth, I was running at hashpower 31 on memcached 1.5.6 for many years without issue, and haven't had any problems on my patched 1.5.22 build. If there are more bugs lurking out there, they must be subtle. :)
Memcache is an absolute workhorse. Thanks for being the bedrock we build on. ❤

Great, thanks :)
I see the bug now, but haven't been able to reproduce the CPU runaway locally. A backtrace may have helped here. There's only one place where hashsize should actually cast through to a 64bit number.

Note, mixed up that the problem actually happens at hashpower=32 not 31. Updated the original post to reflect that. More details in the PR.

released in 1.6.14


feat: handle invalid topic for token

Description
Removes 5XX for invalid token with APNS, this could also be a tenant configuration issue however it is returned as a bad device issue due to the fact we can't check if the tenant has a wrongly configured topic on APNS
How Has This Been Tested?
N/a, should notice 5XX dissapear after deploy
Due Diligence

[ ] Breaking change
[ ] Requires a documentation update
[ ] Requires a e2e/integration test update

could also be a tenant configuration issue

Could? Sounds like this is the reason. How would this happen, client bug, perhaps only from old clients?
I think this at least deserves a different error than BadDeviceToken for visibility. Perhaps simply DeviceTokenNotForTopic?

It can be caused by two cases:

The tenant config is correct and the token given is for the wrong topic
The tenant is configured with the wrong topic and the token is the correct topic

The only way to tell with certainty is to test a set of the tokens and figure out if they all error or just this one but that isn't really feasible here so I think the best option is just presume the client is wrong.


Feature request: Ubuntu Xenial LTS support

~# wget -qO ee rt.cx/ee && sudo bash ee
Executing apt-get update, please wait...
EasyEngine (ee) only support Ubuntu 12.04/14.04 and Debian 7.x/8.x
~# lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu Xenial Xerus (development branch)
Release:	16.04
Codename:	xenial
So for testing purposes, I changed line 66 in /root/ee to
lsb_release -d | egrep -e "12.04|14.04|Xenial|wheezy|jessie" &>> /dev/null
and issued a "sudo bash ee" again. Initial EE installation proceeded without errors...
Will be testing further :)

Nah, no dice...
~# ee stack install --nginx Adding repository for NGINX, please wait... type object 'EEVariables' has no attribute 'ee_nginx_repo'
(note that nginx and php7 are already in the default repos for xenial)

I am also interessted i this Information +1 :)

referring #708


3D Observations?

New feature type
New regridding method or regridding enhancement
What is this new feature?
I tried plotting some 3D ERA I observations
File is : /glade/p/cgd/amp/andrew/adf/obs/ERAI_all_climo.nc
And got some error related to 'hyam' (i.e., vertical levels).
So what needs to be done to enable 3D observations? They are on pressure levels in mb. (but that might need to be defined, fine to do that). maybe it just needs a unit or name for the level dimension?
Assistance required?
Yes, I am requesting a new feature but won't have time to develop it
Extra info
No response

Superseded by #136  It can be handled as part of that issue I believe now.


KAFKA-2070: Replace Offset{Request,Response} with o.a.k.c requests eq…

…uivalent

@granthenke One minor comment, but this looks good as long as it covers the intended scope. Just want to make sure we're on the same page -- the goal we've settled on for the parent JIRA KAFKA-1927 is just to get the old requests out of KafkaApis, right? I quick search and it looks like there are quite a few uses of OffsetRequest left, but they are all in the old consumer, tools, or tests.

@ewencp All the remaining usages are while interacting with the simple consumer or testing serialization of the old message format. The goal of these patches is to remove the usage from server side code and then once that is done KAFKA-2075 is the final clean up.
There is no task there to remove the old Scala producer/consumers, but I think that is the task that would clean a lot of this up too. I can add that to the list.

@ewencp I have created KAFKA-2982, which I can do now, to track marking all the old clients/classes as deprecated, and KAFKA-2983 to track removing the old clients and the code tied to their usage.

@granthenke LGTM. As Ismael noted in KAFKA-2982, you might need to split that JIRA between old producer and old consumer given the significantly different schedules. Sadly, I think that means we'll have to hold on to this older code for quite a bit longer.

@ewencp Thanks for the review! I will continue to follow up on the client/cleanup jiras. This and many of my other PRs are more or less intertwined. So when one gets in, I will rebase the others.


The "local-variable-hides-global-variable" rule could probably be relaxed for external function declarations

LGTM had shown https://lgtm.com/projects/g/systemd/systemd/snapshot/7439844465c01f80a0e47cef9db10a5062da1e9e/files/src/basic/process-util.c?#V1156 until it was fixed yesterday in https://github.com/systemd/systemd/pull/9601. As far as I can tell, __dso_handle there didn't hide anything and any name, or no name at all, could have equally been used with no harm. It would probably be helpful if the rule skipped variables in external function declarations.

Yes, thanks for pointing this out.  The rule should only look at the name given to a parameter in a function definition, not a declaration such as this one.  A fix is ready, though I think it's just missed the next deployment so it will take a couple of weeks to reach you.

The rule seems to have been fixed. Thank you. I'm closing the issue.


Changes more development mostly. No ALLOWED_HOSTS to get default, wag…

…tail with static built.

Coverage decreased (-0.04%) to 66.044% when pulling 8ec35a764f1c2618be8ac5d4711370ba80071191 on upgrade/wagtail1.7 into 77841ee7afa3ef8494219e8285594c840e5ece54 on master.


Fix checkstyle

See https://github.com/checkstyle/checkstyle/issues/7417. Probably going to need to update checkstyle again when they realize they forgot to change "scope" to "accessModifiers" in other checks, like "MissingJavadocMethod", but this fixes it for now.


[BiliBiliChannel] Inconsistency and failure to download whole channels videos

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

[X] I understand that I will be blocked if I remove or skip any mandatory* field

Checklist

[X] I'm reporting a bug unrelated to a specific site
[X] I've verified that I'm running yt-dlp version 2022.09.01 (update instructions) or later (specify commit)
[X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
[X] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[X] I've searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue

Provide a description that is worded well enough to be understood
Does not get the information from all the channel pages. The BiliBili channel is https://space.bilibili.com/6444277/video.
It used to work, I used yt-dlp to dump the data from each page easily but now it does not. I would assume something has changed on BiliBili's side which has broken [BiliBiliChannel] yt-dlp.
Edit: The channel has 7308 videos, yet yt-dlp reports none.
Provide verbose output that clearly demonstrates the problem

[X] Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
[X] Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output
[debug] Command-line config: ['-vU', 'https://space.bilibili.com/6444277/video']
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version 2022.09.01 [5d7c7d6] (win32_exe)
[debug] Python 3.8.10 (CPython 64bit) - Windows-10-10.0.22000-SP0
[debug] Checking exe version: ffmpeg -bsfs
[debug] Checking exe version: ffprobe -bsfs
[debug] exe versions: ffmpeg 2022-06-30-git-03b2ed9a50-full_build-www.gyan.dev (setts), ffprobe 2022-06-30-git-03b2ed9a50-full_build-www.gyan.dev
[debug] Optional libraries: Cryptodome-3.15.0, brotli-1.0.9, certifi-2022.06.15, mutagen-1.45.1, sqlite3-2.6.0, websockets-10.3
[debug] Proxy map: {}
[debug] Loaded 1670 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version: 2022.09.01, Current version: 2022.09.01
yt-dlp is up to date (2022.09.01)
[debug] [BilibiliChannel] Extracting URL: https://space.bilibili.com/6444277/video
[download] Downloading playlist: 6444277
[BilibiliChannel] 6444277: Downloading page 1
[BilibiliChannel] Playlist 6444277: Downloading 0 videos of 0
[download] Finished downloading playlist: 6444277

https://github.com/yt-dlp/yt-dlp/pull/4468 has fixed this, it is in master now, but not released.

I have tried it on master, but get
[debug] Command-line config: ['-vU', 'https://space.bilibili.com/6444277/video']
[debug] Encodings: locale cp936, fs utf-8, pref cp936, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version 2<IP_ADDRESS>903 [0500ee3] (win32_exe)
[debug] Python 3.8.10 (CPython 64bit) - Windows-10-10.0.19044-SP0
[debug] Checking exe version: ffmpeg -bsfs
[debug] Checking exe version: ffprobe -bsfs
[debug] exe versions: ffmpeg N-108089-gc92edd969a-20220910 (setts), ffprobe N-108089-gc92edd969a-20220910, phantomjs 2.1.1
[debug] Optional libraries: Cryptodome-3.15.0, brotli-1.0.9, certifi-2022.09.24, mutagen-1.45.1, sqlite3-2.6.0, websockets-10.3
[debug] Proxy map: {}
[debug] Loaded 1674 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version: 2022.09.01, Current version: 2<IP_ADDRESS>903
yt-dlp is up to date (2<IP_ADDRESS>903)
[debug] [BilibiliSpaceVideo] Extracting URL: https://space.bilibili.com/6444277/video
[BilibiliSpaceVideo] 6444277: Downloading page 1
ERROR: [BilibiliSpaceVideo] 6444277: Unable to download JSON metadata: HTTP Error 412: Precondition Failed (caused by <HTTPError 412: 'Precondition Failed'>); please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
  File "yt_dlp\extractor\common.py", line 672, in extract
  File "yt_dlp\extractor\bilibili.py", line 555, in _real_extract
  File "yt_dlp\extractor\bilibili.py", line 511, in _extract_playlist
  File "yt_dlp\extractor\bilibili.py", line 538, in fetch_page
  File "yt_dlp\extractor\common.py", line 1032, in download_content
  File "yt_dlp\extractor\common.py", line 996, in download_handle
  File "yt_dlp\extractor\common.py", line 866, in _download_webpage_handle
  File "yt_dlp\extractor\common.py", line 823, in _request_webpage

  File "yt_dlp\extractor\common.py", line 805, in _request_webpage
  File "yt_dlp\YoutubeDL.py", line 3680, in urlopen
  File "urllib\request.py", line 531, in open
  File "urllib\request.py", line 640, in http_response
  File "urllib\request.py", line 569, in error
  File "urllib\request.py", line 502, in _call_chain
  File "urllib\request.py", line 649, in http_error_default
urllib.error.HTTPError: HTTP Error 412: Precondition Failed

I'm working on it

It seems will be blocked when request list api too fast, it is hard to download huge playlist like this case.
I dont know how to solve this problem elegantly.
I think should add a message for this first:
diff --git a/yt_dlp/extractor/bilibili.py b/yt_dlp/extractor/bilibili.py
--- a/yt_dlp/extractor/bilibili.py	(revision 0500ee3d81c5d31500d7093512deee2b0ff8aacd)
+++ b/yt_dlp/extractor/bilibili.py	(revision 41cbfede5d78d9145232913abc482bbc200c58cc)
@@ -7,6 +7,7 @@

 from .common import InfoExtractor, SearchInfoExtractor
 from ..compat import (
+    compat_HTTPError,
     compat_parse_qs,
     compat_urlparse,
     compat_urllib_parse_urlparse
@@ -535,10 +536,16 @@
                            'To download audios, add a "/audio" to the URL')

         def fetch_page(page_idx):
-            return self._download_json(
-                'https://api.bilibili.com/x/space/arc/search', playlist_id,
-                note=f'Downloading page {page_idx}',
-                query={'mid': playlist_id, 'pn': page_idx, 'jsonp': 'jsonp'})['data']
+            try:
+                data = self._download_json('https://api.bilibili.com/x/space/arc/search', playlist_id,
+                                            note=f'Downloading page {page_idx}',
+                                            query={'mid': playlist_id, 'pn': page_idx,
+                                                   'jsonp': 'jsonp'})['data']
+            except ExtractorError as e:
+                if isinstance(e.cause, compat_HTTPError) and e.cause.code == 412:
+                    raise ExtractorError('Request is blocked by server, please add cookies, wait and try later.', expected=True)
+                raise
+            return data

         def get_metadata(page_data):
             page_size = page_data['page']['ps']

@kruumy
I create a PR let you can control page fetching, https://github.com/yt-dlp/yt-dlp/pull/5043
build of this can be found at https://github.com/lockmatrix/yt-dlp/releases/tag/2<IP_ADDRESS>645
but it still can not solve this issue, downloading progress can still be blocked.

Appreciate your work @lockmatrix
I was playing around with the sleep time but even with something like 10 sec it still blocks the request after a few pages. I got no clue on a permanent workaround sadly but I do appreciate your help and contribution a ton!

Appreciate your work @lockmatrix
I was playing around with the sleep time but even with something like 10 sec it still blocks the request after a few pages. I got no clue on a permanent workaround sadly but I do appreciate your help and contribution a ton!

you need to login, use cookie from browers. It seems can fetch all pages, but still blocked when download

Now, I dont know how to auto let site return the cookie for new user. I follow the network traffic, but can not find where the site gen the cookie

I tested it now, it works (select 10 pages), if you are block, it seems you should wait a few hours.
yt-dlp.exe -vU --cookies-from-browser chrome  --extractor-args "BilibiliSpaceVideo:request_page_sleep_time=2;start_page=1;end_page=10" https://space.bilibili.com/6444277/video

Seems to work well enough, not a complete fix but for what I am using it for (dumping all the pages and downloading certain videos individually based on some other logic from the dump), is a perfect workaround for now

I updated the PR, now can use yt-dlp core feature to control download:
yt-dlp -vU https://space.bilibili.com/3985676/video --cookies-from-browser chrome --sleep-requests 2 --simulate --playlist-items 100:110

Note: playlist-items is based on video index, not page


add dependencies between services(server, website, and so on)

Hi.  Was wondering if Tianji supports dependancies?   Like I'd like to be able to say these websites are running on server X.  If the server is down, then don't send me an alert for every site.    Or some other service depends on the internet, so if my router is down, then don't bother alerting me about every single thing that needs internet..


TagBot trigger issue

This issue is used to trigger TagBot; feel free to unsubscribe.
If you haven't already, you should update your TagBot.yml to include issue comment triggers.
Please see this post on Discourse for instructions and more details.
If you'd like for me to do this for you, comment TagBot fix on this issue.
I'll open a PR within a few hours, please be patient!

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/47853

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/48245

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/48250

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/48274

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/48328

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/48356

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/48565

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/48751

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/48851


[Task]: Add Zone & Section to Twilio plugin form

Design: https://www.figma.com/design/8L9BXMzNTKboGWlHpdXyYP/Appsmith-IDE?node-id=240-16068&node-type=FRAME&t=a02mY5k4Qga02oV8-0
Checklist

[ ]  Add SECTION_V2, SINGLE_COLUMN_ZONE, and DOUBLE_COLUMN_ZONE as per design.
[ ]  Check and remove custom styles if it defies new section and zone component styles.
[ ]  Ensure the identifiers are added for sections and zones as it is important for conditional statements to work.
[ ]  When removing an old section, ensure that its conditions are accurately transferred and incorporated into the new zones and sections.
[ ]  All fields/form controls should be inside either a SINGLE_COLUMN_ZONE or DOUBLE_COLUMN_ZONE .
[ ]  Verify the integrity of the migration by comparing it with the production before committing the code.

Hey there! I saw this issue and it looks like something I’d really enjoy working on. I’m interested in contributing and would love to help implement the changes. Could you assign this issue to me so I can get started?


Once PKGBUILD is added to this repository, when would a new package be available for installation?

Around a month ago, I'd added a new package bc in this repository. It's yet to be available for installation using pacman.
Is there something more that I need to do (other than pushing the PKGBUILD file) in order to get the package's binaries built and use pacman to install and use them? I'd like to know the process that happens between someone submitting a PKBUILD and it's binaries appearing in the sourceforge.net repository.

The process is that @Alexpux notes what packages to build and then builds them after some time. bc was probably missed by accident.

I'm try to build msys version of "bc" package but it fail and I don't yet have time to fix it.
@legends2k, try building both 32/64 versions of this package itself first.

@Alexpux Sure, I'll do it. I noticed that it's available on mingw64's repos which is also not working correctly. I'll look at both, will do it in a week, stuck in something else now.
@elieux Thanks for the info, I thought it was some formal procedure.

@Alexpux I built bc on a fresh, clean installation of 32-bit MSYS2. Here's the output
$ makepkg
==> Making package: bc 1.06-1 (Fri, May 01, 2015 10:15:09 AM)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found bc-1.06.tar.gz
==> Validating source files with md5sums...
    bc-1.06.tar.gz ... Passed
==> Extracting sources...
  -> Extracting bc-1.06.tar.gz with /usr/bin/bsdtar
==> Starting build()...
loading cache ./config.cache
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) no
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -march=i686 -mtune=generic -O2 -pipe -pipe) works... yes
checking whether the C compiler (gcc -march=i686 -mtune=generic -O2 -pipe -pipe) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for minix/config.h... (cached) no
checking for flex... (cached) flex
checking for flex... (cached) flex
checking for yywrap in -lfl... (cached) yes
checking lex output file root... (cached) lex.yy
checking whether yytext is a pointer... (cached) yes
checking for bison... (cached) bison -y
checking for a BSD compatible install... /usr/bin/install -c
checking for ranlib... (cached) ranlib
checking whether make sets ${MAKE}... (cached) no
checking for stdarg.h... (cached) yes
checking for stddef.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for limits.h... (cached) yes
checking for unistd.h... (cached) yes
checking for lib.h... (cached) no
checking for working const... (cached) yes
checking for ANSI C header files... (cached) yes
checking for size_t... (cached) yes
checking for ptrdiff_t... (cached) yes
checking for vprintf... (cached) yes
checking for isgraph... (cached) yes
checking for setvbuf... (cached) yes
checking for tparm in -lncurses... (cached) no
checking for tgetent in -ltermcap... (cached) no
checking for readline in -lreadline... (cached) no
creating ./config.status
creating Makefile
creating bc/Makefile
creating dc/Makefile
creating doc/Makefile
creating lib/Makefile
creating config.h
config.h is unchanged
make  all-recursive
make[1]: Entering directory '/g/MSYS2-packages/bc/src/bc-1.06'
Making all in lib
make[2]: Entering directory '/g/MSYS2-packages/bc/src/bc-1.06/lib'
gcc -DHAVE_CONFIG_H  -I. -I.. -I./../h  -D_FORTIFY_SOURCE=2  -march=i686 -mtune=generic -O2 -pipe -Wall -funsigned-char -c getopt.c
gcc -DHAVE_CONFIG_H  -I. -I.. -I./../h  -D_FORTIFY_SOURCE=2  -march=i686 -mtune=generic -O2 -pipe -Wall -funsigned-char -c getopt1.c
gcc -DHAVE_CONFIG_H  -I. -I.. -I./../h  -D_FORTIFY_SOURCE=2  -march=i686 -mtune=generic -O2 -pipe -Wall -funsigned-char -c vfprintf.c
gcc -DHAVE_CONFIG_H  -I. -I.. -I./../h  -D_FORTIFY_SOURCE=2  -march=i686 -mtune=generic -O2 -pipe -Wall -funsigned-char -c number.c
getopt.c: In function ‘_getopt_internal’:
getopt.c:412:7: warning: implicit declaration of function ‘strcmp’ [-Wimplicit-function-declaration]
       if (optind != argc && !strcmp (argv[optind], "--"))
       ^
getopt.c:488:2: warning: implicit declaration of function ‘strncmp’ [-Wimplicit-function-declaration]
  if (!strncmp (p->name, nextchar, nameend - nextchar))
  ^
getopt.c:490:6: warning: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration]
      if (nameend - nextchar == strlen (p->name))
      ^
getopt.c:490:32: warning: incompatible implicit declaration of built-in function ‘strlen’
      if (nameend - nextchar == strlen (p->name))
                                ^
getopt.c:514:16: warning: incompatible implicit declaration of built-in function ‘strlen’
    nextchar += strlen (nextchar);
                ^
getopt.c:544:17: warning: incompatible implicit declaration of built-in function ‘strlen’
     nextchar += strlen (nextchar);
                 ^
getopt.c:557:17: warning: incompatible implicit declaration of built-in function ‘strlen’
     nextchar += strlen (nextchar);
                 ^
getopt.c:561:16: warning: incompatible implicit declaration of built-in function ‘strlen’
    nextchar += strlen (nextchar);
                ^
number.c: In function ‘bc_new_num’:
number.c:76:3: warning: implicit declaration of function ‘memset’ [-Wimplicit-function-declaration]
   memset (temp->n_ptr, 0, length+scale);
   ^
number.c:76:3: warning: incompatible implicit declaration of built-in function ‘memset’
number.c: In function ‘bc_sub’:
number.c:558:4: warning: incompatible implicit declaration of built-in function ‘memset’
    memset (diff->n_value, 0, res_scale+1);
    ^
number.c: In function ‘bc_add’:
number.c:607:4: warning: incompatible implicit declaration of built-in function ‘memset’
    memset (sum->n_value, 0, res_scale+1);
    ^
number.c: In function ‘_bc_rec_mul’:
number.c:762:14: warning: variable ‘v0len’ set but not used [-Wunused-but-set-variable]
   int u0len, v0len;
              ^
number.c:762:7: warning: variable ‘u0len’ set but not used [-Wunused-but-set-variable]
   int u0len, v0len;
       ^
number.c: In function ‘_one_mult’:
number.c:901:5: warning: incompatible implicit declaration of built-in function ‘memset’
     memset (result, 0, size);
     ^
number.c:905:2: warning: implicit declaration of function ‘memcpy’ [-Wimplicit-function-declaration]
  memcpy (result, num, size);
  ^
number.c:905:2: warning: incompatible implicit declaration of built-in function ‘memcpy’
number.c: In function ‘bc_divide’:
number.c:956:4: warning: incompatible implicit declaration of built-in function ‘memset’
    memset (&qval->n_value[n1->n_len],0,scale);
    ^
number.c:957:4: warning: incompatible implicit declaration of built-in function ‘memcpy’
    memcpy (qval->n_value, n1->n_value,
    ^
number.c:978:3: warning: incompatible implicit declaration of built-in function ‘memset’
   memset (num1, 0, n1->n_len+n1->n_scale+extra+2);
   ^
number.c:979:3: warning: incompatible implicit declaration of built-in function ‘memcpy’
   memcpy (num1+1, n1->n_value, n1->n_len+n1->n_scale);
   ^
number.c: In function ‘bc_out_long’:
number.c:1442:3: warning: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration]
   len = strlen (digits);
   ^
number.c:1442:9: warning: incompatible implicit declaration of built-in function ‘strlen’
   len = strlen (digits);
         ^
getopt.c:563:15: warning: ‘indfound’ may be used uninitialized in this function [-Wmaybe-uninitialized]
      *longind = option_index;
               ^
rm -f libbc.a
ar cru libbc.a getopt.o getopt1.o vfprintf.o number.o
ranlib libbc.a
make[2]: Leaving directory '/g/MSYS2-packages/bc/src/bc-1.06/lib'
Making all in bc
make[2]: Entering directory '/g/MSYS2-packages/bc/src/bc-1.06/bc'
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I./../h  -D_FORTIFY_SOURCE=2  -march=i686 -mtune=generic -O2 -pipe -Wall -funsigned-char -c main.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I./../h  -D_FORTIFY_SOURCE=2  -march=i686 -mtune=generic -O2 -pipe -Wall -funsigned-char -c bc.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I./../h  -D_FORTIFY_SOURCE=2  -march=i686 -mtune=generic -O2 -pipe -Wall -funsigned-char -c scan.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I./../h  -D_FORTIFY_SOURCE=2  -march=i686 -mtune=generic -O2 -pipe -Wall -funsigned-char -c execute.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I./../h  -D_FORTIFY_SOURCE=2  -march=i686 -mtune=generic -O2 -pipe -Wall -funsigned-char -c load.c
main.c: In function ‘open_new_file’:
main.c:291:12: warning: variable ‘tmp’ set but not used [-Wunused-but-set-variable]
       char tmp;
            ^
scan.l: In function ‘yylex’:
scan.l:319:18: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
        for (look = yytext; *look != 0; look++)
                  ^
scan.l:335:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
        src = yytext;
            ^
scan.l:336:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
        dst = yytext;
            ^
scan.l: At top level:
lex.yy.c:1700:13: warning: ‘yyunput’ defined but not used [-Wunused-function]
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I./../h  -D_FORTIFY_SOURCE=2  -march=i686 -mtune=generic -O2 -pipe -Wall -funsigned-char -c storage.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I./../h  -D_FORTIFY_SOURCE=2  -march=i686 -mtune=generic -O2 -pipe -Wall -funsigned-char -c util.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I./../h  -D_FORTIFY_SOURCE=2  -march=i686 -mtune=generic -O2 -pipe -Wall -funsigned-char -c global.c
storage.c: In function ‘process_params’:
storage.c:997:11: warning: variable ‘n_temp’ set but not used [-Wunused-but-set-variable]
   bc_num *n_temp;
           ^
gcc  -march=i686 -mtune=generic -O2 -pipe -Wall -funsigned-char -pipe -o bc  main.o bc.o scan.o execute.o load.o storage.o util.o global.o ../lib/libbc.a -lfl
make[2]: Leaving directory '/g/MSYS2-packages/bc/src/bc-1.06/bc'
Making all in dc
make[2]: Entering directory '/g/MSYS2-packages/bc/src/bc-1.06/dc'
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./.. -I./../h  -D_FORTIFY_SOURCE=2  -march=i686 -mtune=generic -O2 -pipe -Wall -funsigned-char -c dc.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./.. -I./../h  -D_FORTIFY_SOURCE=2  -march=i686 -mtune=generic -O2 -pipe -Wall -funsigned-char -c misc.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./.. -I./../h  -D_FORTIFY_SOURCE=2  -march=i686 -mtune=generic -O2 -pipe -Wall -funsigned-char -c eval.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./.. -I./../h  -D_FORTIFY_SOURCE=2  -march=i686 -mtune=generic -O2 -pipe -Wall -funsigned-char -c stack.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./.. -I./../h  -D_FORTIFY_SOURCE=2  -march=i686 -mtune=generic -O2 -pipe -Wall -funsigned-char -c array.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./.. -I./../h  -D_FORTIFY_SOURCE=2  -march=i686 -mtune=generic -O2 -pipe -Wall -funsigned-char -c numeric.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./.. -I./../h  -D_FORTIFY_SOURCE=2  -march=i686 -mtune=generic -O2 -pipe -Wall -funsigned-char -c string.c
gcc  -march=i686 -mtune=generic -O2 -pipe -Wall -funsigned-char -pipe -o dc  dc.o misc.o eval.o stack.o array.o numeric.o string.o ../lib/libbc.a
make[2]: Leaving directory '/g/MSYS2-packages/bc/src/bc-1.06/dc'
Making all in doc
make[2]: Entering directory '/g/MSYS2-packages/bc/src/bc-1.06/doc'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/g/MSYS2-packages/bc/src/bc-1.06/doc'
make[2]: Entering directory '/g/MSYS2-packages/bc/src/bc-1.06'
make[2]: Leaving directory '/g/MSYS2-packages/bc/src/bc-1.06'
make[1]: Leaving directory '/g/MSYS2-packages/bc/src/bc-1.06'
==> Starting check()...

Checking e(x)
scale = 10

Failed:
  index = 97
  val1 =<PHONE_NUMBER>204269500461736408706115029076717.4572136445
  val2 =<PHONE_NUMBER>204269500461736408706115029076717.45721364460012

Total tests:    200

Total failures: 1

Percent failed: .50

scale = 20

Total tests:    200

Total failures: 0

Percent failed: 0

scale = 30

Total tests:    200

Total failures: 0

Percent failed: 0

scale = 40

Total tests:    200

Total failures: 0

Percent failed: 0

scale = 50

Total tests:    200

Total failures: 0

Percent failed: 0

scale = 60

Total tests:    200

Total failures: 0

Percent failed: 0

Checking l(x)
scale = 10

Total tests:    400

Total failures: 0

Percent failed: 0

scale = 20

Total tests:    400

Total failures: 0

Percent failed: 0

scale = 30

Total tests:    400

Total failures: 0

Percent failed: 0

scale = 40

Total tests:    400

Total failures: 0

Percent failed: 0

scale = 50

Failed:
  index = 8651
  val1 = 9.06543020018037429960871963849168770641756864298096
  val2 = 9.065430200180374299608719638491687706417568642980970004

Total tests:    400

Total failures: 1

Percent failed: .25

scale = 60

Total tests:    400

Total failures: 0

Percent failed: 0

Checking s(x)
scale = 10

Failed:
  index = .80
  val1 = .7173560909
  val2 = .71735609089952

Total tests:    624

Total failures: 1

Percent failed: .16

scale = 20

Failed:
  index = 4.47
  val1 = -.97076733665828831221
  val2 = -.970767336658288312209921

Total tests:    624

Total failures: 1

Percent failed: .16

scale = 30

Failed:
  index = 2.19
  val1 = .814340892425795914434327645905
  val2 = .8143408924257959144343276459049990

Failed:
  index = 4.31
  val1 = -.920128053755623783965712426991
  val2 = -.9201280537556237839657124269909938

Total tests:    624

Total failures: 2

Percent failed: .32

scale = 40

Failed:
  index = 2.36
  val1 = .7044107657701761194310307129327036851253
  val2 = .70441076577017611943103071293270368512529991

Total tests:    624

Total failures: 1

Percent failed: .16

scale = 50

Failed:
  index = 2.04
  val1 = .89192865095337963517152564858420454473014439859865
  val2 = .891928650953379635171525648584204544730144398598649944

Total tests:    624

Total failures: 1

Percent failed: .16

scale = 60

Failed:
  index = .65
  val1 = .6051864057360395603725216786059407063184991873698258835123\
50
  val2 = .6051864057360395603725216786059407063184991873698258835123\
499974

Failed:
  index = 1.07
  val1 = .8772005042746816103070632577768211866500141475064720919109\
44
  val2 = .8772005042746816103070632577768211866500141475064720919109\
439950

Total tests:    624

Total failures: 2

Percent failed: .32

Checking a(x)
scale = 10

Total tests:    200

Total failures: 0

Percent failed: 0

scale = 20

Total tests:    200

Total failures: 0

Percent failed: 0

scale = 30

Total tests:    200

Total failures: 0

Percent failed: 0

scale = 40

Total tests:    200

Total failures: 0

Percent failed: 0

scale = 50

Total tests:    200

Total failures: 0

Percent failed: 0

scale = 60

Total tests:    200

Total failures: 0

Percent failed: 0

Checking j(n,x)
n=0, scale = 10

Total tests:    300

Total failures: 0

Percent failed: 0

n=1, scale = 10

Total tests:    300

Total failures: 0

Percent failed: 0

n=0, scale = 20

Total tests:    300

Total failures: 0

Percent failed: 0

n=1, scale = 20

Total tests:    300

Total failures: 0

Percent failed: 0

n=0, scale = 30

Total tests:    300

Total failures: 0

Percent failed: 0

n=1, scale = 30

Total tests:    300

Total failures: 0

Percent failed: 0

n=0, scale = 40

Total tests:    300

Total failures: 0

Percent failed: 0

n=1, scale = 40

Total tests:    300

Total failures: 0

Percent failed: 0

n=0, scale = 50

Total tests:    300

Total failures: 0

Percent failed: 0

n=1, scale = 50

Total tests:    300

Total failures: 0

Percent failed: 0

n=0, scale = 60

Total tests:    300

Total failures: 0

Percent failed: 0

n=1, scale = 60

Total tests:    300

Total failures: 0

Percent failed: 0
==> Starting package()...
Making install in lib
make[1]: Entering directory '/g/MSYS2-packages/bc/src/bc-1.06/lib'
make[2]: Entering directory '/g/MSYS2-packages/bc/src/bc-1.06/lib'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/g/MSYS2-packages/bc/src/bc-1.06/lib'
make[1]: Leaving directory '/g/MSYS2-packages/bc/src/bc-1.06/lib'
Making install in bc
make[1]: Entering directory '/g/MSYS2-packages/bc/src/bc-1.06/bc'
make[2]: Entering directory '/g/MSYS2-packages/bc/src/bc-1.06/bc'
/bin/sh ../mkinstalldirs /g/MSYS2-packages/bc/pkg/bc/usr/bin
make[2]: Nothing to be done for 'install-data-am'.
mkdir /g/MSYS2-packages/bc/pkg/bc/usr
mkdir /g/MSYS2-packages/bc/pkg/bc/usr/bin
  /usr/bin/install -c  bc /g/MSYS2-packages/bc/pkg/bc/usr/bin/bc
make[2]: Leaving directory '/g/MSYS2-packages/bc/src/bc-1.06/bc'
make[1]: Leaving directory '/g/MSYS2-packages/bc/src/bc-1.06/bc'
Making install in dc
make[1]: Entering directory '/g/MSYS2-packages/bc/src/bc-1.06/dc'
make[2]: Entering directory '/g/MSYS2-packages/bc/src/bc-1.06/dc'
/bin/sh ../mkinstalldirs /g/MSYS2-packages/bc/pkg/bc/usr/bin
make[2]: Nothing to be done for 'install-data-am'.
  /usr/bin/install -c  dc /g/MSYS2-packages/bc/pkg/bc/usr/bin/dc
make[2]: Leaving directory '/g/MSYS2-packages/bc/src/bc-1.06/dc'
make[1]: Leaving directory '/g/MSYS2-packages/bc/src/bc-1.06/dc'
Making install in doc
make[1]: Entering directory '/g/MSYS2-packages/bc/src/bc-1.06/doc'
make[2]: Entering directory '/g/MSYS2-packages/bc/src/bc-1.06/doc'
make[2]: Nothing to be done for 'install-exec-am'.
/bin/sh ../mkinstalldirs /g/MSYS2-packages/bc/pkg/bc/usr/info
make  install-man1
make[3]: Entering directory '/g/MSYS2-packages/bc/src/bc-1.06/doc'
/bin/sh ../mkinstalldirs /g/MSYS2-packages/bc/pkg/bc/usr/man/man1
mkdir /g/MSYS2-packages/bc/pkg/bc/usr/info
mkdir /g/MSYS2-packages/bc/pkg/bc/usr/man
 /usr/bin/install -c -m 644 ./bc.info /g/MSYS2-packages/bc/pkg/bc/usr/info/bc.info
mkdir /g/MSYS2-packages/bc/pkg/bc/usr/man/man1
 /usr/bin/install -c -m 644 ./dc.info /g/MSYS2-packages/bc/pkg/bc/usr/info/dc.info
 /usr/bin/install -c -m 644 ./bc.1 /g/MSYS2-packages/bc/pkg/bc/usr/man/man1/bc.1
 install-info --info-dir=/g/MSYS2-packages/bc/pkg/bc/usr/info /g/MSYS2-packages/bc/pkg/bc/usr/info/bc.info
install-info: warning: no info dir entry in `/g/MSYS2-packages/bc/pkg/bc/usr/info/bc.info'
 install-info --info-dir=/g/MSYS2-packages/bc/pkg/bc/usr/info /g/MSYS2-packages/bc/pkg/bc/usr/info/dc.info
 /usr/bin/install -c -m 644 ./dc.1 /g/MSYS2-packages/bc/pkg/bc/usr/man/man1/dc.1
make[3]: Leaving directory '/g/MSYS2-packages/bc/src/bc-1.06/doc'
make[2]: Leaving directory '/g/MSYS2-packages/bc/src/bc-1.06/doc'
make[1]: Leaving directory '/g/MSYS2-packages/bc/src/bc-1.06/doc'
make[1]: Entering directory '/g/MSYS2-packages/bc/src/bc-1.06'
make[2]: Entering directory '/g/MSYS2-packages/bc/src/bc-1.06'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/g/MSYS2-packages/bc/src/bc-1.06'
make[1]: Leaving directory '/g/MSYS2-packages/bc/src/bc-1.06'
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issue...
==> Creating package "bc"...
  -> Generating .PKGINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Finished making: bc 1.06-1 (Fri, May 01, 2015 10:16:30 AM)

I had no problems building it for 32-bit (or for 64-bit). Is there something I'm missing here?

Also the binaries present in the packages mingw-w64-i686-bc and mingw-w64-x86_64-bc are faulty; I'm basing my conclusion on this observation: installing this package and launching bc, doesn't show
Copyright 1991-1994, 1997, 1998, 2000 Free Software Foundation, Inc.
This is free software with ABSOLUTELY NO WARRANTY.
For details type `warranty'.

which a correct binary would. It just show a blank prompt where you enter, say 1<return>, then it displays 1 followed by the above welcome message.

The mingw-w64-bc packages are working correctly, it's just mintty that doesn't know how to speak to them. See our Porting wikipage for more detailed information.

As for the build issue, the problem could actually be in the cleanliness of your installation. Look at these parts of my msys64 build log:
checking for tparm in -lncurses... yes
checking for readline in -lreadline... yes
checking for readline/readline.h... yes
Using the readline library.

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I./../h  -D_FORTIFY_SOURCE=2  -march=x86-64 -mtune=generic -O2 -pipe -Wall -funsigned-char -c scan.c
In file included from bcdefs.h:58:0,
                 from scan.l:32:
scan.l:146:18: error: conflicting types for ‘readline’
 _PROTOTYPE(char *readline, (char *));
                  ^
./../h/number.h:96:32: note: in definition of macro ‘_PROTOTYPE’
 #define _PROTOTYPE(func, args) func args
                                ^
In file included from bcdefs.h:52:0,
                 from scan.l:32:
/usr/include/readline/readline.h:287:14: note: previous declaration of ‘readline’ was here
 extern char *readline PARAMS((const char *));
              ^
scan.l: In function ‘yylex’:
scan.l:319:18: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
        for (look = yytext; *look != 0; look++)
                  ^
scan.l:335:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
        src = yytext;
            ^
scan.l:336:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
        dst = yytext;
            ^
scan.l: At top level:
lex.yy.c:1700:13: warning: ‘yyunput’ defined but not used [-Wunused-function]
Makefile:162: recipe for target 'scan.o' failed
make[2]: *** [scan.o] Error 1

I don't know if this is the same issue as @Alexpux is seeing, but it seems that bc doesn't like our readline. I see that your configure read cached values -- maybe that's the reason you don't see the issue?

@elieux Yes, I too am hitting this issue when I build for 64-bit. However, when I build without --readline option it builds on both architectures successfully.

The mingw-w64-bc packages are working correctly, it's just mintty that doesn't know how to speak to them
Perhaps; the binaries I built without readline is behaving exactly as it should. Shows the header when run without any options or with -i, when run with -q doesn't show it. When within the REPL too it behaves rightly which it didn't when built with readline.

Shall I raise a pull request with --readline removed in msys/bc/PKGBUILD so that it gets built on both archs in MSYS and not in MINGW.

yes do pull request

@legends2k Can you explain what you mean by "When within the REPL too it behaves rightly which it didn't when built with readline"
I have a very simple patch ready to fix readline support and it seems to work just fine.

Just after launching bc, it enters into the read-execute-print loop; in the one built with readline, just entering some number say 1 and then pressing Return would result in bc's copyright banner text getting printed; sometimes after giving 1 + 2⏎ instead of printing 3, it shows this text. This text should be coming soon after launching bc; thereafter nothing but the user input and its results to be printed — this happens when built without readline.

@mingwandroid Any updates on this one?

bc is now available as a package in msys.


Kazakhstan update 2022

Hi. I'm from Kazakhstan.
I want to update Kazakhstan module.
This's a my first contribute, and... hope for understanding. :-)
I implemented:

all holidays get observed on weekdays if they fall on weekends (with excluded);
changes made by our President for 2022 (https://adilet.zan.kz/rus/docs/Z2200000143);
test for 2022 year.

I not implemented (for now):

for efficient usage of working in the period of holidays the Government has a right to carry days-off to other working days.

As a basis, I used the calendar of the state portal: https://egov.kz/cms/en/articles/holidays-calend

Hello! Thank for your contribution. But firstly look at Kazakhstan in beta branch, it has latest changes.
Link to offcial law base is very useful. 👍
If you are from Kazakhstan, you can probable clarify some ambiguities:

Before Law 267 holidays were regulated by Presidential Decree 2534 from 1995. Did it have any changes between 1996 and 2001?
How were holidays established before 1996?
Extending holidays if they fall on weekends actual since 2002, by Law 267? Or it begins before?

Hello! Thank for your contribution. But firstly look at Kazakhstan in beta branch, it has latest changes. Link to offcial law base is very useful. +1 If you are from Kazakhstan, you can probable clarify some ambiguities:

Before Law 267 holidays were regulated by Presidential Decree 2534 from 1995. Did it have any changes between 1996 and 2001?
How were holidays established before 1996?
Extending holidays if they fall on weekends actual since 2002, by Law 267? Or it begins before?

hi. sorry, i'm pushed changes from fork master branch. i will study it.

I'm not a lawyer, but there are no changes. law's history page: (only ru/kz version) https://adilet.zan.kz/rus/docs/U950002534_/history
Oh, tough question. I'm not of those years :) People of that time say that the holidays of the USSR were canceled in the period from 1991 to 1993. That's all I know.
If you look at the history of the law, then from 12/13/2001: https://adilet.zan.kz/rus/archive/docs/Z010000267_/12/13/2001

Close. Because this work take @KJhellico in https://github.com/dr-prodigy/python-holidays/pull/867 .


serverspces as a plugin

Evaluate to move serverspces role as a plugin so it can be resued cross plugins not only for Apollo core

closing in favour of #583


Must fix letter d bug (SUPER IMPORTANT)!!!!!!!!!!!!

Version 1.21.0(Same error in Prod Version)
Ubuntu

For Linux see #35675.


Add support for loading multiple datasets

They MUST have the same image and text column for this to work, you can split them by inserting | between dataset names (no spaces between the |, this will break it, I'll probably add a .strip() later)

LGTM, merging.


Add train-test split for tabular data

I have now run it and it seems okay to me. I added also some optional checks (enabled by default) that should help us spot if something goes wrong.

actually, there will probably be a bug due to the merge behavior if there are no SMILES in a given data frame

BTW, also made override a flag users must enable as I find it dangerous for this to be the default

BTW, also made override a flag users must enable as I find it dangerous for this to be the default
The default could be to rename the original file and still keep it and then just name the new one data_clean.csv.

The default could be to rename the original file and still keep it and then just name the new one data_clean.csv.

that is what the code now does.


External $ref

Describe the bug
If a $ref refers to an external document, cherrybomb panics with "external references are not supported yet.."
To Reproduce
Steps to reproduce the behavior:

Create an open $ref to link to another file
Run cherrybomb on the openapi file
See error

Expected behavior
cherrybomb reads the external doc.

One way to reduce the impact of this is to add pub to run_profile_info etc, so that I can load the OAS myself, and then invoking those inner functions with the loaded doc.


Ptndarrayex multiboxprior

Description
The big goal here is to implement PtNDArrayEx.multiBoxDetection() (currently throws NotImplementException) so that you can run PikachuTraining with Pytorch and so you can run SSD Training on M1 Macs.
The implementation for this is derived from:
https://github.com/apache/mxnet/blob/master/src/operator/contrib/multibox_detection.cc
and
https://github.com/apache/mxnet/blob/master/src/operator/contrib/multibox_detection-inl.h
This implementation is based on implementing the unit test on the C++ side and comparing the steps internally.

Codecov Report
Patch coverage: 53.03% and project coverage change: +0.21% :tada:

Comparison is base (bb5073f) 72.08% compared to head (0556841) 72.29%.
Report is 880 commits behind head on master.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the GitHub App Integration for your organization. Read more.
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #2767      +/-   ##
============================================
+ Coverage     72.08%   72.29%   +0.21%
- Complexity     5126     7384    +2258
============================================
  Files           473      700     +227
  Lines         21970    32324   +10354
  Branches       2351     3360    +1009
============================================
+ Hits          15838    23370    +7532
- Misses         4925     7382    +2457
- Partials       1207     1572     +365

Files Changed
Coverage Δ

api/src/main/java/ai/djl/modality/cv/Image.java
69.23% <ø> (-4.11%)
:arrow_down:

...rc/main/java/ai/djl/modality/cv/MultiBoxPrior.java
76.00% <ø> (ø)

.../main/java/ai/djl/modality/cv/output/Landmark.java
100.00% <ø> (ø)

...djl/modality/cv/transform/RandomFlipLeftRight.java
25.00% <0.00%> (-25.00%)
:arrow_down:

...djl/modality/cv/transform/RandomFlipTopBottom.java
25.00% <0.00%> (-25.00%)
:arrow_down:

...i/djl/modality/cv/translator/BigGANTranslator.java
21.42% <0.00%> (-5.24%)
:arrow_down:

.../modality/cv/translator/ImageFeatureExtractor.java
0.00% <0.00%> (ø)

.../ai/djl/modality/cv/translator/YoloTranslator.java
27.77% <0.00%> (+18.95%)
:arrow_up:

...ain/java/ai/djl/modality/cv/util/NDImageUtils.java
67.10% <0.00%> (+7.89%)
:arrow_up:

api/src/main/java/ai/djl/modality/nlp/Decoder.java
63.63% <ø> (ø)

... and 226 more

... and 370 files with indirect coverage changes

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Validator profile images are not showing as expected

The validator profile images are crawled from Keybase
https://github.com/forbole/big_dipper/blob/aed2e1856a0d9b96e3b541476786a6f89ded0314/imports/api/blocks/server/methods.js#L39
but they are not showing as expected sometime. There should be some issue on the crawling schedule.

Looks like it has been fixed.


state management

What happened?
I spent a bunch of time trying to get PyScript to work in react and had a lot of double rendering issues, so I ended up doing just:
  const store = usePyScriptStore();
  const id = useId();
  useLayoutEffect(() => {
      store.pyScript?.interpreter.run(code, id).then(() => {
          setIsLoading(false);
        });
    }, [...]);

as my own PyScript component and that worked flawlessly
Version
1.0.0
Relevant log output
No response
How to reproduce?
Click chrome.exe
Code of Conduct

[X] I agree to follow this project's Code of Conduct

Hi,
right now to use the default PyScript store integrated into the package you need to use PyScriptProviderZustandWrapper. Sorry for the lack of documentation, but we are trying to release it as fast as possible. The behavior of usePyScriptStore is that it starts with null as an empty value indicator. After that as fast as PyScriptProviderZustandWrapper is mounted it starts to check for pyscript to be registered under the Window object. The interval of that is 10ms. The first render should be with pyscript as a null value and the next one should have a valid object.
Best Regards

@ShootGan

Yes I was already using PyScriptProviderZustandWrapper, that's fine.
I needed my own PyScript implementation, putting it here for reference:
const PyScript = memo(function PyScript({ context, id, code, errorDisplay }: PyScriptProps) {
  const [loading, setIsLoading] = useState(false);
  const [error, setError] = useState("");
  const store = usePyScriptStore();
  const pyScriptId = useMemo(() => (id ? `py-script-${id}` : undefined), [id]);
  useEffect(() => {
    async function exec() {
      try {
        // set context here
        await store.pyScript?.interpreter.run(code, id).then(() => {
          setIsLoading(false);
        });
      } catch (e) {
        setError(String(e));
      }

      setIsLoading(false);
    }
    if (pyScriptId && code) {
      setPyScriptContext(pyScriptId, context);
      setIsLoading(true);
      setError("");
      exec();
    }
  }, [code, context, pyScriptId, store]);

  if (!id) {
    return null;
  }

  return (

      {loading && "Loading..."}
      {error && (
{error}
)}

  );
});


Hugo go syntax highlighter colors the schwa letters differently. 0.92.2 version outputs correctly

0.115.4
Hugo go syntax highlighter colors the schwa letters differently. 0.92.2 version outputs correctly
cc.md

Introduced in v0.107.0 when we bumped github.com/alecthomas/chroma from v2.3.0 to v2.4.0. Will report upstream.

(not sure how/why that happened)

My mistake. I guess I did

go get -u github.com/alecthomas/chroma/v2

When I should have

go get github.com/alecthomas/chroma/v2


How to most accurately determine which SourceForge file is the one we want

Right now Recipe Robot looks for the files:extra-info tag marked as data in the RSS feed, which seems to work for a subset of SourceForge-hosted files, but not all of them.
For example, here are the filenames and extra-info tags for each file in a GrandPerspective release:

Filename
extra-info

README.txt
English text

GrandPerspective-1_5_1.dmg
data

GrandPerspective-1_5_1-src.tgz
POSIX tar archive (GNU) (gzip compressed data)

The one in bold is the actual binary we want to download.
As a counterexample, the latest release of VLC has an extra-info tag x86 boot sector (bzip2 compressed data).
Trying to find the unifying factor that determines "yes, this is the binary you want to download."

My initial response was because VLC just doesn't offer a disk image format download. But it does (at least based on looking at the SF site, not the RSS).
Can you provide more examples, with complete data? Is it possible that we're just looking for a filename with extension .dmg and with either data or x86 boot sector (bzip2 compressed data)?
Is one just a standard disk image, and another a compressed one, probably? So maybe we just need to figure out what the SF synonyms for each kind of disk image are?

Here are some examples:

http://sourceforge.net/projects/grandperspectiv/rss
http://sourceforge.net/projects/vlc/rss
http://sourceforge.net/projects/adium/rss
http://sourceforge.net/projects/cord/rss

It appears that unlike Sparkle feeds, each release is not limited to a single <item>. Instead, there is a separate <item> for every file in a release, and the release files aren't grouped together at all. Best we can do, I think, is to find the group of items with the most recent <pubDate> and then try to determine which <item> with that <pubDate> is the one we want.
On the other hand, I'm not keen on spending much dev time making Recipe Robot work well with SourceForge, because SourceForge is clearly on the decline.

Another example: https://sourceforge.net/projects/apcupsd/

Yeah, I'm not inclined to spend any more time on fiddly SourceForge stuff.

I believe @n8felton may have solved this for us! I've added some code in the latest dev branch that should work its way into master eventually.


Add OnlineInterview.io to Online Tools section

OnlineInterview.io is a free tech interview platform, with shared code editor, drawing board and video chat.  Link: https://onlineinterview.io/

LGTM. :)
Be sure to visit web-dev-resources.com and check if everything is ok. Thanks!


Unable to access rowFormatter

I am trying to setup a table with a rowFormatter, where colorEditable is a function
this is the column definition
{"title": col, "field": col, "editor": True, 'headerSort': False, 'frozen': TF,'editable':edit_check, 'rowFormatter': colorEditable }
When I include the 'rowFormatter' key in the dictionary, i get the following error in Anvil
AttributeError: The following column option(s) are invalid: 'rowFormatter'. You may need to include the required Module in Tabulator.modules.
at app/tabulator/Tabulator/_custom_modules.py:312

I guess this is accessible from the design view. Closing this.

rowFormatters can only be defined as a table option not as part of the column definition.
And yes there is also a custom event to handle the same thing.