Python 3 support

It currently declares it support python 3 although it is not

Sorry, where is python 3 declared to be supported? :open_mouth:

config.py does not include it, however, when pip install using python3, downloads it
I will definitely create a PR for this support

@aesedepece Could you please add warning that it supports legacy python only?
I installed it into my pipenv and I'm using Py3
running command mongoaudit
resulted in
Traceback (most recent call last):
  File "/Users/jangazda/.virtualenvs/mongoaudit-OwYVqVCa/bin/mongoaudit", line 7, in <module>
    from mongoaudit.__main__ import main
  File "/Users/jangazda/.virtualenvs/mongoaudit-OwYVqVCa/lib/python3.6/site-packages/mongoaudit/__main__.py", line 18
    self.version = __version__


Port from CRABServer code Throttled classes; add unit test for them

dbs branch version of #9158
@yuyiguo please let me know if you need anything else, otherwise I'll merge and cut a new dbs tag.

@amaltaro
Alan,
Please hold a bit on this PR. Valentin updated it in #9211. Let me verify 9211. We may not need #9158.
Thanks,
Yuyi

1.1.16.dbs4 tagged @yuyiguo

@amaltaro
Thanks Alan.


feat: face and person detection samples

These code samples add the following region tags:

video_detect_person_beta
video_detect_person_gcs_beta
video_detect_faces_beta
video_detect_faces_gcs_beta

These code samples will be the canonicals.

Thank you for the review!

Couple style things:

Each sample should have its own file
async needs to be inside the region tag:
example: https://github.com/googleapis/nodejs-automl/blob/master/samples/delete_model.js

Thank you for the review!
A couple follow-up questions:

Couple style things:

Each sample should have its own file

The existing beta samples use just "analyze.v1p2beta1.js.". The file includes multiple samples (and it's what I used as an example).
Does that need to be refactored?


native rss icon usage?

wondering if it's possible to activate the native firefox feed icon instead of placing a new one in the address bar? if not by means of the FF API, then by injecting the feed code in the page
also curious what the airbnb stuff is for?
thanks!

thanks for the explinations


nfbc: Add version 1.6.3

Hi, first contribution. Hope full name in description and no autoupdate on the hash are the right ways to do things (hash has to be generated from downloaded file). This uses Expand-DarkArchive as done for example in the portable vcreddist 2013 manifest).

I just noticed I forgot to register the nbfc service, this pull request is definetely incomplete, will be working on this.

It seems I'm in over my head here, so I should probably close this.


Remove unnecessary extra generic parameter in Lodash's _().where

The chained _().where() in Lodash had a generic method parameter T (in addition to another U parameter, untouched by this change).
It's already on a generic type though, which already introduces a T parameter (LoDashArrayWrapper<T>).
At best I would've thought this method parameter redundant. In reality though it seems to hide the other generic parameter, or something like that, so TypeScript can't infer the generic parameter on the return type of this function, even though it's on a LoDashArrayWrapper<T> and returns a LoDashArrayWrapper<T>. That means I have to cast the final result I get back every time, annoyingly.
Note that .where() is always returning elements of the same type as the original array, so this is always safe, and this also now closer matches the definition of _().reject at https://github.com/borisyankov/DefinitelyTyped/blob/master/lodash/lodash.d.ts#L4570, which should have an identical type, and does already work correctly for me.

@pimterry thanks mate!


Formdata parsed incorrectly

I uploaded the following paste via the frontend page:
print('Error 2\n', omg, '\n', theta, '\n', expse3mat, '\n', explogexpse3mat)
print('diff = ', np.max(np.abs(expse3mat - explogexpse3mat)))
break

When I fetched the paste, It becomes
print('Error 2\n', omg, '\n', theta, '\n', expse3mat, '\n', explogexpse3mat)
print('diff = ', np.max(np.abs(expse3mat - explogexpse3mat)))
brea

But if I upload the same text via curl, the fetched paste is exactly what I want. I suppose this is due to a buggy implementation of formdata parsing.

I will try to fix this in recent days. Before it is fixed, using cURL or CLI client is suggested.

Fixed in f5020a9bba0efff926230c4cd346675e6c2deeb4


Your private updater key is in this repo

Howdy,
SparkleUpdater maintainer here. Your private updater key is in this repo. https://github.com/ryanjon2040/Unreal-Binary-Builder/blob/master/UnrealBinaryBuilderUpdater/keys/NetSparkle_Ed25519.priv
Malicious users could use this to make updates or executables that look like they were published by you. You should not use this key any more and should not check private keys into your repos.
Recommendation: Push an update to your software that is a critical update (use sparkle:criticalUpdate in the <enclosure>). The new software is signed with your existing key (which you should remove from this repo for less visibility.) The new software contains your new public key, and you use your new private key from then on. This isn't a perfect scheme, but you should assume your private key is out there in the wild at this point.

Hi @Deadpikle Thank you for bringing this up! I'll fix it right away. Is it ok to include public keys?

Yeah, public keys are fine and are shipped with your app anyway, so those are safe to put out anywhere.

Thank you. I've pushed an update so hopefully everything should be resolved. Closing for now. Once again thank you so much for bringing this up!


UI improvements/approve buttons

Combines approval button under one dropdown.
Depends on merge of https://github.com/Azure/azure-sdk-tools/pull/4783

Should resolve https://github.com/Azure/azure-sdk-tools/issues/4627

@chidozieononiwu do you have a screenshot on how this change looks now? or is it deployed into the apiviewuat instance?

@chidozieononiwu do you have a screenshot on how this change looks now? or is it deployed into the apiviewuat instance?

I have it deployed to https://apiviewuat.azurewebsites.net/

Please make a change as per suggestion from Ted to change the first approve button label to Approval for GA. Otherwise looks fine.

/azp run APIView - CI

/azp run APIView - CI

The following pipelines have been queued for testing:java - templatejava - template - testsjs - templatenet - templatenet - template - testspython - templatepython - template - tests You can sign off on the approval gate to test the release stage of each pipeline. See eng/common workflow

/azp run APIView - CI

/azp run APIView - CI

The following pipelines have been queued for testing:java - templatejava - template - testsjs - templatenet - templatenet - template - testspython - templatepython - template - tests You can sign off on the approval gate to test the release stage of each pipeline. See eng/common workflow

The following pipelines have been queued for testing:java - templatejava - template - testsjs - templatenet - templatenet - template - testspython - templatepython - template - tests You can sign off on the approval gate to test the release stage of each pipeline. See eng/common workflow


Econometric Tools project ideas

I was browsing through the projects of the tidymodels organization and I see that there's a project on "Econometric Tools" and why people flock to Stata on this topic. I'm not sure where to put this comment, feel free to move it elsewhere if it's relevant elsewhere.
I think incorporating econometric models in some way in the tidymodels framework would be interesting but it's definitely reinventing the wheel since there's quite some work on econometrics in R. In particular, zelig is a bit of the "tidymodels" of econometric modelling, wrapping nearly all standard econometric models into a unified framework. I won't list all of the econometric packages out there because I think zelig can be a good starting point to think about this.

However, it's not in CRAN and doesn't look like it has had any active development for the past two years.


Interrupt shell process gracefully when up process interrupted

Hi. I want to setup up for development environment and add commands to it.
For example start docker-compose up
with something like this
tasks:
  - name: dev_up
    task:
    - func: shell
      do:
      - cd {{.docker_dir}} && docker-compose up

but when i press ctr-c in shell up process stops immediately and not clean containers like in normal shell.
I thin this is because  docker-compose process not receive ctrl-c command

can you try this one: https://github.com/upcmd/up/blob/master/tests/functests/p0205.yml ?

I can use interactive session
I can use ctrl-c, it will not exit the session

Can you send me a reproducible docker compose yml file for a test?
I would assume your main process is not a shell session could handle the native ctrl-c

This works, but docker-compose non interactive and not open another shell. Like other watchers and dev soft.
workaround with compose is like this
      do:
      - /bin/bash -ci "cd {{.docker_dir}} && docker-compose up"

P.S: p0205.yml use docker image that require auth for docker

This works, but docker-compose non interactive and not open another shell. Like other watchers and dev soft.
workaround with compose is like this
      do:
      - /bin/bash -ci "cd {{.docker_dir}} && docker-compose up"

Yes, you are right. The ctrl-c will interrupt the upcmd task execution if it is running or hanging there, since the command "docker-compose up" is not an interactive session, the ctrl-c will not be passed on to docker-compose at all
Your workaround is actually the solution for this

P.S: p0205.yml use docker image that requires auth for docker

Thanks, you can use a tiny image for your own test instead, I will fix this


CLI does not terminate its run

@oaaky Any idea what might be happening? I think it's because we have this while True statement in start() here.

@cagandhi can you please tell me how to reproduce this bug?

Yeah I did the RCA of this issue. It looks like there is problem with reading the schema file. Try to debug the code where we are reading the old schema of the collection from the file.


Controllers specs

In this pull request, Rspec test was implemented for users and posts controller actions following these steps:

[ ] Add RSpec as a gem to your project.
[ ] Create a Request spec file for all your controllers.
[ ] Make sure that for each action you check:
[ ] If the response status was correct.
[ ] If a correct template was rendered.
[ ] If the response body includes correct placeholder text.

@DammyShittu, thanks for pointing out those sections of the Readme file, it will be moved.

@DammyShittu, thanks for approving my project.


authn interceptor consume dpop enforce setting

In our interceptor and middleware we need to consume the new dpop enforce setting. If this setting is set to true requests should not make it past this point if they are missing the dpop header.
Dependent on #593

Resolved by https://github.com/opentdf/platform/pull/617


Device selection UI

Hi,
Currently trying to provide a list of devices to be tracked,
very hard to find what I need.
The window is small and not sorted, no search as well.

Hey,
fixed this with the latest push. Thank you for bringing this to my attention! I have focused on functionality over usability. As I am still struggling setting up a meaningful release pipeline with version tags, you have to reinstall the add-on once again for the fix ^^  I am working on this issue :)


GEODE-1993: postprocess region/key

Add post processing to the GET {region}/{key..key} endpoint
precheckin running

A few things:

In your RestSecurityPostProcessorTest, in the before method, you can get ahold of the region you created and pre populate the regions with a few keys and values, this way, you don't need to worry about putting in values in your tests.
Looks like /{regions} end point also retrieves the values of the entire region, you need to post process the values there as well.
query end points definitely return region values as well.
SecurityUtils.getSecurityService will definitely get the security service, but let's do it the spring way, I have a component called RestSecurityService, use that instead.

Don't accept this PR yet.  This is just a checkin to preserve work.
Addressed all of the issues listed above.  Added test for adhoc queries.  Still need a test for named queries.  Also need to verify functions won't return any region data without being post-processed.
Have not run precheckin yet, either.

precheckin running

Precheckin successful except for one flaky test, QueueCommandsDUnitTest.testCreateUpdatesSharedConfig which doesn't appear to be related to this change.

precheckin successful

A few changes requested:

use Autowire to auto wire the RestSecurityService.
In your RestSecurityPostProcessorTest, considering only using "customers" region for readability. You don't needs all these "/" + REGION_NAME +"/key1" at all.
Then you can use a customer domain object specific PostProcessor to change the field values and assert for the value returned.

I am using Autowire, the annotation is on the base class's constructor.  But as for the injection via the constructor, please review https://spring.io/blog/2015/11/29/how-not-to-hate-spring-in-2016 which references http://olivergierke.de/2013/11/why-field-injection-is-evil/ and http://docs.spring.io/spring-framework/docs/current/spring-framework-reference/htmlsingle/#beans-constructor-injection

Do you think it would be better to only add the RestSecurityService to the controllers that actually need it instead of adding it to the base class?  I think that would complicate the constructors.
2 & 3. Agreed, that'll make the test cleaner.

Precheckin successful


Avoid returning incompatible ternary operator types

Fixes #80097
This allows the compiler to check if all the types of each ternary operator in a return statement are compatible with the expected return type.

Thanks for your advice. I'll try to integrate validate_ternary_type_compatible into reduce_ternary_op and then consider other cases.
My solution only checks if non-Variant types (such as int and String literals) in a ternary operator expression inside a return statement are compatible with the expected return type. So it only generates errors when the expected return type is present and an incompatible type is found in a ternary operator expression.


Increase JVM CodeCache size in Windows sbt script

This is causing intermittent failures in AppVeyor right now.

This was closed in #3122, so closing now!


Missing semicolon in the minified file

The minified file, dmuploader.min.js is missing the semicolon from the end of the line.
Then if you have this uploader anywhere else in your javascript file than last library (set by a Javascript-minifier / library-concatenator) the whole thing will fail, as a browser thinks this library is a function taking the next library as an argument.
Luckily the fix is very easy.

Ok, I think this is actually a problem of the concatenator more than this library.


Make single untouched LocalSettings.php file

This PR consolidates all files which previously were used to modify LocalSettings.php by putting them directly into LocalSettings.php from the start. This is somewhat complicated because it forces all the install steps to be able to run with the final configuration of LocalSettings.php.
Current Status:
This PR does not currently work. It is still under development.
List of changes:

Move portions of VE.sh and ElasticSearch.sh which are involved with MediaWiki extensions into extensions.sh. This includes the extensions VisualEditor, UniversalLanguageSelector, Elastica, and CirrusSearch.
Add VisualEditor, UniversalLanguageSelector, Elastica, and CirrusSearch to ExtensionSettings.php and delete files ExtensionSettingsVE.php and ExtensionSettingsElasticSearch.php.
Move LocalSettingsAdditions, LocalSettingsVE.php, and LocalSettingsElasticSearch.php into LocalSettings.php and delete.
elastic-build-index.sh no longer modifies LocalSettings.php. Instead it modifies a file, ..../wikis/$wiki_id/config/disableSearchUpdate.php, which is used to turn search indexing on and off.

Issues addressed:

Closes #86

Finally passed tests!

Tests passed using full install. Ready for merge.

Tests passed on CentOS 6.7:

anon edit
admin edit using VE
ES search for "test paeg"
file upload


Error with username lookup by user_id

I ran into an error when using the find/scrape tweets from a user when looking them up by user_id:
  File "scrape_tweets_sample_userids.py", line 47, in <module>
    twint.run.Profile(c)
  File "/home/jemather/vicshame/tscrape/lib/python3.6/site-packages/twint/run.py", line 133, in Profile
    run(config)
  File "/home/jemather/vicshame/tscrape/lib/python3.6/site-packages/twint/run.py", line 117, in run
    get_event_loop().run_until_complete(Twint(config).main())
  File "/home/jemather/opt/python-3.6.6/lib/python3.6/asyncio/base_events.py", line 468, in run_until_complete
    return future.result()
  File "/home/jemather/vicshame/tscrape/lib/python3.6/site-packages/twint/run.py", line 80, in main
    self.config.Username = await get.Username(self.config.User_id)
  File "/home/jemather/vicshame/tscrape/lib/python3.6/site-packages/twint/get.py", line 53, in Username
    soup = BeautifulSoup(r, "html.parser")
  File "/home/jemather/vicshame/tscrape/lib/python3.6/site-packages/bs4/__init__.py", line 192, in __init__
    elif len(markup) <= 256 and (
TypeError: object of type 'coroutine' has no len()

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "scrape_tweets_sample_userids.py", line 50, in <module>
    time.sleep(10)
KeyboardInterrupt
sys:1: RuntimeWarning: coroutine 'Request' was never awaited

I was able to resolve the issue for my application by changing the Username function in get.py (line 52) from:
r = Request(url)
to
r = await Request(url)

If that is consistent with other request calls you might consider do a PR.

Hopefully I did that correctly - first time for an issue or for a pull request here.


[WIP] Partial Shapes, Part 3: Partial shape propagation for elementwise ops

FYI I think the only reason @jbobba was auto-tagged on this one is that apply-code-format.sh fixed permissions on one of the CPU backend files.

I've made some updates to bring the terminology under control. Now:

Dimensions/Ranks/element::Types are either 'static' or 'dynamic'.
PartialShapes are either 'static' (rank and all dims static) or 'dynamic' (everything else).
Dimension/Rank/element::Type/PartialShape all now have is_static and is_dynamic member functions.
Maybe slightly confusing: a dynamic PartialShape may still have static rank.

The terms "determined", "undetermined", "known", "unknown", "complete", and "incomplete" are all gone. I think everything reads better this way.

Moving this back to [WIP] because I think there are some subtleties I missed where dynamic element types are concerned. Want to do more unit tests for that.


Misleading statement about owned types

> EF Core allows you to model entity types that can only ever appear on navigation properties of other entity types.
This is wrong. At least EF Core 2.2 allows me to read/create owned entities separately via Set<OwnedType>() method. In other words there is no point in saying
> can only ever appear on navigation properties
Proof:
using System;
using System.Collections.Generic;
using Microsoft.EntityFrameworkCore;

namespace EfCore22.OwnedTypes
{
    class Program
    {
        static void Main(string[] args)
        {
            using (var ctx = new TestContext())
            {
                ctx.Database.EnsureCreated();
                ctx.Add(new Order { Items = { new OrderItem { Name = "Just an item." } } });
                ctx.SaveChanges();
            }

            using (var ctx = new TestContext())
            {
                var entry = ctx.Add(new OrderItem { Name = "Other item" });
                entry.Property("OrderId").CurrentValue = 1;
                ctx.SaveChanges();
            }

            Console.ReadKey();
        }
    }

    public class Order
    {
        public int Id { get; set; }
        public List<OrderItem> Items { get; } = new List<OrderItem>();
    }

    public class OrderItem
    {
        public string Name { get; set; }
    }

    public class TestContext : DbContext
    {
        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            optionsBuilder.UseSqlServer("Server=(localdb)\\MSSQLLocalDB;Database=OwnedTypes");
        }

        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            modelBuilder.Entity<Order>(b =>
            {
                b.OwnsMany(m => m.Items, ob =>
                {
                    ob.Property<int>("Id")
                        .IsRequired()
                        .ValueGeneratedOnAdd();

                    ob.HasForeignKey("OrderId");

                    ob.HasKey("Id", "OrderId");
                    ob.ToTable("OrderItems");
                });
            });
        }
    }
}

If it is an unintended behaviour it should stay as it is now for some time and here is why:
If you practice DDD then using owned entity types allows to set the shape of aggregate. (I know you have a separate ticket for it to define which navigation properties are always included.)
It is also common to use private access modifier for navigation properties to hide internal structure of an aggregate and provide all access via API of Aggregate Root. It is fine, but at some point you need query side, and in case owned entities cannot be queried independently as any other DbSet you are in trouble.

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

ID: d02e6748-42e0-000a-4945-42cd05a0b875
Version Independent ID: e3effbd0-07f2-423d-4032-1722e75adb37
Content: Owned Entity Types - EF Core
Content Source: entity-framework/core/modeling/owned-entities.md
Product: entity-framework
GitHub Login: @AndriySvyryd
Microsoft Alias: ansvyryd

@voroninp I don't understand what you are trying to show in the example, you still have the navigation to the owned type - Order.Items.
Owned types follow roughly the DDD concept of aggregates - you can't reference a part of the aggregate directly, only through the root.

I interpreted this statement as navigation properties are the only way to access owned entities, as if I needed to query owner first to get access to owned entity or set owner's navigation property as the only mean to insert owned entity.

This is correct.

My code shows that I can use Set method to work with owned entities directly, that is owned entities can appear NOT ONLY on navigation properties ;-) So statement is ambiguous for interpretation.

I don't see the Set method being used in your code and if you did it shouldn't work unless there's a bug in EF.

@AndriySvyryd, it works, I tried it.
var entry = ctx.Add(new OrderItem { Name = "Other item" });
                entry.Property("OrderId").CurrentValue = 1;
                ctx.SaveChanges();

Are not you confused that I am able to insert OtderItem owned entity not via Order?

@voroninp Since you are setting the FK value you are asserting that the owner exists in the database, but you still had to query the owner at some point to get the value. This way of persisting changes to the owned types is a bit more elaborate, so we don't mention it in the introductory docs. Besides it wouldn't work if the owned type was sharing the table with the owner.

@AndriySvyryd , ok, version with Set method:
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.EntityFrameworkCore;

namespace EfCore22.OwnedTypes
{
    class Program
    {
        static void Main(string[] args)
        {
            using (var ctx = new TestContext())
            {
                ctx.Database.EnsureCreated();
                ctx.Add(new Order { Items = { new OrderItem { Name = "Just an item." } } });
                ctx.SaveChanges();
            }

            using (var ctx = new TestContext())
            {
                var items = ctx.Set<OrderItem>().ToList();
                Console.WriteLine($"I managed to successfully get '{items.Count}' order items.");
            }

            Console.ReadKey();
        }
    }

    public class Order
    {
        public int Id { get; set; }
        public List<OrderItem> Items { get; } = new List<OrderItem>();
    }

    public class OrderItem
    {
        public string Name { get; set; }
    }

    public class TestContext : DbContext
    {
        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            optionsBuilder.UseSqlServer("Server=(localdb)\\MSSQLLocalDB;Database=OwnedTypes");
        }

        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            modelBuilder.Entity<Order>(b =>
            {
                b.OwnsMany(m => m.Items, ob =>
                {
                    ob.Property<int>("Id")
                        .IsRequired()
                        .ValueGeneratedOnAdd();

                    ob.HasForeignKey("OrderId");

                    ob.HasKey("Id", "OrderId");
                    ob.ToTable("OrderItems");

                });
            });
        }
    }
}

@voroninp I see, I filed https://github.com/aspnet/EntityFrameworkCore/issues/14153


Fix incorrect variable name of Go version

Issue #, if available:
Description of changes:
Fixes incorrect variable name of new go version introduced recently.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/approve

/retest


Fix the Uncaught TypeError: Cannot read property 'firstChild' of null error

I was experiencing an error on Youtube, I wasn't able to scroble anything.
Error : Uncaught TypeError: Cannot read property 'firstChild' of null error (coming from jQuery).
So I've made a few changes, and I have it working fine now :-)
Hope I didn't break anything.

Erf I have messed up this PR,
let me fix the commit list first :D


LR V2.0 interfaces IC component choosing

The LR V2.0's component have to be choose and make overall BOM with prices

Working on BOM and component choosing
https://docs.google.com/document/d/1mizCm3OJO3G6yQ-YZmFHvOnzH3bg_4vno897tbyMIA0/edit#heading=h.stcyq3nig7sz


Property 'fix_item_position_direction' won't work since v3.0.0

Hi there,
I've spotted an issue since v3.0.0.
A freshly added item won't pop at the end of rows anymore.

After a little debugging time I found out that the fixGridPosition function manage to return correct new positions but it seems that fixGridCollision function will relocate our new item afterwards.
Here a version that work as intended (v2.3.1)
(stackblitz editor here)
Here a version with the issue (v3.0.0)
(stackblitz editor here)
Thanks for your work ;)

I guess I'll close this issue as its stalled


Use Constructor Function and Objects for pantry food items

Create one or more constructor functions to create objects for all of the food items that will be added to the inventory.
Some initial properties for the food item objects could be:

name
quantity
expiration date
category

This is a good first place to start adding on: https://github.com/Loki-Code201/PantryPal/commit/3996f2141e00ba6ba54c8012cacb03b5d79038ff
This commit now sets up the form so that upon input it stores the food item into Local Storage.
Also included in this is commit is the code needed to properly retrieve the data from the local storage and how to rehydrate the parsed JSON value back into a PantryItem object:
https://github.com/Loki-Code201/PantryPal/blob/3996f2141e00ba6ba54c8012cacb03b5d79038ff/js/pantry.js#L78-L81

Initial constructor function built


Fails to compile with Optimization Level set to Fastest[-O]

I believe the Swift compiler (I'm on Xcode 6.1) is getting confused because you have a computed property called progressChangedClosure and a function of the same name.

I tried to compile (Xcode 6.1.1 6A2008a) a variety of compilation options, but didn't get some errors.
I compiled sources using compilation options as follows.
Apple LLVM 6.0 - Code Generation

None [-O0]
Fast [-O, O1]
Faster [-O2]
Fastest [-O3]
Fastest, Smallest [-Os]
Fastest, Aggressive Optimizations [-Ofast]

Swift Compiler - Code Generation

None [-Onone]
Fastest [-O]
Fastest, Unchecked [-Ounchecked]

Please tell me error details.

So it's possible this has been fixed. I hit this error previously, and again today on Xcode 6.1 (6A1052c) on Fastest [-O].
I believe the real issue is this line:
let clipProgress = max( min(oldValue, 1.0), 0.0)
After reading this stack overflow post: http://stackoverflow.com/questions/28516677/swift-issue-using-max-and-min-sequentially-while-archiving-on-xcode
I decided to try this and now I don't face this problem when compiling.
let clipProgress = max( min(oldValue, Double(1.0)), Double(0.0))
Feel free to close this if you can't reproduce it. I just found it interesting. Here's the message I was getting in the terminal:
...arm64/KYCircularProgress.o
PHI node has multiple entries for the same basic block with different incoming values!
%9 = phi double [ %6, %5 ], [ 0.000000e+00, %5 ], [ 1.000000e+00, %4 ], [ 0.000000e+00, %4 ], !dbg !1476
label %4
double 0.000000e+00
double 1.000000e+00
LLVM ERROR: Broken function found, compilation aborted!

I confirmed this problem using below command.
※ Release configuration is now set to Fastest[-O] optimization level.
xcodebuild -project KYCircularProgress.xcodeproj -scheme KYCircularProgress -configuration Release
.
.
...arm64/KYCircularProgress.o
PHI node has multiple entries for the same basic block with different incoming values!
  %13 = phi double [ %10, %9 ], [ 0.000000e+00, %9 ], [ 1.000000e+00, %8 ], [ 0.000000e+00, %8 ], !dbg !1539
label %9
  %10 = phi double [ %6, %entry ], !dbg !1536
double 0.000000e+00
LLVM ERROR: Broken function found, compilation aborted!

I was getting this error on Swift1.1 compiler. (swift-6<IP_ADDRESS>)
But, I tried to compile using Swift1.2 compiler (swiftlang-6<IP_ADDRESS> clang-602.0.37), this error wasn't appear.
According to your posted link, I think this error is Swift1.1 compiler bug.
So, I fixed it avoiding sequentially max-min code. (see https://github.com/kentya6/KYCircularProgress/commit/186ead1a6c3702ee7f3a0d046d326293d4844521)
Thank you for reporting it.


add support for macOS (darwin) platform

The Linux code seems to work on macOS as well. I tested with the hidapi library installed via homebrew (brew install hidapi).

Thanks for the PR. Merged


Reorder entries on readme

Current coverage is 16.99% (diff: 100%)

Merging #19 into master will not change coverage

@@             master        #19   diff @@
==========================================
  Files            12         12
  Lines           206        206
  Methods           0          0
  Messages          0          0
  Branches         53         53
==========================================
  Hits             35         35
  Misses          151        151
  Partials         20         20

Powered by Codecov. Last update 3b9e3b6...7f3177f


Error provisioning: Unknown error: Error: GPG is unavailable on this device | after resetting keys

Hello - I wanted to start from scratch setting up Keybase so I choose this option online. This of course wiped everything out and then I started to setup my pgp again. During the middle of this I noticed I was logged out of the local Keybase app and logged back in. (At the time I did not know resetting keys would log you out.) Doing this started a local PGP key creation which I stopped. I then noticed the web version was done so I clicked to continue on the web no pgp key was there, I then went back to the console PGP setup and went ahead and finished. This key was pushed to the site and was showing up. I decided to start from scratch again due to wanting to be sure nothing was setup wrong. I did the full web version of PGP setup which is currently my key. However now when I go to login to the app I get the message in the subject and screenshot.

my log id: 9813f08c294efb745ba9c31c

Another thing to add. I just rebooted and tried to login locally again and got a similar but a little different message.
"There was an error provisioning
Unknown error: Error: GPG Error: exit status 2"
Oh also this is on a Macbook Pro with latest OSX el Capitan 10.11.6

OK so I tried to login via CLI and got a much better error message. Not sure why I wasn't doing it like this before. :(
$ keybase login
Your keybase username or email address: justindevelops
▶ ERROR Sorry, your account is already established with a PGP public key, but this
utility cannot find the corresponding private key on this machine.
This is the fingerprint of the PGP key in your account:
15A3 2BE5 40CB 93CA 5651 7E47 6D91 8A85 7F46 4B22
You need to prove you're you. We suggest one of the following:

put one of the PGP private keys listed above on this machine and try again
reset your account and start fresh: https://keybase.io/#account-reset

So after finding that error I setup my key locally and all is well. Closing out.


Identifiers validation failed for dataset University of Hargeisa Biodiversity Museum (Animal Images)

Identifier validation failed for the dataset University of Hargeisa Biodiversity Museum (Animal Images):

Crawler attempt: 2
Publishing organization: Somaliland Biodiversity Foundation
Publishing country: UNITED_STATES
Installation: OpenZooMuseum
Number of occurrences indexed for this dataset at the time of the issue: 10
Cause: GBIF ID problems exceed 50% threshold: 100% duplicates; 12 total records; 12 absent records
Pipelines execution steps: http://api.gbif.org/v1/pipelines/history/execution/4397746/step

New IDs sample:

Old IDs sample:

HARGZ-I-000001
HARGZ-I-000002
HARGZ-I-000003
HARGZ-I-000004
HARGZ-I 000005
HARGZ-I 000006
HARGZ-U000007
HARGZ-I 000008
HARGZ-I-000010
HARGZ-I 000009

Publisher email
Hello,
I am contacting you from the GBIF Secretariat about a dataset published by the University of Hargeisa Biodiversity Museum (Animal Images) : https://doi.org/10.15468/vvuvjp.
We noticed that the occurrenceIDs were changed. We have temporarily paused the ingestions of this dataset.
As you might already know, when an occurrence record has a new occurrenceID for a given dataset, our system considers it to be a new occurrence.
This means that it will be given a new gbifid and a new occurrence URL (like this one: https://www.gbif.org/occurrence/1252968762) and the old gbifid and URL will be deprecated.
In this case, this means that the occurrence URLs would be deprecated when ingesting the newest versions of these datasets.
We would like to check with you if those changes were intentional. Do you know if this is the case?
Please let us know, thanks! We are happy to resume the dataset ingestion.
Note that some users rely on those occurrence URLs and gbifids (like https://bionomia.net for example). In an attempt to improve
the stability of the occurrence URLs and gbifids, we have implemented a warning system to detect these type of changes in datasets (see this news item).
If the data publisher can provide us with a list of old and new occurrenceIDs per record, we can avoid the identifier and URL changes. Could that be an option?
Please let us know if you have any question. Thanks!
All the best,

You can skip/fix identifier validation using the registry UI.

Identifier validation still  failing for the dataset University of Hargeisa Biodiversity Museum (Animal Images):

Crawler attempt: 3
Publishing organization: Somaliland Biodiversity Foundation
Publishing country: UNITED_STATES
Installation: OpenZooMuseum
Number of occurrences indexed for this dataset at the time of the issue: 10
Cause: GBIF ID problems exceed 50% threshold: 100% duplicates; 14 total records; 14 absent records
Pipelines execution steps: http://api.gbif.org/v1/pipelines/history/execution/4418148/step

New IDs sample:

Old IDs sample:

HARGZ-I-000001
HARGZ-I-000002
HARGZ-I-000003
HARGZ-I-000004
HARGZ-I 000005
HARGZ-I 000006
HARGZ-U000007
HARGZ-I 000008
HARGZ-I-000010
HARGZ-I 000009

Publisher email
Hello,
I am contacting you from the GBIF Secretariat about a dataset published by the University of Hargeisa Biodiversity Museum (Animal Images) : https://doi.org/10.15468/vvuvjp.
We noticed that the occurrenceIDs were changed. We have temporarily paused the ingestions of this dataset.
As you might already know, when an occurrence record has a new occurrenceID for a given dataset, our system considers it to be a new occurrence.
This means that it will be given a new gbifid and a new occurrence URL (like this one: https://www.gbif.org/occurrence/1252968762) and the old gbifid and URL will be deprecated.
In this case, this means that the occurrence URLs would be deprecated when ingesting the newest versions of these datasets.
We would like to check with you if those changes were intentional. Do you know if this is the case?
Please let us know, thanks! We are happy to resume the dataset ingestion.
Note that some users rely on those occurrence URLs and gbifids (like https://bionomia.net for example). In an attempt to improve
the stability of the occurrence URLs and gbifids, we have implemented a warning system to detect these type of changes in datasets (see this news item).
If the data publisher can provide us with a list of old and new occurrenceIDs per record, we can avoid the identifier and URL changes. Could that be an option?
Please let us know if you have any question. Thanks!
All the best,

You can skip/fix identifier validation using the registry UI.

Identifier validation still  failing for the dataset University of Hargeisa Biodiversity Museum (Animal Images):

Crawler attempt: 4
Publishing organization: Somaliland Biodiversity Foundation
Publishing country: UNITED_STATES
Installation: OpenZooMuseum
Number of occurrences indexed for this dataset at the time of the issue: 10
Cause: GBIF ID problems exceed 50% threshold: 100% duplicates; 14 total records; 14 absent records
Pipelines execution steps: http://api.gbif.org/v1/pipelines/history/execution/4418153/step

New IDs sample:

Old IDs sample:

HARGZ-I-000001
HARGZ-I-000002
HARGZ-I-000003
HARGZ-I-000004
HARGZ-I 000005
HARGZ-I 000006
HARGZ-U000007
HARGZ-I 000008
HARGZ-I-000010
HARGZ-I 000009

Publisher email
Hello,
I am contacting you from the GBIF Secretariat about a dataset published by the University of Hargeisa Biodiversity Museum (Animal Images) : https://doi.org/10.15468/vvuvjp.
We noticed that the occurrenceIDs were changed. We have temporarily paused the ingestions of this dataset.
As you might already know, when an occurrence record has a new occurrenceID for a given dataset, our system considers it to be a new occurrence.
This means that it will be given a new gbifid and a new occurrence URL (like this one: https://www.gbif.org/occurrence/1252968762) and the old gbifid and URL will be deprecated.
In this case, this means that the occurrence URLs would be deprecated when ingesting the newest versions of these datasets.
We would like to check with you if those changes were intentional. Do you know if this is the case?
Please let us know, thanks! We are happy to resume the dataset ingestion.
Note that some users rely on those occurrence URLs and gbifids (like https://bionomia.net for example). In an attempt to improve
the stability of the occurrence URLs and gbifids, we have implemented a warning system to detect these type of changes in datasets (see this news item).
If the data publisher can provide us with a list of old and new occurrenceIDs per record, we can avoid the identifier and URL changes. Could that be an option?
Please let us know if you have any question. Thanks!
All the best,

You can skip/fix identifier validation using the registry UI.


jcenter is no avaiable.

jcenter is no avaiable.    when I add  “maven { url "https://jitpack.io" }”, it resolve dependency so slow. can you push the lib in the jcenter?

it is slow the first time whenever there's a new commit to build. once that happens, it should be fast. If you're still having trouble it might be gradle - you can turn on offline mode in studio to speed it up.

Adding custom maven url in repositories section increases the sync time massively.
I am aware of the offline mode but that's not the case, most of the times, I need to download new releases or some other libraries which I don't have in my .gradle cache.


Permission to place commandblock with permission service

Hi,
When I want to place or edit a command block, the permission service check empty permission.
MixinPlayerInteractionManager.java line:193
Example : [00:59:51 INFO] [everpermissions]: SubjectData  : (identifier='9ed0dcb2-ad90-433f-818d-fed3c41e6db8';permission='';value='UNDEFINED')

Probably the fault of MixinICommandSender - it should be testing for minecraft.commandblock. Probably should be fixed in WrapperICommandSender as well. I'd send in a PR to fix it, but my life in the physical world is a bit busy right now.
See WrapperCommandSource for the proper permission values.


Application to Neural Network Policy

Hi there, great paper, just finished reading it... one question about this codebase, where is (if exists) the implementation with a DeepNN for the policy?
I happened to see the video of your presentation on YouTube where you say that this can be applied to large scale problems, and also already red the #1 issue, yet I'm not really sure about how to apply this to a large scale setting.
Is there ay blogpost about this with more implementation detail?
I can only find this part of the code
https://github.com/ssokota/mmd/blob/62bc8a22aeb887de65ed8205307314f8303480c6/mmd/efg/learners.py#L125-L126
that seems relevant, but it's using a tabular setting, and a "list of infostates", which is not as scalable as I expected, and neither I see any reference about this on your colleague repo, so I'm probably missing something (sorry for that...)

Hi, this repository doesn't include any code for training with neural network policies. The issue you referenced contains the modifications to RLlib that were used in the paper to do training with neural network policies. I'm also going to make a PR to add an implementation to OpenSpiel in a few weeks.

In the deep RL experiments I used the uniform policy as the magnet.


Update to latest nvbench

Latest NVBench features a better json output format

Have manually testesd with cudf 22.04

rerun tests

@gpucibot merge


GCM and CCM support in OpenSSL

Hello,
I am working on the RISC-V Development board. and we have a Hardware crypto accelerator that supports the AES - (ECB, CBC, GCM, and CCM ).
From the Linux level, we are trying to access the HCA block using the OpenSSL utility. the ECB and CBC are able to access and able to do the encryption and decryption through the devcrypto engine. used the below command to access the HCA.
$ ./openssl aes-192-ecb -a -in secrets.txt -out secrets.txt.enc -engine devcrypto -nopad
$ ./openssl aes-192-cbc -a -in secrets.txt -out secrets.txt.enc -engine devcrypto -nopad

but we can't able to access the gcm and ccm using the OpenSSL utility. please anyone can suggest the command line interface for GCM and CCM in the OpenSSL utility to encrypt and decrypt.?
Is there any OpenSSL version that supports the GCM and CCM to verify from the command line interface or any application?
Thanks,
Ashok

If you just want to check whether OpenSSL uses the devcrypto engine, you can use the openssl speed -evp ... command - it is able to test speed of GCM and CCM mode algorithms.

There is no direct support for just doing encryption and decryption with GCM and CCM modes in the openssl command-line utility.
For AES-GCM the openssl cms tool can utilize this algorithm for encryption/decryption. CCM is not supported.

Could you please provide the commands for the AES-GCM with openssl cms

Hi Tomáš
Any update for the openssl cms command.?

Please see the manual page for openssl cms.
https://www.openssl.org/docs/man3.1/man1/openssl-cms.html

Hi Tomáš,
I went through the manual page for openssl cms.
I could able to verify the GCM support from the software. but I want to use the Hardware devcrypto engine.
Please let me know, how I can parse the -engine devcrypto  to verify GCM.
Thanks,

One possible option is loading the engine via the config file.

Could you please suggest more info, on how to load or the procedure for configuring the engine via config file.?

https://www.openssl.org/docs/man1.1.1/man5/config.html contains the general engine documentation
you can either change the system-wide config file or copy it and specify the path to the config via the OPENSSL_CONF environment variable.
I have no idea whether you can check that the devcrypto is really in use, BTW

Closing since this is marked as resolved.


fail to reformat

VSCode Version: Code 1.6.1 (9e4e44c19e393803e2b05fe2323cf4ed7e36880e, 2016-10-13T15:27:10.246Z)
OS Version: Darwin x64 16.0.0
Extensions: robertohuertasm.vscode-icons-3.0.7

Steps to Reproduce:

write a wrong syntax
format
then it will fail

this bug don't show easily, but it can show up very often.

@calidion syntax in what language?
Please provide reproducible steps and an example of the 'wrong syntax' that fails to format.

@weinand
it will show up occasionally, not 100%。
reloading will solve the problem.
language: javascript.
but the cause is definite: syntax errors.
everytime it fails the syntax checker will fail to parse and highlight.

@calidion we need a screenshot that shows in what way "the syntax checker will fail to parse and highlight".

@weinand
ok, i will take one when it happens again.

Closing issue due to lack of additional information.

this problem can not be visually described!
I have just encounter again.
the only problem is that the format command doesn't work again.
screen shots won't help here.

it seems nothing to do with syntax error.
please reopen it since it hasn't be solved.


vscode's javascript.preferences.importModuleSpecifierEnding preference has no effect

Bug Report
🔎 Search Terms
javascript.preferences.importModuleSpecifierEnding
🕗 Version & Regression Information

This changed between versions 4.9.5 and 5.0.2

⏯ Playground Link
n/a
💻 Steps to reproduce

Set vscode's javascript.preferences.importModuleSpecifierEnding preference to "js"
Set typescript.preferences.importModuleSpecifierEnding to "auto"
Type the name of a function inside of a JavaScript file and press enter to automatically import it

🙁 Actual behavior
The import path is missing .js at the end.
🙂 Expected behavior
The import path includes .js at the end. It seems as though vscode thinks all .js files are actually .ts files in regard to this preference. Because when I set typescript.preferences.importModuleSpecifierEnding to "js" my imports behave as expected.
When I switch the TypeScript version to the one bundled with vscode, the issue is resolved.

Oops, seems like this is a duplicate of #52167


PR: Cursor position history

Rework cursor position history

Description of Changes

[ ] Wrote at least one-line docstrings (for any new functions)
[ ] Added unit test(s) covering the changes (if testable)

[ ] Included a screenshot or animation (if affecting the UI, see Licecap)

Current cursor history loops through the entire history at each cursor position change. This PR avoids that.
Issue(s) Resolved

Fixes #
Affirmation
By submitting this Pull Request or typing my (user)name below,
I affirm the Developer Certificate of Origin
with respect to all commits and content included in this PR,
and understand I am releasing the same under Spyder's MIT (Expat) license.

I certify the above statement is true and correct:

Thanks a lot for all the improvements @impact27! I'm going to ask @steff456 to take a look at this one because she implemented this functionality.

I will update that to use cursors instead of positions - that way if a line above the cursor is modified, the right position will be retrieved

@impact27, this PR has conflicts now.

@impact27, you said in the description

Current cursor history loops through the entire history at each cursor position change. This PR avoids that.

Could you expand on this? Does this rework helps to improve performance?

looping through the entire history at each cursor move degrades performance over time when the history is long

Thanks  @impact27 for your work on this and @steff456 for the review!


multi_normal_cholesky slow for non-autodiff covariance

Description
multi_normal_cholesky computes the inverse of the cholesky factor. This is unnecessary if the covariance is not an autodiff type, because that's what the inverse is needed for.
Current Version:
v4.0.1

Ui, how embarrassing... I looked a long time ago at this piece of code, but never thought about the prim only case... great catch.

@spinkney called this problem out a few weeks back: https://discourse.mc-stan.org/t/multivariate-normal-cholesky-optimization/20911 and then I was benchmarking some stuff last night and it was being annoyingly slow so figured it was worth doing.

(accidentally closed, using github app on my phone for the first time)


Non-uniform execution scope validation checks

Fixes #1480
Adds new validator pass for checking non-uniform instructions. Currently checks execution scope for universal 1.3 and Vulkan 1.1 rules.
Added tests and infrastructure for testing non-uniform opcodes.

Rebased, squashed and committed as 09c206b6fb79ae1c2c542e30225739b938c880a5


milvus向量库

为什么不用milvus作为向量数据库呢？

Hi @Tomriy,  can we use common English please ;)
I'm guessing you are asking for Milvus Vector DB support?

@Tomriy, by coincidence, over the weekend I've put together a Milvus store prototype:  https://github.com/spring-projects-experimental/spring-ai/pull/20
Feel free to review/test it.
Suggestions are welcome.


Docker ReadLevel_Features_extraction.py fails

I've installed the Docker image following your instructions and everything worked perfectly fine. I kept following your instructions being able to run the demo Phase.py that worked properly. I then tried to run the ReadLevel_Features_extraction.py example but it fails with the following error:

python ReadLevel_Features_extraction.py /MF/demo/test.input /MF/demo/test.features /MF/demo hs37d5.fa /root/downloads/hg19/k24.umap.wg.bw 150 2
not enough alt reads:  11 40316579 40316580
not enough alt reads:  15 75918043 75918044
not enough alt reads:  1 1004864 1004865
not enough alt reads:  12 52644507 52644508
not enough alt reads:  1 40130162 40130163
not enough alt reads:  1 33801575 33801576
not enough alt reads:  1 32160980 32160981
not enough alt reads:  1 2591768 2591769
not enough alt reads:  1 36036837 36036838
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/pandas/core/indexes/base.py", line 2646, in get_loc
return self._engine.get_loc(key)
File "pandas/_libs/index.pyx", line 111, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/index.pyx", line 138, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/hashtable_class_helper.pxi", line 1619, in pandas._libs.hashtable.PyObjectHashTable.get_item
File "pandas/_libs/hashtable_class_helper.pxi", line 1627, in pandas._libs.hashtable.PyObjectHashTable.get_item
KeyError: 'querypos_p'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/pandas/core/internals/managers.py", line 1071, in set
loc = self.items.get_loc(item)
File "/usr/local/lib/python3.6/site-packages/pandas/core/indexes/base.py", line 2648, in get_loc
return self._engine.get_loc(self._maybe_cast_indexer(key))
File "pandas/_libs/index.pyx", line 111, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/index.pyx", line 138, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/hashtable_class_helper.pxi", line 1619, in pandas._libs.hashtable.PyObjectHashTable.get_item
File "pandas/_libs/hashtable_class_helper.pxi", line 1627, in pandas._libs.hashtable.PyObjectHashTable.get_item
KeyError: 'querypos_p'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "ReadLevel_Features_extraction.py", line 984, in
df['querypos_p']=df.apply(lambda row: my_wilcox_pvalue(row['querypos_major'], row['querypos_minor']), axis=1)
File "/usr/local/lib/python3.6/site-packages/pandas/core/frame.py", line 2938, in setitem
self._set_item(key, value)
File "/usr/local/lib/python3.6/site-packages/pandas/core/frame.py", line 3001, in _set_item
NDFrame._set_item(self, key, value)
File "/usr/local/lib/python3.6/site-packages/pandas/core/generic.py", line 3624, in _set_item
self._data.set(key, value)
File "/usr/local/lib/python3.6/site-packages/pandas/core/internals/managers.py", line 1074, in set
self.insert(len(self.items), item, value)
File "/usr/local/lib/python3.6/site-packages/pandas/core/internals/managers.py", line 1181, in insert
block = make_block(values=value, ndim=self.ndim, placement=slice(loc, loc + 1))
File "/usr/local/lib/python3.6/site-packages/pandas/core/internals/blocks.py", line 3047, in make_block
return klass(values, ndim=ndim, placement=placement)
File "/usr/local/lib/python3.6/site-packages/pandas/core/internals/blocks.py", line 2595, in init
super().init(values, ndim=ndim, placement=placement)
File "/usr/local/lib/python3.6/site-packages/pandas/core/internals/blocks.py", line 125, in init
f"Wrong number of items passed {len(self.values)}, "
ValueError: Wrong number of items passed 38, placement implies 1

I copied the demo/test.bam and demo/test.bam.bai to demo/sample.bam and demo/sample.bam.bai cause I saw that was the requested name and I also tested I can run bigWigAverageOverBed
The script creates a test.features.tmp file with only column names and then fails.
WHat shall I do to make it run properly?
Thank you in advance for any help

I've installed the Docker image following your instructions and everything worked perfectly fine. I kept following your instructions being able to run the demo Phase.py that worked properly. I then tried to run the ReadLevel_Features_extraction.py example but it fails with the following error:

python ReadLevel_Features_extraction.py /MF/demo/test.input /MF/demo/test.features /MF/demo hs37d5.fa /root/downloads/hg19/k24.umap.wg.bw 150 2
not enough alt reads:  11 40316579 40316580
not enough alt reads:  15 75918043 75918044
not enough alt reads:  1 1004864 1004865
not enough alt reads:  12 52644507 52644508
not enough alt reads:  1 40130162 40130163
not enough alt reads:  1 33801575 33801576
not enough alt reads:  1 32160980 32160981
not enough alt reads:  1 2591768 2591769
not enough alt reads:  1 36036837 36036838
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/pandas/core/indexes/base.py", line 2646, in get_loc
return self._engine.get_loc(key)
File "pandas/_libs/index.pyx", line 111, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/index.pyx", line 138, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/hashtable_class_helper.pxi", line 1619, in pandas._libs.hashtable.PyObjectHashTable.get_item
File "pandas/_libs/hashtable_class_helper.pxi", line 1627, in pandas._libs.hashtable.PyObjectHashTable.get_item
KeyError: 'querypos_p'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/pandas/core/internals/managers.py", line 1071, in set
loc = self.items.get_loc(item)
File "/usr/local/lib/python3.6/site-packages/pandas/core/indexes/base.py", line 2648, in get_loc
return self._engine.get_loc(self._maybe_cast_indexer(key))
File "pandas/_libs/index.pyx", line 111, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/index.pyx", line 138, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/hashtable_class_helper.pxi", line 1619, in pandas._libs.hashtable.PyObjectHashTable.get_item
File "pandas/_libs/hashtable_class_helper.pxi", line 1627, in pandas._libs.hashtable.PyObjectHashTable.get_item
KeyError: 'querypos_p'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "ReadLevel_Features_extraction.py", line 984, in
df['querypos_p']=df.apply(lambda row: my_wilcox_pvalue(row['querypos_major'], row['querypos_minor']), axis=1)
File "/usr/local/lib/python3.6/site-packages/pandas/core/frame.py", line 2938, in setitem
self._set_item(key, value)
File "/usr/local/lib/python3.6/site-packages/pandas/core/frame.py", line 3001, in _set_item
NDFrame._set_item(self, key, value)
File "/usr/local/lib/python3.6/site-packages/pandas/core/generic.py", line 3624, in _set_item
self._data.set(key, value)
File "/usr/local/lib/python3.6/site-packages/pandas/core/internals/managers.py", line 1074, in set
self.insert(len(self.items), item, value)
File "/usr/local/lib/python3.6/site-packages/pandas/core/internals/managers.py", line 1181, in insert
block = make_block(values=value, ndim=self.ndim, placement=slice(loc, loc + 1))
File "/usr/local/lib/python3.6/site-packages/pandas/core/internals/blocks.py", line 3047, in make_block
return klass(values, ndim=ndim, placement=placement)
File "/usr/local/lib/python3.6/site-packages/pandas/core/internals/blocks.py", line 2595, in init
super().init(values, ndim=ndim, placement=placement)
File "/usr/local/lib/python3.6/site-packages/pandas/core/internals/blocks.py", line 125, in init
f"Wrong number of items passed {len(self.values)}, "
ValueError: Wrong number of items passed 38, placement implies 1

I copied the demo/test.bam and demo/test.bam.bai to demo/sample.bam and demo/sample.bam.bai cause I saw that was the requested name and I also tested I can run bigWigAverageOverBed
The script creates a test.features.tmp file with only column names and then fails.
WHat shall I do to make it run properly?
Thank you in advance for any help

Hi @cccnrc ,
Thanks for using MF! May I ask if you use GRCh37 or GRCh38? Recently I updated MF and it now can count the read length automatically and the command changed to like this, I think the last two parameters in your command are not correct:
python(v3) ReadLevel_Features_extraction.py input_bed(file_format: chr pos-1 pos ref alt sample, sep="\t") output_features bam_dir(cram is also supported) reference_fasta Umap_mappability(bigWig file,k=24) num_threads_parallel sequencing_file_format(bam/cram)
Could yo try to run the command like below? Thanks!
python ReadLevel_Features_extraction.py /MF/demo/test.input /MF/demo/test.features /MF/demo hs37d5.fa /root/downloads/hg19/k24.umap.wg.bw 2 bam
(the 2nd last parameter is the thread number, and the last parameter indicate the file format of the sequencing file)
And if you use GRCh38, I haven't pushed the new docker image, I'll upgrade now and it should be available in about an hour.
Thanks, and best wishes,
Yanmei

Oh my god I feel so stupid, sorry to bother. I am in GRCh37 so this was no the problem, I copy-pasted part of the command from previous. So sorry to have bothered you @douym and thanks for your kind reply!
With the right options it seems to work, I think the warning is normal due to the limited size of example data, right?
python ReadLevel_Features_extraction.py /MF/demo/test.input /MF/demo/test.features /MF/demo hs37d5.fa /root/downloads/hg19/k24.umap.wg.bw 2 bam

test~1~1004865~G~C -1 1 1004850
/usr/local/lib/python3.6/site-packages/scipy/stats/morestats.py:2778: UserWarning: Warning: sample size too small for normal approximation.
  warnings.warn("Warning: sample size too small for normal approximation.")

 I am in GRCh37 so this was no the problem, I copy-pasted part of the command from previous. So sorry to have bothered you @douym and thanks for your kind reply!
With the right options it seems to work, I think the warning is normal due to the limited size of example data, right?
python ReadLevel_Features_extraction.py /MF/demo/test.input /MF/demo/test.features /MF/demo hs37d5.fa /root/downloads/hg19/k24.umap.wg.bw 2 bam

test~1~1004865~G~C -1 1 1004850
/usr/local/lib/python3.6/site-packages/scipy/stats/morestats.py:2778: UserWarning: Warning: sample size too small for normal approximation.
  warnings.warn("Warning: sample size too small for normal approximation.")

Hi @cccnrc ,
No bother at all! Thanks again for picking out the problem in the README.md, I've updated the old command for the demo run. Yes, please do not worry about the warning.
Best wishes,
Yanmei


Add approval step to each release pipeline that publishes publicly

As a defense in deep to help ensure we don't publish something that cannot easily be undone we should add an approval pre-deployment step on our release pipelines that publish to a public central service.

https://dev.azure.com/azure-sdk/internal/_release?view=all
@Azure/azure-sdk-eng


Unfork circe

No longer need to use the fork with coursier removed (#629) or sbt-microsite upgraded (47deg/sbt-microsites#248 + circe/circe#803).

test run queued: https://scala-ci.typesafe.com/job/scala-2.12.x-integrate-community-build/2407/consoleFull (404 til Jenkins finishes eating his plate of arugula piled so tall he can't see over it)

ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.

?

I didn't notice the PR was off this repo, not your fork. New test run (after merging current 2.12.x onto this branch): https://scala-ci.typesafe.com/job/scala-2.12.x-integrate-community-build/2412/consoleFull (404 til Jenkins finishes deciding which edition of Clifford D. Simak’s City has the best cover art)

Failed because master circe can't use the frozen cats version..

the PR was off this repo, not your fork

That's only because that's what GitHub in-browser edit does, btw.

[circe] [error] /home/jenkins/workspace/scala-2.12.x-integrate-community-build/target-0.9.9/project-builds/circe-9bc85a87699017ce9cfb8723435d194acd46af54/modules/core/shared/src/main/scala/io/circe/ArrayEncoder.scala:3:8: object Contravariant is not a member of package cats
[circe] [error] import cats.Contravariant
[circe] [error]        ^

from the cats 1.0-MF -> 1.0-RC release notes:

Profunctor and Strong were moved to the cats.arrow package,  Bifunctor, Invariant and Contravariant were moved to the cats root package."

so this can wait until we push the cats 1.0 upgrade through the entire community build

the cats 1.0 move has been on my mind for a while, but it has a ticket now: #653

Let's call this one "blocked on https://github.com/scala/community-builds/issues/653".


python310Packages.slack-sdk: 3.14.1 -> 3.15.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python310Packages.slack-sdk is: "Slack Developer Kit for Python"
meta.homepage for python310Packages.slack-sdk is: "https://slack.dev/python-slack-sdk/"
meta.changelog for python310Packages.slack-sdk is: ""
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS

Warning: a test defined in passthru.tests did not pass

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

found 3.15.0 with grep in /nix/store/3bf8ggk4syhh5azjslv2jfgdw62p2wi3-python3.10-slack-sdk-3.15.0

found 3.15.0 in filename of file in /nix/store/3bf8ggk4syhh5azjslv2jfgdw62p2wi3-python3.10-slack-sdk-3.15.0

Rebuild report (if merged into master) (click to expand)

6 total rebuild path(s)

3 package rebuild(s)

3 x86_64-linux rebuild(s)
3 x86_64-darwin rebuild(s)

First fifty rebuilds by attrpath
ntfy
python310Packages.slack-sdk
python39Packages.slack-sdk

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/3bf8ggk4syhh5azjslv2jfgdw62p2wi3-python3.10-slack-sdk-3.15.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A python310Packages.slack-sdk https://github.com/r-ryantm/nixpkgs/archive/a9465317719032e96ee939a44455f81009ae3d6e.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/3bf8ggk4syhh5azjslv2jfgdw62p2wi3-python3.10-slack-sdk-3.15.0
ls -la /nix/store/3bf8ggk4syhh5azjslv2jfgdw62p2wi3-python3.10-slack-sdk-3.15.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

3 packages built:

ntfy
python310Packages.slack-sdk
python39Packages.slack-sdk

Maintainer pings
cc @fabaff for testing.

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

3 packages built:

ntfy
python310Packages.slack-sdk
python39Packages.slack-sdk


Removing s3_name from exporter and renaming Account.number to identifier

Fixes #645 by removing Account.s3_name from the exported CSV and renaming Account.number to Account.identifier.

Coverage remained the same at 61.502% when pulling e95bae5ca35d61c99662bb2cc24182d7f674ed71 on issue_645_export_s3name_broken into 541d2a51b24c7b9156d1bef4d8fa79722ff81c81 on develop.


Android APK is not working

Hello. I setup the APK and it showed me this error. Did i do something wrong?

Did i do something wrong?

most likely. the error on the picture shows up when the device registration step has failed. make sure you've put the ip in right and that your device can access it, also make sure you've changed the aes method padding like mentioned in the guide.
if stuck, in some cases you can set up a proxy between a pc and your android device which. it is harder to get it fully working but easier to tell what's wrong afterwards.

This happens to me too. I tried Youtube 2.1.6.

Did i do something wrong?

most likely. the error on the picture shows up when the device registration step has failed. make sure you've put the ip in right and that your device can access it, also make sure you've changed the aes method padding like mentioned in the guide.
if stuck, in some cases you can set up a proxy between a pc and your android device which. it is harder to get it fully working but easier to tell what's wrong afterwards.

no reply for a bit of time from the original poster, if still needed reopen/make a new issue.


Last Week in Pony - January 8, 2023

The 'Remove json package from the standard library' RFC has been updated to 'new'
See the RFC for more details.

Version 1.3.0 of ponylang/net_ssl has been released.
See the release notes for more details.

The 'Add RFC for explicit self member access.' RFC has been updated to 'new'
See the RFC for more details.

Version 0.5.3 of ponylang/http has been released.
See the release notes for more details.

Version 0.4.3 of ponylang/http_server has been released.
See the release notes for more details.

Version 1.2.0 of ponylang/crypto has been released.
See the release notes for more details.

Version 0.53.0 of ponylang/ponyc has been released.
See the release notes for more details.

Version 1.2.1 of ponylang/crypto has been released.
See the release notes for more details.


Ability to create, store and manage custom playlists

Users should be able to create and manage custom playlists. These playlists can be loaded into the queue easily.

Depends upon #233

here is a sample export command that exports entire queue. You may have to modify this to fit your need.
import { GuildQueue, serialize, useQueue } from 'discord-player';
import { ChatInputCommandInteraction, EmbedBuilder, Message, SlashCommandBuilder } from 'discord.js';
import { Logger } from 'pino';
import { BaseSlashCommandInteraction } from '../../../classes/interactions';
import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../../types/interactionTypes';
import { checkQueueExists } from '../../../utils/validation/queueValidator';
import { checkInVoiceChannel, checkSameVoiceChannel } from '../../../utils/validation/voiceChannelValidator';

class ExportCommand extends BaseSlashCommandInteraction {
    constructor() {
        const data = new SlashCommandBuilder().setName('export').setDescription('Export tracks of this queue.');
        super(data);
    }

    async execute(params: BaseSlashCommandParams): BaseSlashCommandReturnType {
        const { executionId, interaction } = params;

        const logger = this.getLogger(this.name, executionId, interaction);

        const queue: GuildQueue = useQueue(interaction.guild!.id)!;

        await this.runValidators({ interaction, queue, executionId }, [
            checkInVoiceChannel,
            checkSameVoiceChannel,
            checkQueueExists
        ]);

        if (!queue.tracks.size) {
            return await this.handleNoInputMode(logger, interaction);
        }

        return await this.handleExport(logger, interaction, queue);
    }

    private async handleNoInputMode(logger: Logger, interaction: ChatInputCommandInteraction): Promise<Message> {
        logger.debug('No tracks found in the queue while exporting.');

        logger.debug('Responding with error embed.');
        return await interaction.editReply({
            embeds: [
                new EmbedBuilder()
                    .setDescription(`**${this.embedOptions.icons.error} You cannot export empty queue!**`)
                    .setColor(this.embedOptions.colors.error)
            ]
        });
    }

    private async handleExport(
        logger: Logger,
        interaction: ChatInputCommandInteraction,
        queue: GuildQueue
    ): Promise<Message> {
        logger.debug('Exporting queue.');

        const exported = queue.tracks.map((track) => serialize(track));

        return await interaction.editReply({
            embeds: [
                new EmbedBuilder()
                    .setAuthor(this.getEmbedUserAuthor(interaction))
                    .setDescription(
                        `**${this.embedOptions.icons.success} Exported queue with ${exported.length} tracks!**`
                    )
                    .setColor(this.embedOptions.colors.success)
            ],
            files: [
                {
                    name: `${interaction.guild!.name}_${interaction.guildId}_queue_export.json`,
                    attachment: Buffer.from(JSON.stringify(exported))
                }
            ]
        });
    }
}

export default new ExportCommand();


Upgrade a chart

Resolve https://github.com/InseeFrLab/onyxia-web/issues/352

Sorry for the late review, thank you for your work.

Thanks to you for the review

Here is my reveiw.


Use mask_secrets properly

Use the mask_secrets property from API config
Provide API support for admin to override masking

CLI
With and without --show-secrets
(virtualenv)vagrant@st2dev:~/st2$ st2 apikey list -dy
-   created_at: '2016-06-17T00:08:05.555610Z'
    enabled: true
    id: 57633f65d9d7ed1fc39c019e
    key_hash: '********'
    metadata: {}
    uid: '********'
    user: stanley

(virtualenv)vagrant@st2dev:~/st2$ st2 apikey list -dy --show-secrets
-   created_at: '2016-06-17T00:08:05.555610Z'
    enabled: true
    id: 57633f65d9d7ed1fc39c019e
    key_hash: f157ebc6ae10f87af9205b31e9492d156fbd036b12686d97c69536b04d8c05327d80fc467ffc7de6f0f518b86e860a8d06aff289ed81a66bdcb160b8f23a1add
    metadata: {}
    uid: api_key:f157ebc6ae10f87af9205b31e9492d156fbd036b12686d97c69536b04d8c05327d80fc467ffc7de6f0f518b86e860a8d06aff289ed81a66bdcb160b8f23a1add
    user: stanley

Todo

[x] cli updates
[x] tests

I'm personally not too opinionated about this - I think displaying a hash itself is fine since it's not a secret.

I think displaying a hash itself is fine since it's not a secret.

I was starting to question that assumption as well. Anyway, this is more or less a continuation of a previous decision so keeping with it until we conclude that key_hash is not a secret anyway.

Yeah, hash is by definition one-way so there should be no reason to hide it or treat is as a secret.
Having said that, I'm also fine with doing it, but I guess it could confuse some users and make them thing like we use symmetric encryption or something instead of hash if we mask it...

Having said that, I'm also fine with doing it

Keeping it as is for now.


implementation for "unhashable" is wrong

The implementation to make a class unhashable which has been added in #184 is wrong. See commit daa213d719743bf2e0f1db0d972ee622bc69102c for the changes.
The python data model docs at
https://docs.python.org/3/reference/datamodel.html#object.__hash__ state:

A class that overrides __eq__() and does not define __hash__() will have its __hash__() implicitly set to None. When the __hash__() method of a class is None, instances of the class will raise an appropriate TypeError when a program attempts to retrieve their hash value, and will also be correctly identified as unhashable when checking isinstance(obj, collections.Hashable).

Instead of raising a TypeError from __hash__(), the method should not be present at all, and a __hash__ = None should be in its place, like this:
class SomeClass(...):
    __hash__ = None

    def __eq__(self, other):
        ...

should be resolved in https://github.com/eleme/thriftpy/commit/9e5a86300bfa6850a8839226010b6dd78eff0b51


Transition from 0.6.3 to 0.7.1 makes saving variables impossible?

Describe your bug here.
Hello to anyone reading this, I've had a recent issue regarding saving variables using Lua.
For the 0.6.3 version of the engine, I've been using "initSaveData", "getDataFromSave", "setDataFromSave" and "flushSaveData" to save and reuse my variables in Lua. However, when transitioning to 0.7, the engine is unable to create the save file as I can't find it anywhere, has the keywords changed? If so, what are the new ones?
Thank you in advance for your answer.
~KillerAvecRage

Command Prompt/Terminal logs (if existing)
No response
Are you modding a build from source or with Lua?
Lua
What is your build target?
Windows
Did you edit anything in this build? If so, mention or summarize your changes.

I don't think that's the issue, my mod uses Save data, it's very likely that your script is either crashing before initializing the save data, or you are not flushing to save it: flushSaveData('KARHudConfigSaveFile')

Oh yeah it is working now, well okay, good


Preprocessing of the scATAC-seq data

Hi,
I'm repeating the third data application in the paper: align scATAC-seq with scRNA-seq data. But I can not find the preprocessing codes for the scATAC-seq data in this repository. Then I go to the tutorial website which is given in "README". It seems that the preprocessing of scATAC-seq data is done in R. Follow the tutorial and the description of data processing in the paper, I still cannot repeat the results in the paper.
Did I miss something or I misunderstood the description in the paper? If the complete codes are indeed not yet public, would you mind unloading the complete codes for the preprocessing of scATAC-seq data?

Thanks for your comments. @xwanaf
The preprocessing of scATAC-seq data is exactly the same as the workflow provided by Seurat vignette at https://satijalab.org/seurat/archive/v3.0/atacseq_integration_vignette.html.
The code for reproducing the results are also provided in our github repository jhu99/vipcca_paper.
Hopefully, these information would fix your problem.


Add documentation for css minification

In user-land one can install cssnano and pass it to postcss.config.js.

done.