[Bug]  Newly created CRUD causes getRelated() error

Bug report
What I did
Created a CRUD using devtools. I have created a migration to go with it, as well as the model, crud controller, migration and request. I've created a few CRUDS using devtools, this is the first one I'm having issues with. The other ones I've created have all had relationships defined in them though, so possible that is the key difference.
REQUEST
<?php

namespace App\Http\Requests;

use App\Http\Requests\Request;
use Illuminate\Foundation\Http\FormRequest;

class CubeRefreshRequest extends FormRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        // only allow updates if the user is logged in
        return backpack_auth()->check();
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'refresh_id' => 'required|string',
            'refresh_status' => 'required|string',
            'refresh_details' => 'required|string',
            'refresh_time' => 'required',
        ];
    }

    /**
     * Get the validation attributes that apply to the request.
     *
     * @return array
     */
    public function attributes()
    {
        return [
            //
        ];
    }

    /**
     * Get the validation messages that apply to the request.
     *
     * @return array
     */
    public function messages()
    {
        return [
            //
        ];
    }
}

CONTROLLER
<?php

namespace App\Http\Controllers\Admin;

use App\Http\Requests\CubeRefreshRequest;
use Backpack\CRUD\app\Http\Controllers\CrudController;
use Backpack\CRUD\app\Library\CrudPanel\CrudPanelFacade as CRUD;

/**
 * Class CubeRefreshCrudController
 * @package App\Http\Controllers\Admin
 * @property-read \Backpack\CRUD\app\Library\CrudPanel\CrudPanel $crud
 */
class CubeRefreshCrudController extends CrudController
{
    use \Backpack\CRUD\app\Http\Controllers\Operations\ListOperation;
    use \Backpack\CRUD\app\Http\Controllers\Operations\CreateOperation;
    use \Backpack\CRUD\app\Http\Controllers\Operations\UpdateOperation;
    use \Backpack\CRUD\app\Http\Controllers\Operations\DeleteOperation;
    use \Backpack\CRUD\app\Http\Controllers\Operations\ShowOperation;

    /**
     * Configure the CrudPanel object. Apply settings to all operations.
     *
     * @return void
     */
    public function setup()
    {
        CRUD::setModel(\App\Models\CubeRefresh::class);
        CRUD::setRoute(config('backpack.base.route_prefix') . '/cube-refresh');
        CRUD::setEntityNameStrings('cube refresh', 'cube refreshes');
    }

    /**
     * Define what happens when the List operation is loaded.
     *
     * @see  https://backpackforlaravel.com/docs/crud-operation-list-entries
     * @return void
     */
    protected function setupListOperation()
    {
        CRUD::column('refresh_id');
        CRUD::column('refresh_status');
        CRUD::column('refresh_details');
        CRUD::column('refresh_time');

        /**
         * Columns can be defined using the fluent syntax or array syntax:
         * - CRUD::column('price')->type('number');
         * - CRUD::addColumn(['name' => 'price', 'type' => 'number']);
         */
    }

    /**
     * Define what happens when the Create operation is loaded.
     *
     * @see https://backpackforlaravel.com/docs/crud-operation-create
     * @return void
     */
    protected function setupCreateOperation()
    {
        CRUD::setValidation(CubeRefreshRequest::class);

        CRUD::field('refresh_id');
        CRUD::field('refresh_status');
        CRUD::field('refresh_details');
        CRUD::field('refresh_time');

        /**
         * Fields can be defined using the fluent syntax or array syntax:
         * - CRUD::field('price')->type('number');
         * - CRUD::addField(['name' => 'price', 'type' => 'number']));
         */
    }

    /**
     * Define what happens when the Update operation is loaded.
     *
     * @see https://backpackforlaravel.com/docs/crud-operation-update
     * @return void
     */
    protected function setupUpdateOperation()
    {
        $this->setupCreateOperation();
    }
}

MODEL
<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class CubeRefresh extends Model
{
    use \Backpack\CRUD\app\Models\Traits\CrudTrait;
    use HasFactory;

    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [
        'refresh_id',
        'refresh_status',
        'refresh_details',
        'refresh_time',
    ];

    /**
     * The attributes that should be cast to native types.
     *
     * @var array
     */
    protected $casts = [
        'id' => 'integer',
        'refresh_time' => 'datetime',
    ];
}

MIGRATION
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateCubeRefreshesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('cube_refreshes', function (Blueprint $table) {
            $table->id();
            $table->string('refresh_id', 100);
            $table->string('refresh_status', 50);
            $table->string('refresh_details', 1000);
            $table->dateTime('refresh_time');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('cube_refreshes');
    }
}

What I expected to happen
To view the CRUD in the application.
What happened
When I go to /admin/cube-refresh I get the below error.
Call to undefined method App\Models\CubeRefresh::getRelated()

Illuminate\Database\Eloquent\Model::throwBadMethodCallException
D:\laragon\www\MyApp\vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:71

    * @return mixed

     *

     * @throws \BadMethodCallException

     */

    protected function forwardDecoratedCallTo($object, $method, $parameters)

    {

        $result = $this->forwardCallTo($object, $method, $parameters);

        if ($result === $object) {

            return $this;

        }

        return $result;

    }

    /**

     * Throw a bad method call exception for the given method.

     *

     * @param  string  $method

     * @return void

     *

     * @throws \BadMethodCallException

     */

    protected static function throwBadMethodCallException($method)

    {

        throw new BadMethodCallException(sprintf(

            'Call to undefined method %s::%s()', static::class, $method

        ));

    }

}

What I've already tried to fix it
Searched for any instances of getrelated() in my project, I can't find any, this is a new CRUD on a system where devtools is working fine.
Backpack, Laravel, PHP, DB version
PHP VERSION:
PHP 7.4.19 (cli) (built: May  4 2021 14:24:38) ( ZTS Visual C++ 2017 x64 )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
LARAVEL VERSION:
v8.64.0@3337c029e1bb31d9712d27437cc27010ba302c9e
BACKPACK VERSION:
4.1.54@6f0ddffbe2017ef0e0d9becf5e9f422a81d94c45
Operating System and Server Setup
I encountered the problem above on my [Windows 10 ] machine, and my web server is set up using [LARAGON].

@hakkahio I have good news for you. Pedro's PR #3606 did provide a fix for this, it's been merged to master and is available to you right now with a composer update. Additionally, I've submitted https://github.com/Laravel-Backpack/CRUD/pull/3926 and https://github.com/Laravel-Backpack/CRUD/pull/3927 which fix the same problem inside the ShowOperation.
So that's the good news 🎉  We have a workaround for you to use refresh_id for both fields and columns - you just have to specify entity to false for Backpack to no longer look for a relationship. But PLEASE NOTE that this workaround only works with the array syntax. So:
// these will work (array syntax)
CRUD::addColumn([
    'name' => 'refresh_id',
    'entity' => false,
]);
CRUD::addField([
    'name' => 'refresh_id',
    'entity' => false,
]);

// these WILL NOT work!!! (fluent syntax)
CRUD::column('refresh_id')->entity(false);
CRUD::field('refresh_id')->entity(false);

Hope it helps! I'll close the issue, let me know if that doesn't fix it for you and we'll reopen.

@pxpm , @promatik ... I say we now have a workaround... 'entity' => false works for both fields and columns, for the Create, Update and Show operations. The only thing left to do would be to... make this happen in fewer cases. Which would be nice, but... not a priority at the moment. We'll increase the priority if more people stumble into this, but for the moment... it's one person in one year that had the problem, so I don't think it qualifies for a high importance. If you're interested in pursuing the ideas above:

@pxpm to see if we can remove the methods inside the laravel namespace;
@promatik to see if we can add 'entity' => false automatically in DevTools;

then please open an issue with that specific suggestion, so we don't forget to do it, and link to this issue. BUT. They're not MUSTs. They're SHOULDs/COULDs. For now let's focus on getting 4.2 out the door.
Cheers!

Cool - I wasn't expecting a fix to this, though this makes integration a hell of a lot simpler, thank you very much @tabacitu!

Facing the same issue with name => qty
Have change the name to something else fixed the issue


doc: remove duplicated workload from kmeans

In kmeans document, the same workload is listed twice. Now remove
the duplicated one.
Signed-off-by: Haojian Zhuang<EMAIL_ADDRESS>

Codecov Report

Merging #182 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff           @@
##           master    #182   +/-   ##
======================================
  Coverage    86.8%   86.8%
======================================
  Files          33      33
  Lines         750     750
  Branches       47      47
======================================
  Hits          651     651
  Misses         99      99

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 763becb...0653f44. Read the comment docs.


edx-enterprise improvements

Another bunch of updates from edx-enterprise:

Introduced project_title variable - used as the human-readable project title (in docs) and as a source to generate repo/app name.
Moved PR template to where github expects it to be
Updated Changelog format so it generates correct changelog ToC
Added section markers to i18n and testing - they proved to be useful when actually writing documentation
Added improvements and fixes to conf.py resulted from trying to submit the docs to readthedocs
suppressed pylinting docs/conf.py as it is problematic to fix it (pylint runs in tox env, where importing the app locally does not work)

Testing instructions:

Run tests (aka make validate)
Try baking the project with different settings and make sure everything works

Author concerns:
I had to suppress pylinting the docs/conf.py because it now relies on importing the app locally, while pylint runs from different working dir. If there are a better way to solve it than excluding conf.py - I'd really love to turn it back on.
The reason behind importing the project locally is twofold:

conf.py sets versions to current app version (otherwise they are never updated in practice)
It might be necessary to actually build the docs for readthedocs (@mattdrayer - I'd appreciate your comments on this).

@pomegranited Slightly updated the PR (conf.py) and accidentally amended it instead of adding another commit. Please take another look.

@jmbowman @andy-armstrong Pleaes review - updates to template from edx/edx-enterprise#35

@jmbowman I've addressed your notes - please take another look.


fix wrong parameters of $stateChangeStart

I find that angular-permission broadcast a $stateChangeStart with wrong parameters.
The toState and fromState is a object of state.
But angular-permission broadcast with a state's name.
I add a $$finishAuthorize for prevent infinite loop.

I'm checking this out right now to see if everything works as expected ;)!

Thanks for pointing this out, just like in your previous issue I'd just need you to rebase ur branch so that we don't have merge conflicts

I'm done. ;)

:+1:

@flyskyko thanks for your contribution, will bundle the current development branch into a new version today


python310Packages.omnikinverter: 0.7.0 -> 0.8.1

Description of changes
https://github.com/klaasnicolaas/python-omnikinverter/releases

Things done

Built on platform(s)

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

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

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

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

2 packages built:

python310Packages.omnikinverter
python39Packages.omnikinverter


Skip func

I rebased your PR because of other changes in the master branch. New PR #50.
Renamed skip to skipSuggest to make the naming clearer. Thanks for the contrib!

Released with 1.10.0.


Enforcing Generic Type for Generic React Component

Suggestion
Hi
I am trying to make a React Component that use Generic Type.

For example, because the type of value is "any",

I cannot specify the type of value in the component, even though the type of value is actually consistent.
(Which can cause issues like "Uncaught TypeError: Cannot read property 'please' of undefined")
So, I researched the way to create a Generic Component.

And it does what I want it to do, forcing types for values inside the component.
However the issue I found irritating was that,

unlike normal Generic function which catches

Generic type 'FuncProps' requires 1 type argument(s).ts(2314)

generic React Component does not catch when Type is not provided.
🔍 Search Terms

React
Generic Type
Functional Component

✅ Viability Checklist

My suggestion meets these guidelines:

[x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
[x] This wouldn't change the runtime behavior of existing JavaScript code
[x] This could be implemented without emitting different JS based on the types of the expressions
[x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
[x] This feature would agree with the rest of TypeScript's Design Goals.

⭐ Suggestion
Because the user is not given any instructions, it is very likely that he/she will use the component without Typing,
which makes making a component Generic kind of meaningless.
I personally think it can make React Components much more reliable if this kind of Generic Support is provided.

(EX: if the code above did not have <string | undefined>, and if default Type was not provided, then show "Generic type 'FuncProps' requires 1 type argument(s).ts(2314)" error)
📃 Motivating Example

💻 Use Cases

Generic function application also doesn't require you to fill in the type parameters, only when you refer to generic types are you forced to do so.

Generic function application also doesn't require you to fill in the type parameters, only when you refer to generic types are you forced to do so.

Thanks for letting me know. Didn't know about that.
Still, the same applies even if I refer to generic types in Generic React component.

I clearly refer to options and value in the component,
yet TS just infers the types of the options, and does not force Type input.

This behavior I believe is in conflict with the utiltiy of TS.


Backport Merge #15144: [refactor] CNode: Use C++11 default member initializers

Please fix CI, and then mark PR as ready for review


Add smoke test for breakpoint persistence

When a target resets, it should persist its breakpoints. At least that's how system resets on the MIMXRT 10xx series seem to work. On the other hand, that's not how system resets on the MIMXRT 11xx series would work, unless there's custom support in the debug sequence (#2387). I used this smoke test to help me test that custom support.
I'm re-using the ARM target binary, used for step testing, to realize the new test case.

The MIMXRT 10xx are the odd MCUs! Thanks for setting up these hardware tests.

Why did you close this, good sir? :)

Sorry for the haste. This may be TMI, but here's what I'm exploring.
I flash my MCU and enter a debug session. "Darn, I forgot to place a breakpoint in main() to check that thing!" I curse. So I place a breakpoint in main(), and I reset the MCU. If all goes well, I hit the breakpoint I placed in main().
One way to achieve this behavior: persist breakpoints in the MCU's debug domain across reset. ArmDebugSequence::reset_system documentation suggests that the reset should preserve the debug domain. Of course, I could be misinterpreting the scope of the debug domain. But no matter the interpretation, my MIMXRT 10xx targets seem to persist breakpoints across reset. It's convenient.
On the other hand, my MIMXRT 11xx targets do not persist breakpoints across system reset. In fact, they reset a large part of the debug domain, including the debug port. That's all inconvenient, so I handle that in the debug sequence. I also satisfy (what I believe to be) the requirements of the reset_system interface.
I wrote this smoke test to make sure that my 11xx target behave the same way as my 10xx targets. I figured it might work for other MCUs. But the automated smoke tests against different MCUs failed. It could be that my test is wrong; let me know if you see something obvious.
I closed this PR because I was concerned these other MCUs behave like the 11xx: they'll need additional support in order to preserve breakpoints across reset. If that's the case, this smoke test would keep failing until we add that support.

The component which handles breakpoint is part of the core, and it should not be reset when you do a warm reset, which is what the sysreset triggers. At least the architecture manual doesn't require it to be reset, but it also doesn't explicitly say breakpoints should be preserved.
The debug port should be independent of that, it's a component which is not part of the core itself, so it's often a different reset domain.
Of course, the resets are very vaguely defined, so it's not too surprising if a sysreset resets breakpoints.
The manual of the chip should say what the sysreset does, is anything mentioned for the MIMXRT 11xx?

The manual of the chip should say what the sysreset does, is anything mentioned for the MIMXRT 11xx?

The 11xx manual clarifies that the MCU's boot ROM disables the debug port out of reset. I take care to reinitialize the debug port once I perform sysreset, since sysreset passes through the boot ROM.
I haven't found any documentation describing what happens with the 11xx core's breakpoints after sysreset. My testing suggests that the core's hardware breakpoints are lost. I also take care to cache those, since I'd like a consistent user experience with my 10xx MCUs.


Allow to generate title key in JSON Schema

It would be great to be able to specify a title property with the schema for instance with:
# Test

 - something (string) - # Why not a Title! - As well as a description

Would generate
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "something": {
      "type": "string",
      "title": "Why not a Title!",
      "description": "As well as a description"
    }
  }
}

Allowing to implement root level title (which is connected to #70) and descriptions would also fit idiomatic JSON Schema.
It seems that this is connected to a number of issues which are about using MSON to generate expressive JSON Schema (#43, #69, #70). It might be good to document the subset of JSON Schema that MSON covers (to help both inform those who might be interested in this approach, and maybe feed a roadmap?).

@jmatsushita Thanks for the request.


Project ... does not exist

Description

Steps to reproduce

Create an Angular project
npm i -D husky prettier lint-staged
npx husky install
Add to package.json

  "lint-staged": {
    "*.{ts,js}": [
      "prettier --write",
      "npm run lint"
    ],
    "*.{scss,html,json}": "prettier --write"
  }

Modify a TS file and commit.
See an error along the lines of An unhandled exception occurred: Project '/home/maxie/Projects/ng-git-hooks/src/app/app.component.ts' does not exist..

Here's a repo where I tried to get hooks to work (note the branch): https://github.com/Berkmann18/ng-git-hooks/tree/husky-ls
Debug Logs

expand to view
  lint-staged:bin Running<EMAIL_ADDRESS>+0ms
  lint-staged:bin Options parsed from command-line: {
  allowEmpty: false,
  concurrent: true,
  configPath: undefined,
  debug: true,
  maxArgLength: 65536,
  stash: true,
  quiet: false,
  relative: false,
  shell: false,
  verbose: false
} +1ms
  lint-staged Loading config using `cosmiconfig` +0ms
  lint-staged Successfully loaded config from `/home/maxie/Projects/ng-git-hooks/package.json`:
  lint-staged {
  lint-staged   '*.{ts,js}': [ 'prettier --write', 'npm run lint' ],
  lint-staged   '*.{scss,html,json}': 'prettier --write'
  lint-staged } +12ms
  lint-staged:cfg Validating config +0ms
Running lint-staged with the following config:
{
  '*.{ts,js}': [
    'prettier --write',
    'npm run lint'
  ],
  '*.{scss,html,json}': 'prettier --write'
}
  lint-staged Unset GIT_LITERAL_PATHSPECS (was `undefined`) +2ms
  lint-staged:run Running all linter scripts +0ms
  lint-staged:resolveGitRepo Resolving git repo from `/home/maxie/Projects/ng-git-hooks` +0ms
  lint-staged:resolveGitRepo Unset GIT_DIR (was `undefined`) +0ms
  lint-staged:resolveGitRepo Unset GIT_WORK_TREE (was `undefined`) +0ms
  lint-staged:git Running git command [ 'rev-parse', '--show-toplevel' ] +0ms
  lint-staged:resolveGitRepo Resolved git directory to be `/home/maxie/Projects/ng-git-hooks` +11ms
  lint-staged:resolveGitRepo Resolved git config directory to be `/home/maxie/Projects/ng-git-hooks/.git` +1ms
  lint-staged:git Running git command [ 'log', '-1' ] +12ms
  lint-staged:git Running git command [ 'diff', '--staged', '--diff-filter=ACMR', '--name-only', '-z' ] +3ms
  lint-staged:run Loaded list of staged files in git:
  lint-staged:run [ 'src/app/app.component.ts' ] +20ms
  lint-staged:chunkFiles Resolved an argument string length of 58 characters from 1 files +0ms
  lint-staged:chunkFiles Creating 1 chunks for maxArgLength of 65536 +0ms
  lint-staged:gen-tasks Generating linter tasks +0ms
  lint-staged:gen-tasks Generated task:
  lint-staged:gen-tasks {
  lint-staged:gen-tasks   pattern: '*.{ts,js}',
  lint-staged:gen-tasks   commands: [ 'prettier --write', 'npm run lint' ],
  lint-staged:gen-tasks   fileList: [ '/home/maxie/Projects/ng-git-hooks/src/app/app.component.ts' ]
  lint-staged:gen-tasks } +3ms
  lint-staged:gen-tasks Generated task:
  lint-staged:gen-tasks {
  lint-staged:gen-tasks   pattern: '*.{scss,html,json}',
  lint-staged:gen-tasks   commands: 'prettier --write',
  lint-staged:gen-tasks   fileList: []
  lint-staged:gen-tasks } +0ms
  lint-staged:make-cmd-tasks Creating listr tasks for commands [ 'prettier --write', 'npm run lint' ] +0ms
  lint-staged:task cmd: prettier +0ms
  lint-staged:task args: [ '--write' ] +0ms
  lint-staged:task execaOptions: { preferLocal: true, reject: false, shell: false } +0ms
  lint-staged:task cmd: npm +0ms
  lint-staged:task args: [ 'run', 'lint' ] +0ms
  lint-staged:task execaOptions: { preferLocal: true, reject: false, shell: false } +0ms
  lint-staged:make-cmd-tasks Creating listr tasks for commands 'prettier --write' +2ms
  lint-staged:task cmd: prettier +1ms
  lint-staged:task args: [ '--write' ] +0ms
  lint-staged:task execaOptions: { preferLocal: true, reject: false, shell: false } +0ms
  lint-staged:chunkFiles Resolved an argument string length of 58 characters from 1 files +7ms
  lint-staged:chunkFiles Creating 1 chunks for maxArgLength of 65536 +0ms
[STARTED] Preparing...
  lint-staged:git Backing up original state... +0ms
  lint-staged:git Getting partially staged files... +0ms
  lint-staged:git Running git command [ 'status', '-z' ] +15ms
  lint-staged:git Found partially staged files: [] +4ms
  lint-staged:git Backing up merge state... +1ms
  lint-staged:file Reading file `/home/maxie/Projects/ng-git-hooks/.git/MERGE_HEAD` +0ms
  lint-staged:file Reading file `/home/maxie/Projects/ng-git-hooks/.git/MERGE_MODE` +0ms
  lint-staged:file Reading file `/home/maxie/Projects/ng-git-hooks/.git/MERGE_MSG` +0ms
  lint-staged:file File `/home/maxie/Projects/ng-git-hooks/.git/MERGE_HEAD` doesn't exist, ignoring... +1ms
  lint-staged:file File `/home/maxie/Projects/ng-git-hooks/.git/MERGE_MODE` doesn't exist, ignoring... +0ms
  lint-staged:file File `/home/maxie/Projects/ng-git-hooks/.git/MERGE_MSG` doesn't exist, ignoring... +0ms
  lint-staged:git Done backing up merge state! +1ms
  lint-staged:git Getting deleted files... +0ms
  lint-staged:git Running git command [ 'ls-files', '--deleted' ] +6ms
  lint-staged:git Found deleted files: [] +5ms
  lint-staged:git Running git command [ 'stash', 'create' ] +5ms
  lint-staged:git Running git command [
  'stash',
  'store',
  '--quiet',
  '--message',
  'lint-staged automatic backup',
  '85cecc1bdb737fa2a8702c405246999fe66e993d'
] +6ms
  lint-staged:git Done backing up original state! +11ms
[SUCCESS] Preparing...
[STARTED] Running tasks...
[STARTED] Running tasks for *.{ts,js}
[STARTED] Running tasks for *.{scss,html,json}
[SKIPPED] No staged files match *.{scss,html,json}
[STARTED] prettier --write
[SUCCESS] prettier --write
[STARTED] npm run lint
[FAILED] npm run lint [FAILED]
[FAILED] npm run lint [FAILED]
[SUCCESS] Running tasks...
[STARTED] Applying modifications...
[SKIPPED] Skipped because of errors from tasks.
[STARTED] Reverting to original state because of errors...
  lint-staged:git Restoring original state... +965ms
  lint-staged:git Running git command [ 'reset', '--hard', 'HEAD' ] +970ms
  lint-staged:git Running git command [ 'stash', 'list' ] +5ms
  lint-staged:git Running git command [ 'stash', 'apply', '--quiet', '--index', 'refs/stash@{0}' ] +5ms
  lint-staged:git Restoring merge state... +22ms
  lint-staged:git Done restoring merge state! +0ms
  lint-staged:file Removing file `/home/maxie/Projects/ng-git-hooks/.git/lint-staged_unstaged.patch` +1s
  lint-staged:file File `/home/maxie/Projects/ng-git-hooks/.git/lint-staged_unstaged.patch` doesn't exist, ignoring... +1ms
  lint-staged:git Done restoring original state! +1ms
[SUCCESS] Reverting to original state because of errors...
[STARTED] Cleaning up...
  lint-staged:git Dropping backup stash... +0ms
  lint-staged:git Running git command [ 'stash', 'list' ] +13ms
  lint-staged:git Running git command [ 'stash', 'drop', '--quiet', 'refs/stash@{0}' ] +4ms
  lint-staged:git Done dropping backup stash! +10ms
[SUCCESS] Cleaning up...

✖ npm run lint:
An unhandled exception occurred: Project '/home/maxie/Projects/ng-git-hooks/src/app/app.component.ts' does not exist.
See "/tmp/ng-TUhhkl/angular-errors.log" for further details.
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR<EMAIL_ADDRESS>lint: `ng lint "/home/maxie/Projects/ng-git-hooks/src/app/app.component.ts"`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>lint script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/maxie/.npm/_logs/2021-02-12T21_11_30_310Z-debug.log

><EMAIL_ADDRESS>lint /home/maxie/Projects/ng-git-hooks
> ng lint "/home/maxie/Projects/ng-git-hooks/src/app/app.component.ts"

Environment

OS: ArchLinux
Node.js: v14.11.0
lint-staged: 10.5.4

I have the same issue.

As your error is coming from one of your scripts, I’m not sure if it’s related to lint-staged.
✖ npm run lint:
An unhandled exception occurred: Project '/home/maxie/Projects/ng-git-hooks/src/app/app.component.ts' does not exist.
See "/tmp/ng-TUhhkl/angular-errors.log" for further details.
npm ERR! code ELIFECYCLE

@okonet You're possibly right, running npm run lint leads to the following output:
> ng lint

TSLint's support is discontinued and we're deprecating its support in Angular CLI.
To opt-in using the community driven ESLint builder, see: https://github.com/angular-eslint/angular-eslint#migrating-an-angular-cli-project-from-codelyzer-and-tslint.
Linting "ng-git-hooks"...
/home/maxie/Projects/ng-git-hooks/src/app/app.component.ts:3:19
ERROR: 3:19  quotemark   " should be '
ERROR: 3:28  quotemark   " should be '
ERROR: 3:37  quotemark   " should be '
ERROR: 3:42  quotemark   " should be '
ERROR: 3:73  whitespace  missing whitespace
ERROR: 3:74  semicolon   Missing semicolon

Lint errors found in the listed files.

It may well be a husky error.
@wadeV12 Do you get the same error using<EMAIL_ADDRESS>

I have the same issue, anyone figure out a solution?

@gleisonkz I tried two (well one that actually uses lint-staged), the first one running<EMAIL_ADDRESS>and pretty-quick (so no involvement of lint-staged) and one using<EMAIL_ADDRESS>and<EMAIL_ADDRESS>although that required having the hooks as files in the .huskyrc folder following https://oscarmarion.dev/articles/husky-git-hooks.
I didn't get anything working the Husky@4 way.

Also I noticed you’re having npm run lint which is probably linting all files and not taking advantage of lint-staged. Something worth checking.

@okonet Good point, it only mentions files that were actually staged so I would think it's not that 🤔.

@gleisonkz I tried two (well one that actually uses lint-staged), the first one running<EMAIL_ADDRESS>and pretty-quick (so no involvement of lint-staged) and one using<EMAIL_ADDRESS>and<EMAIL_ADDRESS>although that required having the hooks as files in the .huskyrc folder following https://oscarmarion.dev/articles/husky-git-hooks.
I didn't get anything working the Husky@4 way.

I tried to use this setup but lint-staged is not getting triggered when I commit. Unfortunately, The only way I get it working was by linting all files.

@gleisonkz Were you running on the same versions and using npx?

So I have absolutely the same issue as @Berkmann18  (on macos 11.2.3).
for linting only it seems...
this version executes ng lint and errors
...
  "lint-staged": {
      "*.ts": [
          "ng lint"
      ],
      "*{.ts,.html,.scss,.json,.js}": [
          "npm run prettier:verify"
      ]
  },
...

the error:
✖ ng lint:
An unhandled exception occurred: Project '/xxx/xxxx.ts' does not exist.
See "/xxx/angular-errors.log" for further details.

this version doesn't execute ng lint - [SKIPPED] No staged files match *{.ts}
...
  "lint-staged": {
      "*{.ts}": [
          "ng lint"
      ],
      "*{.ts,.html,.scss,.json,.js}": [
          "npm run prettier:verify"
      ]
  },
...

@jose-barata I believe *.{ts} doesn't work as it only contains a single value. It seems to be feature of https://github.com/micromatch/braces
❯ node -e "console.log(require('braces')('{x,y}', { expand:true }))"
[ 'x', 'y' ]

❯ node -e "console.log(require('braces')('{x}', { expand:true }))"
[ '{x}' ]

It seems that lint-staged doesn't play very well with angular and ng lint (I think that's the specific and underlying issue).
Might help some people (I took ideas out of it) - https://github.com/okonet/lint-staged/issues/547
As for me I'm using as of time of writting (if it matters):
angular 11.2.10
husky 6.0.0
lint-staged 10.5.4
macos 11.2.3
In my particular case, I migrated to eslint (since tslint was deprecated). So I thought about running eslint directly instead of running eslint through ng lint
I managed to fix all issues with:
My husky pre-commit command
npx lint-staged --config lint-staged.config.js
lint-staged.config.js
module.exports = {
    'src/**/*.ts': (filesPath) => {
        return [`node_modules/.bin/eslint -c .eslintrc.json ${filesPath.join(' ')}`];
    },
    'projects/design/**/*.ts': (filesPath) => {
        return [`node_modules/.bin/eslint -c projects/design/.eslintrc.json  ${filesPath.join(' ')}`];
    },
    '*{.ts,.html,.scss,.json,.js}': ['npm run prettier:verify'],
};

Note: I have a monorepo structure with  'src' and 'projects' folders both with their own eslint rules

@Berkmann18 and others who see "Project ... does not exist" with angular:
ng lint needs a project name, so try to use ng lint <YOUR_PROJECT_NAME>. Otherwise, ng lint tries to use the staged files returned by lint-staged as project name what will not work for obvious reasons.
Please note: This will probably only fix the "Project... does not exist" error, afterwards there are probably some more angular specific issues to consider, see @jose-barata 's comment and #547

@musicEnfanthen this seems like a good example to add to the readme! Could you open a PR, or provide an example config on how to use ng lint? Thanks!

I think ng lint should not be used with lint-stages anyways since it lints the whole project. Just add it to pre-commit

@iiroj Since this is quite specific to angular syntax, I am not sure if @okonet would like to see this included in the README of lint-staged. For example configs, please have a look at @jose-barata 's comment above and at different workarounds proposed in #547. (As @okonet pointed out, at the moment there is no real benefit of using ng lint within lint-staged pipeline.)

Works for me. It just seems to be a common issue, so maybe the README could state in the FAQ section that ng lint should be used directly in the pre-commit hook, and through lint-staged.

Any update on this? Is it possible to use lint-staged with ng-lint?
I’m still getting an error on angular 13

PR are welcome! Let's add a section to the FAQ that says ng lint should not be used through lint-staged, but directly in the git hook.
For now I'll close this ticket.

See PR https://github.com/okonet/lint-staged/pull/1113

Is it working now?. I am having the<EMAIL_ADDRESS>but facing the same error

Same here

It is possible but only if you use https://www.npmjs.com/package/ng-lint-staged
It's a real bummer and annoying that ng lint can't work with individual files, this is something they should fix to remove the  dependence on a third-party fix

@michahell I follow the steps in https://www.npmjs.com/package/ng-lint-staged but also doesn't work.
Any example please?

@michahell I follow the steps in https://www.npmjs.com/package/ng-lint-staged but also doesn't work. Any example please?

Can you provide sample code to re create the issue?

I tried to use like following code which has worked.
 "lint-staged": {
    "src/**/*.{ts,scss,html}": "npx eslint src"
  }

I found a solution which fits my flow. Instead of using lint-staged i added ng lint to the pre-commit hook.
If you would like to have strict checking and even avoid commiting changes which have lint-warnings you could provide the --max-warnings flag to the lint script.
package.json script:
"lint": "ng lint --max-warnings=0"
pre-commit hook:
npm run lint
This leads to aborting the commit if there are errors or warnings.

@thengstermanndev But this way you will lint whole project instead of only staged files.


Update list of developers in build.sbt

I normally keep the ex-devs for their credit ;)

oh of course @nevillelyh ! I was thinking it'd be best to have a clear sense of who to contact, I will re-add with some comments


Dragging functions in script editor move a script name

Godot version:
3.2 b9ee3f3
OS/device including version:
Ubuntu 19.04
Issue description:

Should this be fixed by not making the methods draggable or not changing the order of the scripts?

I think this should be fixed by not allowing methods to be dragged around, as they are sorted alphabetically anyway (AFAIK/S).


[Event Request] table 21 "Cust. Ledger Entry" - OnSetAmountToApplyAfterCalcRemainingAmount

Describe the request
Hello, can you please add a new Event OnSetAmountToApplyAfterCalcRemainingAmount in table 21 "Cust. Ledger Entry"?
    procedure SetAmountToApply(AppliesToDocNo: Code[20]; CustomerNo: Code[20])
    begin
        OnBeforeSetAmountToApply(Rec, AppliesToDocNo, CustomerNo);

        SetCurrentKey("Document No.");
        SetRange("Document No.", AppliesToDocNo);
        SetRange("Customer No.", CustomerNo);
        SetRange(Open, true);
        if FindFirst() then begin
            if "Amount to Apply" = 0 then begin
                CalcFields("Remaining Amount");
                OnSetAmountToApplyAfterCalcRemainingAmount(Rec);
                "Amount to Apply" := "Remaining Amount";
            end else
                "Amount to Apply" := 0;
            "Accepted Payment Tolerance" := 0;
            "Accepted Pmt. Disc. Tolerance" := false;
            CODEUNIT.Run(CODEUNIT::"Cust. Entry-Edit", Rec);
        end;
    end;

    [IntegrationEvent(false, false)]
    local procedure OnSetAmountToApplyAfterCalcRemainingAmount(var CustLedgerEntry: Record "Cust. Ledger Entry")
    begin
    end;

Additional context
We have additional values to calculate the Remaining Amount and need to recalculate it before being allocated and the record being modified.
Internal work item: AB#547364

Availability update: We will publish a fix for this issue in the next update for release 25.
Build ID to track: 26614.


Process bundled (zip) data upload

[ ] Create function to unpack zip file. Should iterate over folders recursively (process subfolders)
[ ] Parse csv files and import when valid
[ ] Extract meta data from video files and store videos

See Flowchart for design (for now not necessary)
Update Flowchart

Only for sensors that have metadata in .csv file
User uploads .zip file
For every file check if date is an actual date (if not throw exception)

Should be independent of folder structure

what seemed to work for the migration issues in the sensordata_sensordata database was deleting all the migration files (except the init file) in the sensordata app. (Watch the dependencies here)
Then I created a new migration file using 'python label_studio/manage.py makemigrations
That at first didnt work so I used the command
python label_studio/manage.py migrate sensordata zero
python label_studio/manage.py migrate
This did the trick


Pass module instance to node_helper

Hi
I am trying to pass module instance to node_helper using send notification methods but no notification get triggered
If I pass this.config everything works..Please let me know how to use require in module rather than node_helper

I don't really understand what you mean. Since this isn't a core bug report, I suggest you use the forum for developer support. http://magicmirror.builders.

I have tried forum also but there is no response from them .I  am trying following thing:
I am trying to pass module instance to node helper but in that scenario, no communication happens and node helper received notifications never gets triggered
Module:
this.sendSocketNotification(“CONFIG”, this);
Node helper:
socketNotificationReceived: function(notification, moduleInstance) {
if (notification === “CONFIG”) {
this.activateSonus(moduleInstance)
console.log(“Working notification system. Notification:”, notification, "payload: ", payload);
}
},

Nothing gets triggered while I send the instance. Also I needed some help in using require('sonus') kind of functionality in module . How to achieve it inmodule

You can't send a module instance to the node_helper. You can only send JSON objects,

Then how can make use of require packages in module

What do you mean with that? You can just use require in the node helper.

Please help me in getting this through as no one is responding on forum for a long time

No I want to use it in the module and not in node_helper. Can I make use of get scripts to get require functionality in modules

Yes, thats what the scripts are for. My best advice is to explain it a bit better on the forum. It's unclear what you want to do. Without a good explanation, no-one can help you. Please continue on the forum, since the GitHub issues are specifically for core-bugruports. Thanks!


generic hasher traits

@lazovicff Our rescue_prime hasher is implemented as a chip and our traits are for chipset. Should I convert it to chipset with empty config or is there any better way?

Use generic hasher in:

Transcript
Merkle Tree
Dynamic Sets


GH-40644: [Python] Allow passing a mapping of column names to rename_columns

Rationale for this change
See #40644
What changes are included in this PR?

Are these changes tested?
Yes.
Tests have been added.

Are there any user-facing changes?

GitHub Issue: #40644

@AlenkaF is there anything else I need to do here? I'm still a little unclear what the review process is.

There is nothing needed from you at the moment but I normally like another pair of 👀 before merging. The 16.0.0 release is in process at the moment so another review might not be done very fast but will work on getting this merged soon.

@judahrand could you address the last comment? Then I am happy to merge this PR =)

@judahrand could you address the last comment? Then I am happy to merge this PR =)

Test failure is: https://github.com/apache/arrow/issues/41149


error code -7 while creating costum dataset from lmdb

The only thing in the log is
libdc1394 error: Failed to initialize libdc1394
2016-09-08 05:02:13 [INFO ] Total entries: 13303

Doesn't show the dimensions.
I was able to load a different lmdb, prepared in a similar way.. tried sudo chmod -R 755, still no luck.
Loaded the lmdb in python to make sure I can read all the images:
lmdb_env = lmdb.open('all_bins_transformed_test')
lmdb_txn = lmdb_env.begin()
lmdb_cursor = lmdb_txn.cursor()
datum = caffe.proto.caffe_pb2.Datum()
i = 0
for key, value in lmdb_cursor:
    datum.ParseFromString(value)
    label = datum.label
    data = caffe.io.datum_to_array(datum)
    im = data.astype(np.uint8)
    im = np.transpose(im, (1, 2, 0)) # original (dim, col, row)
    assert(im.shape == (224,224,3))
    i+=1
    print "label ", label
    plt.imshow(im[:,:,::-1])
    plt.show()

print i

everything seems in order.. how can I get a better insight regarding the nature of this error?

Can you explain what you're doing a little more clearly? Are you trying to upload a prebuilt LMDB to DIGITS?

Yes, I have built 2 LMDBs, which consists of labels and images.
I have selected to create a new dataset of type "other" and added these LMDBs as the train images and validation images.
The validation LMDB seems to have been processed successfully, showing both the number of images and their dimensions.
But the train LMDB complains about an error with error code -7.. It shows the number of images in the LMDB correctly, but does not show the image width and height.

You can try using the script at tools/analyze_db.py directly to analyze your LMDBs. See if using those gives you any more information.

According to Linux's signal.h signal -7 is SIGBUS. Is your disk otherwise behaving correctly?


Swagger UI v3

Hi
I tried out flask-swagger with Swagger UI v3, it looks like there's some minor incompatibility issues.  Are there any plans to support v3, on a new fork.  I'd be happy to help.
The biggest issue appears to be the addition of the requestBody section in place of the in: body section.  Looking at the spec, I think after a cursory look everything else should be mostly compatible. famous last words :)
Thanks
Iain

The OpenAPI version moves to 3.0 for UI v3. There are some big changes between OpenAPI2.0 and 3.0. It is better to add an option in Flask-Swagger to let users to choose which version to use.

I made some small changes in my fork for Open API 3


Removing bottom tabbar from the login view

How does one remove the tab bar at the login view?. I have been reading the code from 20 minutes now, haven't been successful.

Removed it in src/navigation/auth.js
removed property {...AppConfig.navbarProps}


Question about EncNet

Hi, vamzimmer! I have read your paper and think your work is valuable. But I don't understand the EncNet in your paper completely: how the attention layer is applied to the classification network. Could you send me the code of the network(1941433687@qq.com)? Thank you.❤

Hi! The code is uploaded. You'll find the implementation of the attention layer in the file src/models/encoder3d.py. In our paper, we include it in the 3rd layer of the encoder/unet.


Add bst: insert, max, min

Codecov Report

Merging #2 (3dda207) into main (1014516) will decrease coverage by 9.63%.
The diff coverage is 74.19%.

@@             Coverage Diff             @@
##              main       #2      +/-   ##
===========================================
- Coverage   100.00%   90.36%   -9.64%
===========================================
  Files            4        5       +1
  Lines           52       83      +31
===========================================
+ Hits            52       75      +23
- Misses           0        4       +4
- Partials         0        4       +4

Impacted Files
Coverage Δ

sort/bubble_sort.go
100.00% <ø> (ø)

sort/insertion_sort.go
100.00% <ø> (ø)

sort/merge_sort.go
100.00% <ø> (ø)

sort/quick_sort.go
100.00% <ø> (ø)

tree/bst.go
74.19% <74.19%> (ø)

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 1014516...3dda207. Read the comment docs.


Fixes#4488

Related Issue
None
Fixes:  #4488
Description
The hovering of links was fixed in light and dark-modes. Also the hovering of subscribe button in the refund policy page was fixed in the dark-mode.

Type of PR

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

Screenshots / videos (if applicable)
https://github.com/user-attachments/assets/80b5080a-f265-4833-8c98-ef8ac41fd109
https://github.com/user-attachments/assets/dcdd94f5-a549-40c1-afaf-84baf99bb157
https://github.com/user-attachments/assets/70295b93-9097-45fb-a3ea-0d030588b5a8
Checklist:

[x] I have made this change from my own.
[ ] 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.
Please assign me level 2 on this issue.

there are branch conflicts . resolve them carefully .
also contributors page has been changed which isnt visible in ur deployment.

Branch conflict resolved. Please review and merge my PR

contributors page has been changed , make sure u link it correctly .


Dragonrage: Watch delmarpharma.com

Dragonrage requests the watch of the watch_keyword delmarpharma\.com. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

delmarpharma\.com has been seen in 1 true positive, 0 false positives, and 0 NAAs.

Approved by cigien in Charcoal HQ


[Issue] capacity bug

We should make sure that different capacities  (also not in dict may be passed)
cc: @ngastzepeda
https://github.com/ai4co/rl4co/blob/22497e468aee1de35e89bd0b04dcf4ea7fe71285/rl4co/envs/routing/cvrp.py#L239

Solved in latest release1


Provide ARM Linux version

When using Bazelisk on Ubuntu 20 running on aarch64, it downloads the x86-64 version of bazel which can't run there.
It should download a version for the proper architecture.

Nope, I was wrong. Sorry


slide effect not working in ionic 4.10.2

Bug Report
Ionic version:

[x] 4.x
Current behavior:

Expected behavior:

Steps to reproduce:

Related code:

**in arquive.ts**

  slideOpts= {
    effect: 'fade',
    loop: true,
    speed:1500,
  };

  slidesDidLoad(slides: IonSlides) {
    slides.startAutoplay();
  }

**in arquive.html**

<ion-slides #background (ionSlidesDidLoad)="slidesDidLoad(background)" [options]="slideOpts">
 <ion-slide class="welcome-slide">

Slide 1

  </ion-slide>

  <ion-slide style="background-color: blue">

Slide 2

  </ion-slide>

  <ion-slide style="background-color: red">

Slide 3

  </ion-slide>
</ion-slides>

Other information:

Ionic info:

Not working in ionic 4.10.2 slide effect

only show effect flip, not set out effect.

It's not working... I really hope they solve this issue asap... The fade effect on the sliders is much needed for my work.

Yes, ion-slides are kind of buggy, only custom effect is working... if you put 2 or more sliders on same page it act strange too, some can loop and others not.

ion-slides properties not working correctly.
Unable to change effects of slides.

Same issue here... None of the effects in the swiper API works at all ("slide", "fade", "cube", "coverflow" or "flip"). The only one that works is "slide" which is the default one.

I have same issue.Will this issue be fixed in plan?

I'm finding something is calling toString on the options object before it is passed to swiper.
From normalizeOptions:

@liamdebeasi Is this a bug?  I need this function so much.
.Will this issue be fixed in plan?
Thanks for reply!

@thiagomatrix  Have you resolve this issue?

Hi there,
We have a PR currently in review that will bring more effects to ion-slides (including fade). https://github.com/ionic-team/ionic/pull/16616
Our plan is to get this into the next release of Ionic. Thanks for your patience!

Don't fixed on the next release (4.1.2)

Hi there,
We have not merged this PR in yet. The team is investigating how to properly integrate these changes into the framework. I will post here when it gets merged in.
Thanks!

look forward to your good news!

good job thanks so much!

Hi everyone,
After some discussion with the team, we have decided to go a different route with the swiper animation plugins. Instead of adding the additional animations directly into the framework, we have decided to expose the event handlers that swiper provides. This has a few benefits:

Ionic users do not need to include the swiper animations in their bundle if they aren't using it.
Users can still incorporate the flip, fade, cube, and coverflow effects. We will provide instructions on how to do so in the Ionic Docs.
Users can also develop and integrate their own custom animations.

I have created a PR for this here: https://github.com/ionic-team/ionic/pull/17959 which will be merged instead of #16616. Any feedback on this PR would be greatly appreciated!
Thanks!

@liamdebeasi  thank you very much for updating us. Looking forward to its release!! Good luck.

Looking forward to the release!

Hi everyone,
I have merged https://github.com/ionic-team/ionic/pull/17959, and it will be in the next release of Ionic. I have published a nightly build if anyone would like to test it out and provide feedback. (npm i @ionic/angular@dev)
See https://github.com/ionic-team/ionic/blob/master/core/src/components/slides/readme.md for instructions on how to use.
Thanks!

I have upgrade to Ionic@v4.3,but I can't apply effect property.
slideOpts = {         effect: 'cube',         initialSlide: 0,         speed: 300,         direction: 'horizontal',         loop: true,     };

I'm finding something is calling toString on the options object before it is passed to swiper.
From normalizeOptions:

Looks like react-dom is trying to convert it to string and leave it as a regular attribute, as I can work around it by reffing:
handleSlidesRef = (ref: any) => ref && (ref.options = { initialSlide: 3, freeMode: true });

This comment is overlooked - options does not even seem to be passed to the slider in react as of now.

Hi @microwin168,
Please follow all of the usage guide when applying animations: https://github.com/ionic-team/ionic/blob/master/core/src/components/slides/readme.md#cube
You will need to make sure the beforeInit, setTranslate, and setTransition properties are all set.

Hi @stilren,
The issue you are describing does not seem to be related to the slides effect. Please open a separate issue. Also make sure you note you are using React.
Thanks!


Parsing a file that has string interpolation causes InvariantFailedException

I have a file with the following content:
package helloWorld

object Greeter {
  def sayHello(name: String) = s"Hello, $name"
}

Callling file.parse[Source] causes the following exception:
org.scalameta.invariants.InvariantFailedException: invariant failed:
when verifying ScalametaTokenizer.this.input.chars.apply(curr.endOffset.+(1)).==('\"')
found that ScalametaTokenizer.this.input.chars.apply(curr.endOffset.+(1)) is not equal to '\"'
where ScalametaTokenizer = scala.meta.internal.tokenizers.ScalametaTokenizer@117e2797
	at org.scalameta.invariants.InvariantFailedException$.raise(scalameta.sc:11)
	at scala.meta.internal.tokenizers.ScalametaTokenizer.emitContents$1(scalameta.sc:218)
	at scala.meta.internal.tokenizers.ScalametaTokenizer.loop$1(scalameta.sc:227)
	at scala.meta.internal.tokenizers.ScalametaTokenizer.uncachedTokenize(scalameta.sc:272)
	at scala.meta.internal.tokenizers.ScalametaTokenizer.tokenize(scalameta.sc:27)
	at scala.meta.internal.tokenizers.ScalametaTokenizer$$anon$2.apply(scalameta.sc:283)
	at scala.meta.tokenizers.Api$XtensionTokenizeDialectInput.tokenize(scalameta.sc:17)
	at scala.meta.tokenizers.Api$XtensionTokenizeInputLike.tokenize(scalameta.sc:6)
	at scala.meta.internal.parsers.ScalametaParser.scannerTokens$lzycompute(scalameta.sc:179)
	at scala.meta.internal.parsers.ScalametaParser.scannerTokens(scalameta.sc:179)
	at scala.meta.internal.parsers.ScalametaParser.<init>(scalameta.sc:136)
	at scala.meta.internal.parsers.ScalametaParser$$anon$189.apply(scalameta.sc:3441)
	at scala.meta.parsers.Api$XtensionParseDialectInput.parse(scalameta.sc:17)
	at scala.meta.parsers.Api$XtensionParseInputLike.parse(scalameta.sc:6)

Putting the content in a string and then parsing it works fine. Putting the interpolated string in { } brackets also doesn't cause an exception.
As I am parsing files that I don't have control over, this is blocking for me unless there's a workaround (or I'm doing something wrong).
Tried on Scalameta version 3.3.1 and 4.0.0-M2
Scala version 2.12.6
Environment: Windows

Thanks for reporting! This error message looks familiar, seems like a duplicate of https://github.com/scalameta/scalameta/issues/1177. What happens if you .replace("\r\n", "\n") before parsing?

Yeah, that does seem to fix it. Still, it seems like something Scalameta should be able to handle. Or at the very least provide a better exception message. Is fixing this on the planning? If not, I wouldn't mind taking a look at it if you could point me in the right direction

Good to know there is a workaround. This is absolutely a bug that should be fixed, I would love your help if you are interested in taking a stab at this :)
A good place to start would be to reproduce the bug in TokenizerSuite https://github.com/scalameta/scalameta/blob/6a0d5a289db8fea4fd38a2a3e60a61b0f86f8b14/tests/shared/src/test/scala/scala/meta/tests/tokenizers/TokenizerSuite.scala#L854-L857
Beware, the tokenizer code is quite hairy, especially around interpolators. The fix will likely either touch LegacyScanner (which is an adapted version of the scalac scanner) https://github.com/scalameta/scalameta/blob/6a0d5a289db8fea4fd38a2a3e60a61b0f86f8b14/scalameta/tokenizers/shared/src/main/scala/scala/meta/internal/tokenizers/LegacyScanner.scala or ScalametaTokenizer (converts scalac TokenData into high-level scala.meta.Token) https://github.com/scalameta/scalameta/blob/6a0d5a289db8fea4fd38a2a3e60a61b0f86f8b14/scalameta/tokenizers/shared/src/main/scala/scala/meta/internal/tokenizers/ScalametaTokenizer.scala
Let me know if you have any questions!
I'll close this ticket as a duplicate of #1177


fix(release): Fix latest tag, to point to alpine image

Signed-off-by: grzesuav<EMAIL_ADDRESS>

:tada: This PR is included in version 2.2.3 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Windows release artifacts fail to upload since v5.1.3

The release builds are no longer including the pre-built binaries for Windows (since v5.1.3) due to a breaking change in the softprops/action-gh-release github action used.
Release

  Run softprops/action-gh-release@v1
    with:
      files: D:\a\jql\jql\jql-v5.1.3-x86_64-pc-windows-msvc.zip
    D:\a\jql\jql\jql-v5.1.3-x86_64-pc-windows-msvc.zip.sha256

      token: ***
    env:
      ASSET_PATH: D:\a\jql\jql\jql-v5.1.3-x86_64-pc-windows-msvc.zip
      CHECKSUM_PATH: D:\a\jql\jql\jql-v5.1.3-x86_64-pc-windows-msvc.zip.sha256
      GITHUB_TOKEN: ***
  🤔 Pattern 'D:\a\jql\jql\jql-v5.1.3-x86_64-pc-windows-msvc.zip' does not match any files.
  🤔 Pattern 'D:\a\jql\jql\jql-v5.1.3-x86_64-pc-windows-msvc.zip.sha256' does not match any files.
  🤔 D:\a\jql\jql\jql-v5.1.3-x86_64-pc-windows-msvc.zip,D:\a\jql\jql\jql-v5.1.3-x86_64-pc-windows-msvc.zip.sha256 not include valid file.
  🎉 Release ready at https://github.com/yamafaktory/jql/releases/tag/v5.1.3

(full release workflow log)
Sometime mid November, softprops/action-gh-release@v1 updated the node-glob dependency to 8.0, which changed the behavior of \ to only be an escape character rather than a path separator.
More info here:
https://github.com/softprops/action-gh-release/issues/280
I've tried 2 different workarounds to fix Windows binaries:

pin version of softprops/action-gh-release to v0.1.13 instead of v1:

  uses<EMAIL_ADDRESS>
until original issue will be fixed;
(tested here)

switch to forward slashes in PATH-variables in Windows case:

Run softprops/action-gh-release@v1
  with:
    files: D:/a/jql/jql/jql-v6.0.7-x86_64-pc-windows-msvc.zip
  D:/a/jql/jql/jql-v6.0.7-x86_64-pc-windows-msvc.zip.sha256

    token: ***
  env:
    ASSET_PATH: D:/a/jql/jql/jql-v6.0.7-x86_64-pc-windows-msvc.zip
    CHECKSUM_PATH: D:/a/jql/jql/jql-v6.0.7-x86_64-pc-windows-msvc.zip.sha256
    GITHUB_TOKEN: ***
⬆ Uploading jql-v6.0.7-x86_64-pc-windows-msvc.zip...
⬆ Uploading jql-v6.0.7-x86_64-pc-windows-msvc.zip.sha256...
🎉 Release ready at https://github.com/aliesbelik/jql/releases/tag/jql-v6.0.7

(tested here)
and both completed successfully.
Just in case you are not planning to discount Windows binary option.  :fearful:

@aliesbelik thanks for tte feedback !
I definitely don't want to stop supporting Windows - even though I'm not using it.
The second approach looks good to me, would you mind creating a PR?

Sure, happy to contribute.


Model exported to keras gets very bad evalution score

I already posted my issue in the gitter autokeras lobby and on stackoverflow but I try it here again. Link to detailed version : https://stackoverflow.com/questions/53229283/autokeras-exported-model-performs-not-as-expected
Keras version: 2.2.2
Tensorflow version: 1.12.0
So I train with a dataset of (n, 50, 50, 3) images and get models with high accuracy(0.99) and low loss(0.02). I followed the tutorial on https://autokeras.com/start/.
After final_fit I export my model with
clf.load_searcher().load_best_model().produce_keras_model().save('my_model.h5')
and load it in keras but I get very bad evaluation scores. Accuracy is at 0.12 and loss at 5.1.
Can anyone help me? I guess it is just some command I need to use before exporting or after loading to get my model working in keras.

I believe this has to do with data transformation issues. Try using export_autokeras_model instead.

You mean clf.export_autokeras_model?
How can I transform this to a keras model after the export?
I can't load the autokeras model.
Unfortunately there is no alternative to
clf.load_searcher().load_best_model().produce_keras_model().save('my_model.h5')
with produce autokeras model.


LicenseExpressionParser: Allow "+" as part of license-refs

license-refs as defined in Appendix IV of the SPDX 2.0 specification
should be allowed to contain "+", e.g. to write "LicenseRef-LGPL-3.0+".
Currently, LicenseExpressionParser interprets "+" in license-refs as
Operator.OR_LATER even if they are no compound-expression. Fix this by
checking the compound-expression for a license-ref and do not take "+" as
a token in that case.

@goneall My contributions are done under the terms of the Apache License, version 2.0.

Closing this as it needs more work (like checking the SPDX version) but I currently have no time or strong interest to work on that.


use noto font in StickyHeaderItemDecoration

Issue

close #638

Overview (Required)

apply Noto font to Speaker Sticky label

Links

nothing

Screenshot

Before
After

LGTM 👍

🎉


Issue48

The PR has the following changes and deletions:

Clears the consoles folder and closes #48
Fixes README.md with the new release dates and development plan.
Fixes a misspell in README.md
Adds a new use case in the PRD.md

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


iam_role_policies are detached before the autoscaling group is deleted

Description
Given an autoscaling group that defines lifecycle hooks and attaches a role policy of AutoScalingFullAccess...
  initial_lifecycle_hooks = [
    {
      name                 = "StartupLifeCycleHook"
      lifecycle_transition = "autoscaling:EC2_INSTANCE_LAUNCHING"
    },
    {
      name                 = "TerminationLifeCycleHook"
      lifecycle_transition = "autoscaling:EC2_INSTANCE_TERMINATING"
    }
  ]

  iam_role_policies = {
    AmazonSSMManagedInstanceCore = "arn:aws:iam::aws:policy/AmazonSSMManagedInstanceCore"
    AWSAutoScalingFullAccess     = "arn:aws:iam::aws:policy/AutoScalingFullAccess"
  }

If the terraform is destroyed, or if an update triggers a create-before-destroy on the autoscaling group, terraform will destroy the aws_iam_role_policy_attachments before the aws_autoscaling_group has been destroyed.
The aws_autoscaling_group will be waiting for the EC2_INSTANCE_TERMINATING lifecycle hook to finish on each instance to proceed, and if the instances process their own lifecycle hooks to shut down, they will need an attached instance roke policy with "autoscaling:CompleteLifecycleAction".
This introduces a race condition where Instances have their instance role policies stripped before the instances can finish any kind of cleanup.

[x ] ✋ I have searched the open/closed issues and my issue is not listed.

Versions

Module version [Required]: v5.50.0

Terraform version:

OpenTofu v1.7.1
on darwin_amd64
+ provider registry.opentofu.org/hashicorp/aws v5.50.0
+ provider registry.opentofu.org/hashicorp/template v2.2.0

Reproduction Code [Required]
module "managers" {
  count  = var.create ? 1 : 0
  source = "terraform-aws-modules/autoscaling/aws"

  name            = local.manager_cluster_name
  use_name_prefix = false

  min_size         = 3
  max_size         = 5
  desired_capacity = 3
  #  wait_for_capacity_timeout = 0
  #  health_check_type         = "EC2"
  vpc_zone_identifier = var.subnet_ids
  security_groups     = var.security_groups
  target_group_arns   = var.target_group_arns

  initial_lifecycle_hooks = [
    {
      name                 = "StartupLifeCycleHook"
      default_result       = "CONTINUE"
      heartbeat_timeout    = 300
      lifecycle_transition = "autoscaling:EC2_INSTANCE_LAUNCHING"
    },
    {
      name                 = "TerminationLifeCycleHook"
      default_result       = "CONTINUE"
      heartbeat_timeout    = 300
      lifecycle_transition = "autoscaling:EC2_INSTANCE_TERMINATING"
    }
  ]

  # Launch template
  launch_template_name            = "${var.cluster_name}-manager"
  launch_template_use_name_prefix = false
  launch_template_description     = "Swarm Manager Launch Template"
  update_default_version          = true

  image_id          = var.control_plane_ami
  instance_type     = var.control_plane_instance_type
  ebs_optimized     = true
  enable_monitoring = true

  create_iam_instance_profile = true
  iam_role_name               = "${var.cluster_name}-manager"
  iam_role_use_name_prefix    = false
  iam_role_path               = "/ec2/"
  iam_role_description        = "Allow Node to register with SSM"
  #  iam_role_tags = {
  #    CustomIamRole = "Yes"
  #  }

  iam_role_policies = {
    AmazonSSMManagedInstanceCore = "arn:aws:iam::aws:policy/AmazonSSMManagedInstanceCore"
    AWSAutoScalingFullAccess     = "arn:aws:iam::aws:policy/AutoScalingFullAccess"
  }

  user_data = data.template_cloudinit_config.manager.rendered
}

Steps to reproduce the behavior:

Deploy the autoscaling group
Change the name to force a create_before_destroy

Expected behavior
The Instances can react to the lifecycle hook (A bash script for example) and respond using the aws cli to CONTINUE the lifecyclehook
Actual behavior
The instances cannot CONTINUE the lifecycle hook with a role-or-policy does not exist error.

Thinking about it some more:
resource "aws_iam_role" "this" {
  name               = "my-role"
  assume_role_policy = ""
}

resource "aws_iam_role_policy_attachment" "this" {
  count      = 1
  policy_arn = "arn:aws:iam::aws:policy/AutoScalingFullAccess"
  role       = aws_iam_role.this.name
}

resource "aws_iam_instance_profile" "this" {
  name = "my-instance-profile"
  role = aws_iam_role.this.name
}

resource "aws_launch_template" "this" {
  iam_instance_profile {
    name = aws_iam_instance_profile.this.name
  }
  // This is needed to ensure the roles associated with the instance profile are attached before template instances need them.
  depends_on = [ aws_iam_role_policy_attachment.this ]
}

resource "aws_autoscaling_group" "this" {
  name     = "my-asg"
  max_size = 1
  min_size = 1
  launch_template {
    id = aws_launch_template.this.id
  }
}

Without the depends_on, there is a race condition - instances cannot depend on the policy attachments existing when the infrastructure is being created or destroyed.


Proctered MCQ Week 1

Self Grade 4.9/5
Review ticket with Crossover Score on Monday 4/25 in class

[x] Start review ticket with study plan and study reflection for week, due EOD Monday 4/18
Study Plan
[x] GH Indi Page with score and corrections
Score and corrections
[x] Finals-Quiz1 49/50 and corrections
Score and corrections
[x] Finals-Quiz2 48/50 and corrections
Score and corrections
[x] Create Task code/runtime and 1 min video are reviewed by another person, you may request Teacher review as time permit
Create Task Video/Code

Crossover Grade 4.9/5
Reasons for getting points: strong score from the proctored mcq quizzes with thorough corrections, quality create task wiki page and video for review
Reasons for losing points: -0.1 because the study plan is very vague, not specific about what days/times and what activities/topics to review
Review ticket with Crossover Score on Monday 4/25 in class

[x] Start review ticket with study plan and study reflection for week, due EOD Monday 4/18
Study Plan
[x] GH Indi Page with score and corrections
Score and corrections
[x] Finals-Quiz1 49/50 and corrections
Score and corrections
[x] Finals-Quiz2 48/50 and corrections
Score and corrections
[x] Create Task code/runtime and 1 min video are reviewed by another person, you may request Teacher review as time permit
Create Task Video/Code


Error about a missing using clause incorrectly suggests use of -rewrite to fix.

Compiler version
3.4.0
Minimized example
A code example is not highly relevant to this issue, but it has to do with using fastparse 3.0.2 with scalac 3.4.0. The message produced only occurs in 3.4.0 and does not occur in 3.3.1 or 3.3.3
I will try to build a reproduction case and attach it to this issue, but it could take some time to isolate.
If you want to reproduce faster than that, try compiling the "scala-3.4" branch of https://github.com/ossuminc/riddl after modifying the build to use scala 3.4.0. Just ask if you need help.
Output Error/Warning message
[error] 60 |    parseRule[Root](input, root(_), withVerboseFailures) {
[error]    |                           ^^^^
[error]    |                           Context bounds will map to context parameters.
[error]    |                           A `using` clause is needed to pass explicit arguments to them.
[error]    |                           This code can be rewritten automatically under -rewrite -source 3.4-migration.
>print scalacOptions
* -deprecation
* -feature
* -new-syntax
* -explain-types
* -Werror
* -pagewidth:120
* -rewrite
* -source
* 3.4-migration
* -explain

Why this Error/Warning was not helpful
The direction to use the -rewrite -source 3.4-migration option isn't applicable or helpful. As you can
see, both these options were provided to the compiler. It rewrote nothing. Furthermore, it is not clear
where this using clause should be placed.
Suggested improvements
A few ideas:

Drop the last line of the message since no attempt to rewrite the code is ever made.
If rewriting is an option, place the rewritten code in the error message
If rewriting is not an option, provide instructions on where/how to make the needed modifications

A test case that details both:

a working version with Scala 3.3.3 on commit @bb64512e
a failing version with Scala 3.4.0 on @baec8b7b
can be found in this repository:

https://github.com/reid-spencer/scala-3.4-19872

Here is a smaller example where Scala 3.4.1 gives this warning.
{
  def test[A : List] = true
  test(_)   // Same with test[Int](_) or whatever.
}

Is it exactly the same though?
In the other issue, it says that it compiles fine with "-source:future".
Using the code below and "-source:future", I get the error message:
Found:    (fastparse.ParsingRun[?]) ?=> fastparse.ParsingRun[Unit]
Required: fastparse.ParsingRun[?] => fastparse.ParsingRun[Unit]

import fastparse.*
import fastparse.NoWhitespace.*

@main def app: Unit =
  def foo[$: P]: P[Unit] = P("bar")
  def test(name: String): Parsed[Unit] =
    parse(name, foo)

Running the rewriting rule of 3.4, it adds a using just before the argument name which doesn't compile at all.
import fastparse.*
import fastparse.NoWhitespace.*

@main def app: Unit =
  def foo[$: P]: P[Unit] = P("bar")
  def test(name: String): Parsed[Unit] =
    parse(name, using foo)

Hello!
I also ran against this problem but I found a solution that I'm sharing here in case anyone else is still running up against it. I made it work by putting the using keyword right before the implicit argument that the parser definition requires, like:
parse("", foo(using _))


Command mentioned should be specified correctly with : or under ""

[Enter feedback here]
auditpol.exe /set /subcategory:"Application Generated" /failure:enable /success:enable
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 073ab477-ac4c-9951-9d50-9d979176cff1
Version Independent ID: 384cd6f7-2249-3f33-9b9e-1c6abeae69cb
Content: AD FS Troubleshooting - Auditing Events and Logging
Content Source: WindowsServerDocs/identity/ad-fs/troubleshooting/ad-fs-tshoot-logging.md
Product: windows-server
Technology: ad-fs
GitHub Login: @billmath
Microsoft Alias: billmath

#assign:xelu86

Thanks again for contacting Microsoft. Reviewed the documentation and verified that the command syntax is correct and was updated. #please-close


Fix encoding of DB2 credentials

Fixes #247

@pidoubleyou Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.

@pidoubleyou Thank you for signing the Contributor License Agreement!


Remove redundant closing spaces

ingress.md remove redundant closing spaces

Good clean up. But this is pretty trivial, so if you see anything else that can be cleaned up while you are at it, that would be great to include it in this PR.
/lgtm

also /lgtm

/assign @dipesh-rawat

@stmcginnis I found this by accident, and I'm not sure if this is the case with other documents.

/lgtm
Thanks!

/approve


refactor: Remove xmlToJson from program tests

Part of #99

$ npm test test/functional/ProgramCallFunctional.js

> ./node_modules/mocha/bin/mocha --timeout 3s "test/functional/ProgramCallFunctional.js"

  ProgramCall Functional Tests
    Test ProgramCall()
      ✓ calls QWCRSVAL program checks if it ran successfully using idb transport (1163ms)
      ✓ calls QWCRSVAL program checks if it ran successfully using rest transport (589ms)
      ✓ calls QWCRSVAL program checks if it ran successfully using ssh transport (728ms)
      ✓ calls QWCRSVAL program checks if it ran successfully using odbc transport (475ms)
    Test ProgramCall()
      ✓ calls QWCRSVAL program and returns arbitrarily named parameter using idb transport (1219ms)
      ✓ calls QWCRSVAL program and returns arbitrarily named parameter using rest transport (150ms)
      ✓ calls QWCRSVAL program and returns arbitrarily named parameter using ssh transport (688ms)
      ✓ calls QWCRSVAL program and returns arbitrarily named parameter using odbc transport (175ms)
    Test ProgramCall()
      - Should be successful with addReturn arbitrary attribute specified using using idb transport
      - Should be successful with addReturn arbitrary attribute specified using using rest transport
      - Should be successful with addReturn arbitrary attribute specified using using ssh transport
      - Should be successful with addReturn arbitrary attribute specified using using odbc transport

  8 passing (5s)
  4 pending

$ npm test test/functional/deprecated/iPgmFunctional.js

> ./node_modules/mocha/bin/mocha --timeout 3s "test/functional/deprecated/iPgmFunctional.js"

  iPgm Functional Tests
    Test iPgm()
iPgm deprecated As of v1.0, class 'iPgm' is deprecated. Please use 'ProgramCall' instead. test/functional/deprecated/iPgmFunctional.js:46:25
iPgm deprecated As of v1.0, 'iPgm.addParam()' is deprecated. Please use 'ProgramCall.addParam()' instead. test/functional/deprecated/iPgmFunctional.js:58:17
iPgm deprecated As of v1.0, 'iPgm.addParam()' is deprecated. Please use 'ProgramCall.addParam()' instead. test/functional/deprecated/iPgmFunctional.js:59:17
iPgm deprecated As of v1.0, 'iPgm.addParam()' is deprecated. Please use 'ProgramCall.addParam()' instead. test/functional/deprecated/iPgmFunctional.js:60:17
iPgm deprecated As of v1.0, 'iPgm.addParam()' is deprecated. Please use 'ProgramCall.addParam()' instead. test/functional/deprecated/iPgmFunctional.js:61:17
iPgm deprecated As of v1.0, 'iPgm.addParam()' is deprecated. Please use 'ProgramCall.addParam()' instead. test/functional/deprecated/iPgmFunctional.js:62:17
iConn deprecated As of v1.0, 'iConn.add()' is deprecated. Please use 'Connection.add()' instead test/functional/deprecated/iPgmFunctional.js:63:20
iPgm deprecated As of v1.0, 'iPgm.toXML()' is deprecated. Please use 'ProgramCall.toXML()' instead. lib/Connection.js:113:33
iConn deprecated As of v1.0, 'iConn.run()' is deprecated. Please use 'Connection.run()' instead test/functional/deprecated/iPgmFunctional.js:64:20
      ✓ calls QWCRSVAL program checks if it ran successfully using idb transport (252ms)
      ✓ calls QWCRSVAL program checks if it ran successfully using rest transport (84ms)
    Test iPgm()
iPgm deprecated As of v1.0, class 'iPgm' is deprecated. Please use 'ProgramCall' instead. test/functional/deprecated/iPgmFunctional.js:81:25
iPgm deprecated As of v1.0, 'iPgm.addParam()' is deprecated. Please use 'ProgramCall.addParam()' instead. test/functional/deprecated/iPgmFunctional.js:93:17
iPgm deprecated As of v1.0, 'iPgm.addParam()' is deprecated. Please use 'ProgramCall.addParam()' instead. test/functional/deprecated/iPgmFunctional.js:94:17
iPgm deprecated As of v1.0, 'iPgm.addParam()' is deprecated. Please use 'ProgramCall.addParam()' instead. test/functional/deprecated/iPgmFunctional.js:95:17
iPgm deprecated As of v1.0, 'iPgm.addParam()' is deprecated. Please use 'ProgramCall.addParam()' instead. test/functional/deprecated/iPgmFunctional.js:96:17
iPgm deprecated As of v1.0, 'iPgm.addParam()' is deprecated. Please use 'ProgramCall.addParam()' instead. test/functional/deprecated/iPgmFunctional.js:99:17
iConn deprecated As of v1.0, 'iConn.add()' is deprecated. Please use 'Connection.add()' instead test/functional/deprecated/iPgmFunctional.js:100:20
iConn deprecated As of v1.0, 'iConn.run()' is deprecated. Please use 'Connection.run()' instead test/functional/deprecated/iPgmFunctional.js:101:20
      ✓ calls QWCRSVAL program and returns arbitrarily named parameter using idb transport (136ms)
      ✓ calls QWCRSVAL program and returns arbitrarily named parameter using rest transport (78ms)
    Test iPgm()
      - Should be successful with addReturn arbitrary attribute specified using using idb transport
      - Should be successful with addReturn arbitrary attribute specified using using rest transport

  4 passing (561ms)
  2 pending


Links to github/coding-standards-help

Hi, it is a minor doc issue, not directly related to queries, false positives/negatives, or security vulnerabilities. I try opening a blank issue.
The links to https://github.com/github/codeql-coding-standards-help in the development handbook lead to 404. There are also a couple more references to it in a workflow file and in a generate_rules script.

Thanks for the report. I'm afraid the github/codeql-coding-standards-help repository is not open source. This is because it contains contents from third party coding standards where we do not have the intellectual property rights to open source it, hence the separate repository.


Add CLI option to control safe mode

The default safe mode when using the CLI is unsafe, matching the behavior of the asciidoctor CLI. To be consistent with the asciidoctor CLI, add a CLI option named -S to control the safe mode. As a convenience, also add a CLI option named --safe to set the safe mode to safe. When the safe mode is safe (or above), files outside the docdir cannot be included.

The secure option doesn't make any sense as it disallows includes, which defeats the main purpose of this tool.

I think we're just going to start with the -S option to keep things simple.


Failure on atomic add operation inside dppl.kernel

Numba fails with  an error for the following kernel:
@dppl.kernel
def l2_distance_kernel(a, b, c):
i = dppl.get_global_id(0)
sub = a[i] - b[i]
sq = sub ** 2
dppl.atomic.add(c,0,sq)

Error: "numba.core.errors.LoweringError: Type of #3 arg mismatch: i64 addrspace(4)* != i64*"

@reazulhoque It works with integer elements. But, does not work with float64 elements. Try below example.
import numpy as np
from numba import dppl
import dpctl

@dppl.kernel
def l2_distance_kernel(a, b, c):
    i = dppl.get_global_id(0)
    sub = a[i] - b[i]
    sq = sub ** 2
    dppl.atomic.add(c,0,sq)

a = np.random.random((10,1))
b = np.random.random((10,1))
c = 0.0

with dpctl.device_context("opencl:gpu") as gpu_queue:
    l2_distance_kernel[10, dppl.DEFAULT_LOCAL_SIZE](a, b, c)

@adarshyoga The issus is not with the precision. The issue is with how the program is written above.
a = np.random.random((10,1)) we are creating a 2D array.

The indexing inside the kernel should be 2d, so sub = a[i] - b[i]  --> sub = a[i][0] - b[i][0]
Global size should also reflect that, l2_distance_kernel[10, dppl.DEFAULT_LOCAL_SIZE] --> l2_distance_kernel[(10, 1), dppl.DEFAULT_LOCAL_SIZE]
c = 0.0 should be an array, scalars are passed by value to each kernel and the atomic operation will have no effect.

or we should create 1D array if that is how it is being treated in the kernel and the program should look like this:
import numpy as np
import numba_dppy as dppy
import dpctl

@dppy.kernel
def l2_distance_kernel(a, b, c):
    i = dppy.get_global_id(0)
    sub = a[i] - b[i]
    sq = sub ** 2
    dppy.atomic.add(c,0,sq)

a = np.random.random(10)
b = np.random.random(10)
c = np.asarray([0])

with dpctl.device_context("opencl:gpu") as gpu_queue:
    l2_distance_kernel[10, dppy.DEFAULT_LOCAL_SIZE](a, b, c)

Please confirm what I am suggesting is correct and please close the issue if you think it is resolved.


Add a Library Grid View

It'd be good to have a grid view where the games are organized in a grid with their covers as the focal point, and then data (maybe in a flyover?) that shows up when you hover. This would be an alternate view that could be used instead of the library table. The table would still be available, of course.
Steam:

GOG Galaxy:

AniList:


Add Knuth's Portable Random Number Generator to lib.

Add the current release of Knuth's Portable Random Number Generator to lib. This includes four files.
lib/knuth-portable-200211-release-c-double.c
lib/knuth-portable-201208-release-fortran-double.f
lib/knuth-portable-201909-release-c-int.c
lib/knuth-portable-201909-release-fortran-integer.f
Knuth, Donald E. N.D. “Downloadable Programs and Data.” Personal Home Page. Donald E. Knuth Professor Emeritus of The Art of Computer Programming. N.D. https://www-cs-faculty.stanford.edu/~knuth/programs.html.

Done.


MudTable: Preserve checked state when virtualized and MultiSelection="true"

Description

fixes #5190
Really simple fix that makes MudTr preserve checked state when virtualized.
How Has This Been Tested?

unit
Types of changes

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

[x] The PR is submitted to the correct branch (dev).
[x] My code follows the code style of this project.
[x] I've added relevant tests.

@jgoday Thanks a lot, Look good. And you wrote a test for the bug ❤
@henon Downloaded PR and ran tests without fix and fails.  Then added fix back in and tests passed.
I would say its good to merge as long as there are no performance issues with Contains on larger datasets.

Awesome. Thanks for the fix @jgoday, and many thanks for the thorough review @mikes-gh !

@henon Doesn't this clash with how the rows are set in the TableContext? https://github.com/MudBlazor/MudBlazor/blob/dev/src/MudBlazor/Components/Table/TableContext.cs#L52

I really can't say. I wrote the first version of MudTable but too much has changed over time, I lost the overview. Maybe @jgoday can answer.

@henon Doesn't this clash with how the rows are set in the TableContext? https://github.com/MudBlazor/MudBlazor/blob/dev/src/MudBlazor/Components/Table/TableContext.cs#L61
Or is this not an issue strictly because virtualization is involved?

Main problem (maybe I'm wrong) seems to be cause Virtualization does not fire MudTable->OnAfterRenderAsync so no UpdateRowCheckBoxes is called between page changes.
It makes sense?

@henon @Mr-Technician @jgoday I removed all calls to UpdateRowCheckBoxes and the non-virtualized examples still seem to work.  I may have missed something though.  Perhaps this function is no longer needed.

It is possible that @jgoday 's fix made UpdateRowCheckBoxes obsolete?

It is possible that @jgoday 's fix made UpdateRowCheckBoxes obsolete?

It seems that UpdateRowCheckBoxes has more responsabilities, including GroupRows, Header/Footer checkboxes

@jgoday Yes, which is why I wonder if it would be better to ensure virtualization properly calls UpdateRowCheckBoxes instead of setting it from MudTable.razor.

https://stackoverflow.com/questions/65130220/blazor-virtualized-checkbox-list

@Mr-Technician I think you are right.  Is the issue that IsChecked is not bound to any item data.  The checked UI state is only available by iterating the items and comparing them to the selected Items Collectio?


HfHubHTTPError: 500 Server Error: Internal Server Error

Describe the bug
I have been encountering this error frequently while running model training. Despite its high frequency (multiple times a day), I cannot consistently replicate the error, as it often resolves after additional attempts and then reappears randomly with a different Parquet file in the same dataset or a different dataset.
I am unsure whether this issue is related to how we created and/or uploaded the dataset to HF or if it stems from HF’s internal servers.
Any insights and assistance with this issue would be greatly appreciated.
[rank0]: Traceback (most recent call last):
[rank0]:   File "/root/.cache/pypoetry/virtualenvs/ultravox-XehuBpN1-py3.11/lib/python3.11/site-packages/torch/utils/data/_utils/worker.py", line 309, in _worker_loop
[rank0]:     data = fetcher.fetch(index)  # type: ignore[possibly-undefined]
[rank0]:            ^^^^^^^^^^^^^^^^^^^^
[rank0]:   File "/root/.cache/pypoetry/virtualenvs/ultravox-XehuBpN1-py3.11/lib/python3.11/site-packages/torch/utils/data/_utils/fetch.py", line 33, in fetch
[rank0]:     data.append(next(self.dataset_iter))
[rank0]:                 ^^^^^^^^^^^^^^^^^^^^^^^
[rank0]:   File "/ultravox-expts/ultravox/data/datasets.py", line 1080, in <genexpr>
[rank0]:     return (self._process(sample) for sample in self._dataset)
[rank0]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[rank0]:   File "/ultravox-expts/ultravox/data/datasets.py", line 1049, in __iter__
[rank0]:     yield next(iters[iter_index])
[rank0]:           ^^^^^^^^^^^^^^^^^^^^^^^
[rank0]:   File "/ultravox-expts/ultravox/data/datasets.py", line 440, in __iter__
[rank0]:     for _, row in enumerate(self._dataset):
[rank0]:   File "/root/.cache/pypoetry/virtualenvs/ultravox-XehuBpN1-py3.11/lib/python3.11/site-packages/datasets/iterable_dataset.py", line 1368, in __iter__
[rank0]:     yield from self._iter_pytorch()
[rank0]:   File "/root/.cache/pypoetry/virtualenvs/ultravox-XehuBpN1-py3.11/lib/python3.11/site-packages/datasets/iterable_dataset.py", line 1303, in _iter_pytorch
[rank0]:     for key, example in ex_iterable:
[rank0]:   File "/root/.cache/pypoetry/virtualenvs/ultravox-XehuBpN1-py3.11/lib/python3.11/site-packages/datasets/iterable_dataset.py", line 987, in __iter__
[rank0]:     for x in self.ex_iterable:
[rank0]:   File "/root/.cache/pypoetry/virtualenvs/ultravox-XehuBpN1-py3.11/lib/python3.11/site-packages/datasets/iterable_dataset.py", line 486, in __iter__
[rank0]:     yield from ex_iterable
[rank0]:   File "/root/.cache/pypoetry/virtualenvs/ultravox-XehuBpN1-py3.11/lib/python3.11/site-packages/datasets/iterable_dataset.py", line 282, in __iter__
[rank0]:     for key, pa_table in self.generate_tables_fn(**self.kwargs):
[rank0]:   File "/root/.cache/pypoetry/virtualenvs/ultravox-XehuBpN1-py3.11/lib/python3.11/site-packages/datasets/packaged_modules/parquet/parquet.py", line 90, in _generate_tables
[rank0]:     for batch_idx, record_batch in enumerate(
[rank0]:   File "pyarrow/_parquet.pyx", line 1621, in iter_batches
[rank0]:   File "pyarrow/error.pxi", line 89, in pyarrow.lib.check_status
[rank0]:   File "/root/.cache/pypoetry/virtualenvs/ultravox-XehuBpN1-py3.11/lib/python3.11/site-packages/datasets/utils/file_utils.py", line 1101, in read_with_retries
[rank0]:     out = read(*args, **kwargs)
[rank0]:           ^^^^^^^^^^^^^^^^^^^^^
[rank0]:   File "/root/.cache/pypoetry/virtualenvs/ultravox-XehuBpN1-py3.11/lib/python3.11/site-packages/huggingface_hub/hf_file_system.py", line 757, in read
[rank0]:     return super().read(length)
[rank0]:            ^^^^^^^^^^^^^^^^^^^^
[rank0]:   File "/root/.cache/pypoetry/virtualenvs/ultravox-XehuBpN1-py3.11/lib/python3.11/site-packages/fsspec/spec.py", line 1846, in read
[rank0]:     out = self.cache._fetch(self.loc, self.loc + length)
[rank0]:           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[rank0]:   File "/root/.cache/pypoetry/virtualenvs/ultravox-XehuBpN1-py3.11/lib/python3.11/site-packages/fsspec/caching.py", line 189, in _fetch
[rank0]:     self.cache = self.fetcher(start, end)  # new block replaces old
[rank0]:                  ^^^^^^^^^^^^^^^^^^^^^^^^
[rank0]:   File "/root/.cache/pypoetry/virtualenvs/ultravox-XehuBpN1-py3.11/lib/python3.11/site-packages/huggingface_hub/hf_file_system.py", line 720, in _fetch_range
[rank0]:     hf_raise_for_status(r)
[rank0]:   File "/root/.cache/pypoetry/virtualenvs/ultravox-XehuBpN1-py3.11/lib/python3.11/site-packages/huggingface_hub/utils/_http.py", line 477, in hf_raise_for_status
[rank0]:     raise _format(HfHubHTTPError, str(e), response) from e
[rank0]: huggingface_hub.errors.HfHubHTTPError: 500 Server Error: Internal Server Error for url: https://huggingface.co/datasets/fixie-ai/librispeech_asr/resolve/ea1da511055b346c29e03ed435f5b276d1de5ac2/clean/train.100-00005-of-00024.parquet (Request ID: Root=1-66ef1f5e-7a30da9e07abcf7b0ab91451;2eae3886-588c-402a-8784-b771a3a04e76)

[rank0]: Internal Error - We're working hard to fix this as soon as possible!

Reproduction
No response
Logs
No response
System info
- huggingface_hub version: 0.25.0
- Platform: Linux-5.4.0-162-generic-x86_64-with-glibc2.31
- Python version: 3.11.10
- Running in iPython ?: No
- Running in notebook ?: No
- Running in Google Colab ?: No
- Running in Google Colab Enterprise ?: No
- Token path ?: /root/.cache/huggingface/token
- Has saved token ?: True
- Who am I ?: zqhuang
- Configured git credential helpers:
- FastAI: N/A
- Tensorflow: N/A
- Torch: 2.4.1
- Jinja2: 3.1.4
- Graphviz: N/A
- keras: N/A
- Pydot: N/A
- Pillow: 10.4.0
- hf_transfer: N/A
- gradio: N/A
- tensorboard: <IP_ADDRESS>
- numpy: 2.0.2
- pydantic: 2.9.2
- aiohttp: 3.10.5
- ENDPOINT: https://huggingface.co
- HF_HUB_CACHE: /root/.cache/huggingface/hub
- HF_ASSETS_CACHE: /root/.cache/huggingface/assets
- HF_TOKEN_PATH: /root/.cache/huggingface/token
- HF_HUB_OFFLINE: False
- HF_HUB_DISABLE_TELEMETRY: False
- HF_HUB_DISABLE_PROGRESS_BARS: None
- HF_HUB_DISABLE_SYMLINKS_WARNING: False
- HF_HUB_DISABLE_EXPERIMENTAL_WARNING: False
- HF_HUB_DISABLE_IMPLICIT_TOKEN: False
- HF_HUB_ENABLE_HF_TRANSFER: False
- HF_HUB_ETAG_TIMEOUT: 10
- HF_HUB_DOWNLOAD_TIMEOUT: 300

Hello @zqhuang211, Thank you for reporting this issue! We're looking into it internally to find the root cause. Are you using any proxy or specific network setup? this info will help us investigate better

We can't find any error in our logs with request ID Root=1-66ef1f5e-7a30da9e07abcf7b0ab91451;2eae3886-588c-402a-8784-b771a3a04e76 or even any HTTP 500 on url https://huggingface.co/datasets/fixie-ai/librispeech_asr/resolve/ea1da511055b346c29e03ed435f5b276d1de5ac2/clean/train.100-00005-of-00024.parquet. This suggests that the request never reached our servers. Can it be that Mosaic ML has a mirror / proxy to handle calls to the Hugging Face Hub?

Same, we have no logs with these request ids internally.
For the record, the request ids are created by the library when sending the requests. This ID is logged as soon as the request reaches our Hub (i.e. before making anything else) so the fact that we don't see them at all makes me think that something is special in the environment.

Thank you. This is helpful. I will work with the Mosaic folks to figure out what is going on and will report back.

@Wauplin, does the presence of a 500 mean that the request did make it to a HF server but was rejected immediately? Or could the request have failed to connect and the library synthesized a 500 internally?
If the answer is that the request was rejected at the HF server, what could explain that?

I looked closer at the datasets HTTP code and I didn't see a case where these 500 errors could be generated within the library.
Also, I talked to MosaicML support and they indicated that there shouldn't be any proxy in the path between our training node and HF Hub - which suggests that the 500 most likely is coming from HF Hub.
Thoughts?

Looks like there's no retry on 500 in _fetch_range. For upload there is a retry on 500, could be the same transient S3 error.
Could be useful to log length in HfFileSystemFile's read or start and end in _fetch_range in case there's some issue with the file obj.
Also from the line numbers (datasets/utils/file_utils.py", line 1101, in read_with_retries) it looks like you're using Datasets 2.19.2, there are some changes to these functions in newer versions which might help.

@juberti thanks for asking around. In the end we've finally found back the logs. We have add a few HTTP 500 over the last 10 days on the /resolve endpoints due to an gitaly issue. It should have been fixed by now.

Or could the request have failed to connect and the library synthesized a 500 internally?

For sure an HTTP 500 can only be returned by the server (the library itself only forwards it to the user).
So the real explanation was that the server indeed failed. Nothing on MosaicML side, sorry for that assumption :pray:

So @juberti @zqhuang211 could you let us know if the issue arise again in the future or if it got stable again?

@Wauplin @hlky Thank you both. We are adding 500 to the retry list and will report back after running more experiments. We will let the MosaicML folks know too.

Thanks for digging in here, glad we were able to identify the root cause. We'll send a PR to retry on 500 which should be an effective workaround if this issue recurs.

I created a one-line PR here @Wauplin that you can take a look at: https://github.com/huggingface/huggingface_hub/pull/2567

If that's fine with you, I'll close this issue :)
https://github.com/huggingface/huggingface_hub/pull/2567 has been merged to retry on HTTP 500 when streaming a dataset. The root cause should also be mitigated server-side so you shouldn't be bothered anymore. Let me know if it's not the case and I'll reopen :)

@Wauplin yes, the issue can be closed. I have run many training runs with the retry fix and haven’t had any problems. Thanks!

Good news!


ThreeFold NOW - Changes after feedback

[x] remove . after headlines

[x] rename applications
Mattermost is Team Collaboration
PeerTube is Video Sharing
Gitea is Git Servive
Forum is Community Forum
CryptPad is Office Tools

[x] add Video Chat

[ ]

The 3Bot Connect application provides secure 2-factor-authentification for all your ThreeFold NOW applications.
-> The 3Bot Connect application provides secure 2-factor-authentification for all your ThreeFold Now applications.

[ ]
Stop being surveilled, followed and targeted in manipulative ways.
->
Enjoy privacy in your digital life.

[ ]

[ ]

-> turn both buttons with label into the green of "NOW"

[ ]

remove the logo and move the 3 columns to center.

[ ] change layout to new AI file proved via telegram.

->

[ ] update text blocks & headlines

Don't be a product anymore
Today, most cloud services, websites & applications collect, use and sell user data. Data is the most valuable asset on earth. Take back the value that should be only yours.
Experience true decentralization
The ThreeFold Grid is the largest decentralized grid on the planet and enables edge storage and compute at a fraction of the cost of centralized clouds and with many advantages.
A private & secure experience
A decentralized environment provides real privacy and security. With ThreeFold Now, only you can access and share your data, no one else, not even ThreeFold.

[ ] is it possible to retain the old style of the button, where there was only a coloured outline and transparent body? But in green of course.


Update README.md

Chagned wrongly name minimumExclusive to exclusiveMinimum in example.

Please take in account the GUIDELINES.
PR against the develop branch. :beers:

I checked http://json-schema.org/example1.html, @omerts is absolutely right, thank you :)
I have merged it into the develop branch already (https://github.com/pateketrueke/json-schema-faker/tree/develop), just this pull request won't be accepted into master directly.
@omerts you're welcome to do more contribution :) just PR them against develop branch.


No tools:unzip_collection, Flatten collection and Sort

Hi，@ebolyen I used docker to pull and run q2galaxy. When building my workflow, I found that there are no basic tools, such as unzip_collection, Flatten collection and Sort. How can I install these tools in q2galaxy?

@Oddant1

Hello @Dong2843997826.
What use case do you have for unzipping collections? You should be able to use individual elements of collections as inputs to other actions as necessary.
Additionally, QIIME 2 does not currently nest collections, so flattening isn't needed functionality.
Sorting is a potential nice to have in the future, but order also does not currently matter.

@Oddant1.Thank you for your reply.Oh, I did add some other workflows.But I found that none of these tools, like unzip_collection, are available. If I want to use these, how should I add them?

Well, @Oddant1，@ebolyen，I have these tools when I use docker-galaxy-stable, but q2galaxy doesn't. I wonder if q2galaxy doesn't install these tools by default.

That makes sense, I think one issue is there hasn't been an update of the galaxy docker image. Ideally we would set up our image a bit differently so the default tools would come along (and we wouldn't have to overwrite them as you see).
I think it makes sense to wait on this a bit, as the entire docker stack is in pretty bad shape for this and we should be able to fix it really easily at some point(tm).
@Dong2843997826, I would recommend using a public galaxy server instead of the docker image at this point. We need a more modern version of Galaxy to support QIIME 2 anyhow (the current image is a kind of hacked together proof of concept).


generated app directory fails linting with golangci-lint

golangci-lint run --fix
bud/internal/app/main.go:74:19: Error return value of `budClient.Publish` is not checked (errcheck)
	budClient.Publish("app:ready", nil)

As part of CI I run a linting of my repository.  I suggest adding the line //nolint at the top of the template for bud/internal/app/main.go, as well as any other bud-managed template boilerplate files.  This way any linters people use will ignore these files (without having to do special configuration to exclude the bud directory like is already automagically done in the .gitignore.)

Oh that's neat! I actually think we should lint these files? If that's the only issue reported, that's an easy fix.
Longer-term we'd want lints to be run on the generated test code, so it'd block a release. For now, I'd suggest fixing that one case, then keeping an eye on it. If it becomes more unwieldy, I'm also open to //nolint comments, but I do want the generated code to be as good as possible.