Tailoring declarations for entry points

🔍 Search Terms
"declaration merging", "tree-shaking", "dead-code elimination"
✅ Viability Checklist

[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 isn't a request to add a new utility type: https://github.com/microsoft/TypeScript/wiki/No-New-Utility-Types
[X] This feature would agree with the rest of our Design Goals: https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals

⭐ Suggestion
The TypeScript compiler emits one declaration file per input, working from the exported symbols and their transitive type trees.
The suggested feature is to add a compiler option declarationEntryPoints to emit declarations for specific entry points such as src/index.ts such that only those "top-level exports" are included (along with the transitive type trees), skipping over symbols that are exported only for internal use (defined in more detail in motivation below).
// tsconfig.json
{
    ...
    "compilerOptions": {
        "declarationEntryPoints": [
            "src/index.ts"
        ]
    }
}

This is similar to the "*.d.ts rollup" feature in https://github.com/microsoft/rushstack/tree/main/apps/api-extractor:

You webpacked your library into a nice .js bundle file -- so why ship your typings as a messy tree of lib/.d.ts files full of private definitions?

Although the "messy tree" part is perhaps a matter of taste (whether to roll up declarations into a single file or emit as multiple files, but still without the private definitions).
📃 Motivating Example
When authoring a library, one often wants to split up the code into separate files, often exporting symbols for internal use and others for external use – the public-facing API of the library and what you would want to document using for example TypeDoc.
Internally used symbols are defined as those that are not in the transitive type tree of the type declaration entry point, e.g. dist/index.d.ts.
Meanwhile, the TypeScript compiler generates declarations per input file for each exported symbol and its transitive type tree and doesn't know about such a type declaration entry point or the idea that this file somehow defines the Public API.
As a result, packages come bundled with type declarations that are not used in practice.
While we could manually ask the compiler to strip out these internals using the @internal annotation, this is a tedious and error-prone process. Instead, we can now tell the compiler to emit declarations tailored to a set of entry points (which generally will correspond to the package subpath exports, often just a single input file).
💻 Use Cases

Optimizing the declarations bundled with published packages that have a well-defined public API.
Stripping internals using annotations is a tedious and error-prone solution, the proposal here automates the process.
Promotes modular code.

I'm not quite sure what this is describing apart from the status quo. Consumers are already seeing a minimal subset of your program through declaration emit.
Imports which aren't needed in the emitted declaration file are removed, so an importer of your library won't see those other files, so it's basically already the case that consumers see a minimal transitive tree. If needed you could write a post-build script to delete unneeded files, but they're basically benign.

As an example, consider @kafka-ts/core which is a library written in TypeScript.
In "utils.ts" we have a parseBrokers function that's exported and used internally in "kafka.ts":
import { parseBrokers } from './utils';

Meanwhile, a type declaration is emitted for this function in "utils.d.ts":
export declare function parseBrokers(brokers: TBrokers): string[];

But the function is not exposed – you can't import this function from your own code. Its type declaration could be removed as part of "dead-code elimination" (well, dead type).

Right, but the generated kafka.d.ts doesn't expose the import of utils in the first place:
import { Kafka } from 'kafkajs';
import type { IKafkaProps } from './interface';
interface IGroupedKafkaClientProps {
    [key: string]: Kafka;
}
interface IKafkaClientsProps {
    client: Kafka;
    getClient: (clientId?: string) => Kafka;
    getAllClients: () => IGroupedKafkaClientProps;
}
export declare function createKafkaClients(clientOptions: IKafkaProps | IKafkaProps[]): Promise<IKafkaClientsProps>;
export {};

Are you saying you want e.g interface.d.ts to be culled down to IKafkaProps + whatever IKafkaProps depends on?

Yes that's it – I want the parseBrokers function to be culled from utils.d.ts (given the specific entry point "index.ts").

Since this can generally be done syntactically post-build, there are a few projects out there doing something like this.
List courtesy @jakebailey :
https://www.npmjs.com/package/dts-bundle-generator
https://www.npmjs.com/package/rollup-plugin-dts
https://www.npmjs.com/package/tsup
https://www.npmjs.com/package/@microsoft/api-extractor
https://github.com/Rich-Harris/dts-buddy

To some extent, the fact that this list exists is perhaps indicative that it's a useful feature to perhaps include in tsc – especially if it might fit well with how the compiler is implemented which I don't know.

It's more the opposite. Us creating a seventh .d.ts bundler is us spending time doing something that other people are manifestly capable of, whereas other work (making TS faster, making TS have more / better language features) is work that only we can do.
There'd have to be some demonstration that none of these tools are capable of doing an acceptable job at the task, or that the functionality being in-box provides some substantial upside over the status quo apart from convenience.

The main upside is that this is something everyone who publishes packages written in TypeScript benefits from using, knowing that if you point the compiler to your src/index.ts file it will emit a declaration suitable for exporting that entry point.
But I'll concede that there's an impressive list of tools that already are capable of doing an acceptable job here (although such tools arguably complicate the tool chain, raise the bar for contributing and add boilerplate).


[composer] Enter vs Tab for Code Completion

Description:
This is one of the minor performance enhancement suggestion for the ballerina composer. Normally there is a difference whether to use code completion with tab or with enter.
Using enter will complete the statement as you would expect. Using tab will complete the statement and delete everything forward until the next dot, parentheses, semicolon or space.

But here enter and tab both complete the statement as we expected. So it would be better to differentiate these two methods.
Steps to reproduce: just try tab and enter for code completion
Affected Versions: all the versions have this

@inthirakumaaran this is a IDE specific feature and we use monaco editor for composer source editor. This feature is not available in monaco (as well as in VSCode refer https://github.com/Microsoft/vscode/issues/4878). Hence closing the issue.


Support for Cross Entity transactions

Cross-entity transactions
Background
Transactions are used in Service Bus (and generally in AMQP) to perform a series of operations atomically - either they all succeed or none of them do. As an example, suppose a user wants to complete a message that represents an order being filled and send another message that represents a notification to a customer, but only if both succeed - that is if an error prevents the message about the order being filled from being completed, they don't want to send the notification message. Service Bus transactions enable this feature. Where it gets tricky is if you are attempting to perform a transaction that involves multiple entities - for instance in the order example, if you have an Orders queue and a separate Notifications queue, the service has to perform some magic to get things to work correctly. Essentially the user has to tell the SDK that they want the sender that is configured to send messages to the Notifications queue, to send messages via the Orders queue. This allows the service to perform the transaction atomically because all the messages involved in the transaction are located on the same entity at some point. After the transaction is committed, the message that is really destined for the Notifications queue will be forwarded on from the Orders queue. The way that this was initially exposed in our T2 clients during preview was as follows:
        var client = new ServiceBusClient(connectionString);
        ServiceBusReceiver receiver = client.CreateReceiver(OrdersQueue);
        ServiceBusSender sender = client.CreateSender(NotificationsQueue, new ServiceBusSenderOptions { SendVia = OrdersQueue});

        ServiceBusReceivedMessage received = await receiver.ReceiveMessageAsync();

        using (var ts = new TransactionScope(TransactionScopeAsyncFlowOption.Enabled))
        {
            await receiver.CompleteMessageAsync(received);
            await sender.SendMessageAsync(new ServiceBusMessage());
            ts.Complete();
        }

Service Update
The send-via feature is unique to Service Bus and isn't really relevant to the user's workflow. In order to address this, the service has made updates to infer what the send-via entity is based on usage rather than requiring the client to specify it. To be clear, the service still uses send-via to perform cross-entity transactions, but the goal is to hide this from users.
The way it is implemented is that when the client alerts the service that it will be doing cross-entity transactions on an AMQP link, the first link that is established on the AMQP session becomes the implicit send-via entity. Any subsequent links that wish to participate in the cross-entity transaction would need to be created on the same AMQP session, and all operations will send-via the first link. This does introduce a subtlety in the usage in that any links established after the first link need to either be senders or if they are receivers, they have to be receiving from the same entity as the first link. Otherwise you would be saying to the service that you want to receive-via a different entity which isn't possible. This wasn't an issue with the explicit SendVia option because the client would be telling the service what the SendVia entity was explicitly, so assuming that part was setup correctly, a user could do operations in any order that they want. In practice, users will generally be receiving before sending when doing transactions so hopefully this will not be a major concern. Additionally, the service throws an exception with this setup so it would be caught during testing.
Another subtlety is that any operations that are done outside of a transaction scope with these cross-entity transaction senders/receivers will still use the send-via semantics. The difference is that if they are not part of a transaction the operations will be persisted to their final destinations immediately as opposed to waiting for the transaction to be committed by the user. This means that the same rule about the ordering of sender/receiver link applies outside of transaction scopes as well when using the new feature.
Usage
In order to support this feature in the Track 2 SDK, we introduce a new option on the senders/receivers/processors - string CrossEntityTransactionGroup.
        var client = new ServiceBusClient(connectionString);

        var sender = client.CreateSender(
            NotificationsQueue,
            new ServiceBusSenderOptions
            {
                CrossEntityTransactionGroup = "ordersGroup"
            });
        var receiver = client.CreateReceiver(
            OrdersQueue,
            new ServiceBusReceiverOptions
            {
                CrossEntityTransactionGroup = "ordersGroup"
            });

        using (var ts = new TransactionScope(TransactionScopeAsyncFlowOption.Enabled))
        {
            // throws as the receiver link is created after the sender link and they target different entities
            // if they targeted the same entity, this would be allowed
            // NOTE: in the SDK, the links are created lazily on the first operation that would use them. So we
            // assume in this example, these are the first send and receive operations with these entities.
            await sender.SendMessageAsync(new ServiceBusMessage());
            var received = await receiver.ReceiveMessageAsync();
            await receiver.CompleteMessageAsync(received);
            ts.Complete();
        }

        using (var ts = new TransactionScope(TransactionScopeAsyncFlowOption.Enabled))
        {
            // allowed as the sender link is created after the receive link
            var received = await receiver.ReceiveMessageAsync();
            await receiver.CompleteMessageAsync(received);
            await sender.SendMessageAsync(new ServiceBusMessage());
            ts.Complete();
        }

Design considerations

Looking at the API updates, a natural question is why do we even need this CrossEntityTransactionGroup option. Should we just have it on by default? The issue there is that this would likely hurt performance for users that don't need this feature and have an adverse impact on the service (since everything would need to use send-via). Additionally, by having users opt in with a string, they could configure multiple transaction groups within the same client.

What about just having a bool property like EnableCrossEntityTransactions? The issue here is that this would probably sound too inviting for users and many users would end up enabling it without understanding what it does. By leaving the option as a string, it will force users to read the documentation to understand whether they actually need this feature - they should understand specifically that there are drawbacks to using it if they don't need it (perf).
Additionally, by having users opt in with a string, they could configure multiple transaction groups within the same client.

What about transactions that span only a single entity? This option should not be set if a user does not need to span multiple entities in a transaction. They can just do transactions as before on a single entity and the implicit send-via will not be used.

Related PR: https://github.com/Azure/azure-sdk-for-net/pull/18402

Closing as this has been merged in and will be included in a future preview.

After further internal discussion, we are planning to go with the approach of having a single bool property. As discussed in design considerations:

What about just having a bool property like EnableCrossEntityTransactions? The issue here is that this would probably sound too inviting for users and many users would end up enabling it without understanding what it does. By leaving the option as a string, it will force users to read the documentation to understand whether they actually need this feature - they should understand specifically that there are drawbacks to using it if they don't need it (perf).
Additionally, by having users opt in with a string, they could configure multiple transaction groups within the same client.

The possible confusion of having to set an arbitrary string outweighs the concerns around limiting to a single send-via entity per client. If customers run into issues where they need multiple send-via entities per client, we can extend at that time to support TransactionGroups or some other mechanism to enable this.

In general, I like the boolean approach. One thing though that you have to consider is that with the previous design of using the transaction scope it would have been possible design atomic units of failure by wrapping and grouping things with a scope. With the new design this is no longer possible. Have you considered the angle that  customers might be using it that way? As an example
receiver = new MessageReceiver(connection, inputQueue);
sender = new MessageSender(connection, destinationQueue, inputQueue);
receiver.RegisterMessageHandler(
    async (message, token) =>
    {
        await sender.SendAsync(new Message(Encoding.UTF8.GetBytes("We always want this one to go out")));

        // atomic group
        using (var scope = new TransactionScope(TransactionScopeAsyncFlowOption.Enabled))
        {
            await sender.SendAsync(new Message(Encoding.UTF8.GetBytes("Should be atomic 1")));

            if (!message.UserProperties.ContainsKey("Win")) throw new InvalidOperationException();

            await sender.SendAsync(new Message(Encoding.UTF8.GetBytes("Should be atomic 2")));

            scope.Complete();
        }
    },
    ...
);

or even more advanced scenarios like
                    try
                    {
                        using (var scope = new TransactionScope(TransactionScopeAsyncFlowOption.Enabled))
                        {
                            await sender.SendAsync(new Message(Encoding.UTF8.GetBytes("Should be atomic 1")));

                            if (!message.UserProperties.ContainsKey("Win")) throw new InvalidOperationException();

                            await sender.SendAsync(new Message(Encoding.UTF8.GetBytes("Should be atomic 2")));

                            scope.Complete();
                        }
                    }
                    catch
                    {
                        await sender.SendAsync(new Message(Encoding.UTF8.GetBytes("Should always go")));
                    }

how would I be able to design a system where a message is allowed to get out with this new bool property?
Or even this scenario?
try
                    {
                        using (var scope = new TransactionScope(TransactionScopeAsyncFlowOption.Enabled))
                        {
                            await sender.SendAsync(new Message(Encoding.UTF8.GetBytes("Will not leak")));

                            if (!message.UserProperties.ContainsKey("Win")) throw new InvalidOperationException();

                            await sender.SendAsync(new Message(Encoding.UTF8.GetBytes("Will not leak")));

                            scope.Complete();
                        }
                    }
                    catch
                    {
                        //await sender.SendAsync(new Message(Encoding.UTF8.GetBytes("Will leak")));
                    }
                    finally
                    {
                        using (var scope = new TransactionScope(TransactionScopeAsyncFlowOption.Enabled))
                        {

                            await sender.SendAsync(new Message(Encoding.UTF8.GetBytes("Will not leak")));

                            await sender.SendAsync(new Message(Encoding.UTF8.GetBytes("Will not leak")));

                            scope.Complete();
                        }
                    }

Wouldn't it be much better to design a capability similar to the batch? For example something like
using ServiceBusAtomicMessageBatch atomicBatch = await receiver.CreateAtomicMessageBatchAsync();
atomicBatch.TryAddMessage(...)
await sender.SendAtomicMessagesAsync(atomicBatch);

with that, the previous scenarios are still possible and since the receiver is in charge of creating the atomic batch the relationship between the receiver and the sender becomes even clear. On top of that the weird problem of knowing when the TxScope is copied, that you always require async flow options and other shortcomings of txscope are gone. This makes the lib also automatically more interoperable due to no longer needing to rely on the transactions API.

In general, I like the boolean approach although I think it is too simplistic considering the power of the previous API. One thing though that you have to consider is that with the previous design of using the transaction scope it would have been possible design atomic units of failure by wrapping and grouping things with a scope. With the new design this is no longer possible. Have you considered the angle that customers might be using it that way? As an example

Perhaps I'm missing something but I'm not sure why these scenarios wouldn't be possible with the bool property. When setting the bool property equal to true, all links will be created under the same AMQP session. This will allow cross entity-transactions to work provided the first link that attached makes sense to be used as the send-via entity. TransactionScopes are still expected to be used. This bool is just replacing the viaEntity param from the previous library. The property would not need to be set for transactions on a single entity.

OK now I understand. To me that wasn't clear even after rereading it previously multiple times. The only information I had available was the information in this issue and not all the background discussions and context. Now that you clarified the bool property works similar to the group key I can envision how the code would look like. Thanks!

That's fair. I've updated my comment to include a code snippet using the bool property.

I still think the API proposal I've made would have several intention revealing benefits like I mentioned in the previous comment. T Scope has the additional disadvantage that it has to be explicitly suprressed when other Transactional resources are at play to not enlist into ambient contexts (which with the SDK tx would even be actively prevented like before right?). The API proposed wouldn't have that shortcoming

We did consider doing something more explicit like:
var client = new ServiceBusClient(connectionString);
ServiceBusTransactionGroup txnGroup = client.CreateTransactionGroup();
ServiceBusSender sender = txnGroup.CreateTransactionalSender(OrdersQueue);
ServiceBusProcessor processor = txnGroup.CreateTransactionalProcessor(OrdersQueue);

processor.ProcessMessageAsync += MessageHandler;
processor.ProcessErrorAsync += ErrorHandler;

async Task MessageHandler(ProcessMessageEventArgs args)
{
    using (var ts = txnGroup.CreateTransactionScope())
    {
        // the ordering here does matter
        await args.CompleteMessageAsync(args.Message);
        await sender.SendMessageAsync(new ServiceBusMessage());
        ts.Complete();
    }
}

The downside is that this is a lot of new API surface area for what is a more advanced scenario. I think the same is true for your proposal, while more explicit, it adds a lot of surface area. Our current thought was to start with the bool property with the thought that we could always add something more explicit in the future if this property turns out to be limiting for these use cases.

I do agree that it adds a bit more surface area. Yet it would allow to also properly design into the API surface area the restrictions of the cross entity transaction like the maximum allowed elements a cross entity transaction can contain.
I also think that ambient transactions are non-intuitive to work with and require a high degree of API understand of the non-obvious transaction scope while a dedicated transaction group or "batch" for the cross entity transaction could be much more lightweight to carry around.

https://github.com/Azure/azure-sdk-for-net/pull/19161 merged

Closing for tracking purposes but feel free to add additional comments or thoughts before we GA this feature.


Unable to resolve "./main.css" from "App.tsx"

I try to follow nativewind.dev docs to start a project but I stack on Unable to resolve "./main.css" from "App.tsx"
I search on google but that doesn't fix my problem then I cloned this repo from the expo folder and tried to run this project but the same problem showed.
Please tell me how to start a project without any bugs. Maybe it's my problem but I need a clean step to create a new project with nativewind. thank you.

Sorry about that, updated the example. The main.css is just for web


abide, manual rating ... what the ground truth ?

Hello,
Thank you for providing this nice tools and sorry if it is not the right place to ask.
I am trying to replicate the learning on abide dataset, and I wonder how to use the manual ratting.
First I do not know which file to choose,
y_abide.csv or  labels_abide_allraters.csv (in the archive subdir)
I try with the first one, and I found half of the line where the raters disagree ...(it is quite a lot ! )
with the second one I get 764 consistent rating over 1100.
So which one to use, and what to do in case of disagreement ? which label should I set ?
Since mriqc is performing a binary classificaiton, what to do with "doubfull" label is it treated as noise ?
So I do not see how to deduce a ground truth label (0/1) on all abide T1w
Many thanks for your help,
and sorry if I miss the explanation in one article
Romain
PS what about abide_MS.csv and abide_DB.csv ? it seems to contain a rating by one rater, to a subpart only

Hi all,
I would also very much like to know this :-) also, can someone tell me what -1, 0, and 1 mean? I am assuming that 0 means 'maybe', but what about -1 (is it reject or keep?) and 1 (again, is it reject or keep?).
Thank you very much for any help with this,
Kind wishes,
Charlotte

hello
from what i understand, reading the code they validate the classification with the following -1 = artefacted 0 or 1 is good (from the rater point of view 0 is doubtful and 1 is good)
Concerning the multiple raters I understood that they randomly choose one of the 3 raters ... this is not easy to deal with variable ground truth ...

Thank you Romain, very helpful! Now we just need to work out which one is the correct csv, y_abide.csv or labels_abide_allraters.csv. I'm assuming it is y_abide, given that the other one is in the archived folder?!

Yes I made the same assumption, but I am not sure at  all ...
the strange thing is that in the archive one, theyre is no empty value (so all the rater note all the volumes)
I did not check the exact difference between the both file. would be nice if @effigies  or  @oesteban  could confirm .
Many thanks

My thoughts exactly! I have also emailed Dr Esteban directly - will let you know when he gets back to me. Best wishes, C


[ART-6667] only create defined advisory

ref: https://issues.redhat.com/browse/ART-6667
only create placeholder advisory defined in assembly

Getting confused while reading all the chained ifs. Can't we have:

set impetus = 'RHEA if GA, RHBA otherwise
and loop through the advisories in the assembly definition, and create 'em if not exist?

Or what is the real reason for all this logic?

I guess the previous approach is caused by each advisory needing different args for creating


chore(website): update to version 0.39.0

What type of PR is this?

Uncomment one (or more) /kind <> lines:

/kind content
Any specific area of the project related to this PR?

Uncomment one (or more) /area <> lines:

/area documentation
What this PR does / why we need it:
As per release process
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:

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

Needs approval from an approver in each of these files:

OWNERS [LucaGuerra]

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

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

Needs approval from an approver in each of these files:

OWNERS [Issif,LucaGuerra,leogr]

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

LGTM label has been added.  Git tree hash: 66030e7012411618ccc8f8d5f5e324b0d097089e


Hindi translation part11 #244

Completed the issue #244  :

I've translated the entire .md file from English to Hindi. This translation covers all sections and comments within the file, ensuring that the documentation is fully accessible to Hindi-speaking users.

The structure and functionality of the content remain unchanged; only the language has been updated.

The translation has been reviewed for accuracy and coherence. As this is a documentation change, no additional functional testing was required.

Unnecessary files removed.

If any specific sections require further clarification or additional language support, please let me know. The translation is intended to make the documentation more accessible and user-friendly for Hindi speakers.

Does this one have it too? I only see the deleted file and the altered file. Please let me know. @rcallaby


Introducing and removing animated elements at different time settings

Feature Description
A user has requested a feature to introduce and remove text elements at a set time on a story page. For example, text set 1 would appear first on the page, then text set 2 would appear a few seconds later on the same page.
Alternatives Considered
Animating a text element allows you to introduce the element at a set time, but doesn't remove it at a different time.
Additional Context
Related support topic: https://wordpress.org/support/topic/text-duration-limits-on-video

Related: #3414

I don't think we'll have an animation timeline anytime soon that would enable this.


Add tools to make target ensembles

We should add some tools for making target ensembles. The easiest one is a pure-Python implementation (like @clpetix has) that does displacements of the particles around their lattice sites and computes g(r). A more advanced option could run a simulation with a tethering potential, which would allow us to include things like a hard-core that are more annoying to do in only Python.

Good reference of lattices.
https://www.atomic-scale-physics.de/lattice/struk/a15.html


encode char less than max lenght

Hi! I play with your car example and when I change value of vehicle code from "abcdef"  to  "abcde"  (removed 'f' symbol) a program fails with the exception
Exception in thread "main" java.lang.IndexOutOfBoundsException: srcOffset out of range for copy: offset=0
	at baseline.CarEncoder.putVehicleCode(CarEncoder.java:268)
	at uk.co.real_logic.sbe.examples.ExampleUsingGeneratedStub.encode(ExampleUsingGeneratedStub.java:121)
	at uk.co.real_logic.sbe.examples.ExampleUsingGeneratedStub.main(ExampleUsingGeneratedStub.java:78)

in generation code:
        if (srcOffset < 0 || srcOffset > (src.length - length))
        {
            throw new IndexOutOfBoundsException("srcOffset out of range for copy: offset=" + srcOffset);
        }

Can you explain this check? Why I can't encode less than 6 characters in this field?

That convenience method is expecting all the characters. If you want to write less then write the individual characters.
The error message could be better which I will pick up.

You should also consider what this means to the reader. I'd fill the unused characters with nulls so they are clearly not used.

Thank you for your explanations !


adding new dimension  on ModPE?

Idk ?maybe createDimension(dim.Id,portal block id,should gen like nether or normal?,native tile);

What's the point of creating a dimension if it will only follow the Overworld or Nether generator? The issue with making this possible, is that it would need A LOT of stuff. It would need: fog colour, world generator (extremely hard to code I believe), mobs that spawn and so much more. If you want to make a dimension, make an addon.

Yesss!

Many of the PC mods related to the dimension stuff generates like the overworld and some ModPE functions require a lot of code too such as adding your own inventory block

Creating blocks and items with ModPE isn't much code. Just a few methods. Creating a dimension is HUGE, would be extremely hard to implement in ModPE, and if it was it'd be really basic.

I said creating a block that can store items like a chest not a normal block/item

This would be impossible,  a new dimension requires so much more than those parameters
Ex-
Average Y
Min/Max Y
Fog
Sky
Trees
Water
There's more but I forget :/

Native tile but still


New functionality - Retrieve the description for identical column names from upstream models

This is a:

[ ] bug fix PR with no breaking changes — please ensure the base branch is main
[x] new functionality — please ensure the base branch is the latest dev/ branch
[ ] a breaking change — please ensure the base branch is the latest dev/ branch

Description & motivation
When using the macro generate_model_yaml it can be cumbersome to have to copy/paste the description of the columns from the upstream models, especially when many models are joined together.
The new feature accessible via the flag upstream_descriptions=True (defaulted to False) parses the Jinja graph to retrieve existing descriptions in parent models.
An example of output is the following, when the upstream model has an existing description of description column a:

I am not too sure where I should add the entry in CHANGELOG.md
Checklist

[x] I have verified that these changes work locally
[x] I have updated the README.md (if applicable)
[x] I have added tests & descriptions to my models (and macros if applicable)
[x] I have added an entry to CHANGELOG.md

Thanks for this awesome enhancement, @b-per! 💪
Integration test and readme looks great.
Two things for you to do:

I left feedback on two very small things
Example for adding CHANGELOG entry below

Changlog entry

I am not too sure where I should add the entry in CHANGELOG.md

You can follow this pattern for adding to the changelog. Something like this:
# Unreleased
## New features
- Awesome description of fabulous new feature here ([#61](https://github.com/dbt-labs/dbt-utils/pull/61))

I got quite puzzled about why the test was passing locally but not in CI, before I realized that I needed to add a dbt run to the CI step to get codegen to list the column of the downstream model.
It should be all-good now!


fix date selector cut-off

this affects both the regular data dashboard and the slowzones tracker
this fixes #217
attached are clips of both

to clarify, it adds an intermediate stage between phone-screen width and desktop-screen width

I want to make sure the chart legends and toggles look okay on the intermediate size before this goes in.

that would be good to make sure, I sort of haphazardly used the code from the other two stages

A few things caught my eye:

Can we close the space between the toggle and the line selector?
Can we add some space here between the left and right components? Maybe the end date picker could then be aligned with the selector above it and the little x can float in the region off to the right? No need if that's too complicated though.
3-4) This should at the very least be aligned with the chart like for mobile. You might just want to borrow the mobile code entirely for these components.

I'm no expert on css, but maybe we should add a section (<1300px) for the shared chart-extras/legend stuff, and then reserve the (770px-1300px) section for the tablet-specific config styles and the (<720px) section for the mobile-specific config styles.

here is the fix for 3/4
as for 1/2, i'm not quite sure how to change it, but even if i did im not sure it'd look much better.
here's how the same layout looks in single-date mode:

not sure it's a huge deal either way. let me know!

@austinjpaul what do you think? forgot to mention you


Some generated images are noise in one batch in the training

Hi, I recently started training the consistency model using the code provided in the repository. However, I noticed that some generated images in one batch appear as noise. Could you please help me understand the possible reasons for this issue and suggest any solutions or workarounds to fix it? Thank you in advance for your assistance!

Hi @zewei-Zhang! Thank you for your question. Can you please share the configurations you used?
The code saves samples before training starts for just aesthetic purposes, so it's possible that the noise-like images you observed were these samples. So please check it out!

Hi @zewei-Zhang! Thank you for your question. Can you please share the configurations you used?
The code saves samples before training starts for just aesthetic purposes, so it's possible that the noise-like images you observed were these samples. So please check it out!

Hi, I save the comparison between real images and generated images during the training process, and after a certain number of steps, the generated images still have a lot of complete noise. The configuration I use is like the paper. And I encountered this problem with your code and my own code, as well as with the OpenAI code that just open sourced. This may be related to the learning rate, when I lowered from 4e-4, the issue was solved.

I'm glad you were able to solve the issue! 😉 Just to let you know, I set the learning rate to 8e-5 and used a batch size of 160 for cifar10 experiment.


fix token secret cli parsing

Problem
twurl crashes with a confusing error like

0.9.3/lib/twurl/oauth_client.rb:138:in `gets': No such file or directory @ token_secret

when you supply the -S parameter to twurl authorize ie.

twurl authorize -c client -s client_secret -a token -S token_secret

because the -S parameter does not take an argument, even though the docs say it should
Solution
make -S take an argument (and test that we can parse the argument)
Result
it doesn't crash

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

Coverage increased (+0.2%) to 88.173% when pulling 5610df3490e2148c9fc0d049d5ef1d4ab290f804 on woparry:op/fix-token-secret into d561e70f16b98dcd6644cb3b557ce5b65d2cb3f7 on twitter:master.

Hi @woparry thanks for the PR - license helper is showing the CLA is not signed yet. If you could double-check, I can bring this in later today.

Thanks! I clicked on the link and it says "you have signed the CLA for twitter/twurl", but when I click "recheck" on this page nothing happens.

OK I'm going to go ahead and merge (but will not immediately make a new release) - need to look into this CLA thing, it might be broken.


Possibly better predictor than qoi2avg

That would changes qoix bitstream, how many bits does it win?

Quite spectacular:
Before
TOTAL  decode mpps   encode mpps      bit-per-pixel
165.00        108.39            8.29501
TOTAL  time = 2.56777 secs
After
TOTAL  decode mpps   encode mpps      bit-per-pixel
150.65         96.30            7.94081
TOTAL  time = 2.67702 secs
That's a 4.2% bitrate reduction for a 10% slowdown.

Can push it further by having a different predictor for first pixel in each row.
TOTAL  decode mpps   encode mpps      bit-per-pixel
145.97         97.22            7.93607
TOTAL  time = 2.74237 secs

With a few obvious optimizations:
TOTAL  decode mpps   encode mpps      bit-per-pixel
166.17         91.49            7.93607
TOTAL  time = 2.68148 secs

[ ] Predict whole scanline in encoder in advance, should be faster, can do it 2x pixels at once.
[ ] can we adapt that to QOI-10b?


#2029: Completely replace yarn with npm commands throughout the project

closes #2029 #2030 #2031 #2008

I think we also can update read.me files in packages/ketcher-core etc

I think we also can update read.me files in packages/ketcher-core etc

Well, for people who use our packages as npm modules - we don't really care if they use npm or yarn, they should work for both. These changes are mainly for people who work with the repository directly (like us 😄 )

Hello @papillot , thank you checking this PR and pointing this out! I believe you are correct about the reason that the error appears b/c the library is not part of the non-dev builds.
Currently ketcher is mostly oriented on using its separate packages (ketcher-core, ketcher-react, etc) and building your own app (e.g. using the /example or /demo directories from the repository)
In the future we may be looking to avoiding using husky for non-dev builds.
Hopefully this clarifies things a bit, thank you for your input again!


Fetch multiple markdown files

Hi,
I was wondering if there's any easy way to fetch multiple .md-files into the same html-document?
What I'm basically after is a way to have multiple .md-files, say "chapter-1.md", "chapter-2.md" etc. and then have one "index.html" which pulls in the markdown from all those files and runs bootmark.
Using several bootmark tags works, but then they are completely isolated entities regarding TOC etc.
Do you have any suggestions on how to implement this, or any plans on supporting it?
Best regards,
Niklas

I'm trying to figure out what the best approach to this would be...
It's either make the code that handles toc creation look thru the entire document and generate a toc from that.
Or, allow users to pass an array of urls to the fetch property. Then all the files would be fetched, and merged to be processed as one. The toc code wouldn't change much. This might allow people to have multiple markdown files within a single element, but also allow them to have certain files be isolated from the rest, at least toc-wise.
In short,yes. I do plan to add this feature. If you have another way that might be better or easier to use, let me know.

if you really want to try it out, this feature is working on the development branch. I'll keep testing it and try to solve bugs as I find them and then update the master/stable branch

Thanks for the fast reply!
I'll take it for a test run tonight and let you know how it goes.

@obedm503 It seems to work great, thank you!
I have it up and running here:
https://niklasnorin.github.io/thesis/

great. a suggestion: I noticed that you passed
 as the join string. This works fine but showdown (the markdown parser) interprets
 as markdown and so it wraps it in
 tags. If all you want is a line break, you can just pass nothing/empty string like so
<bootmark fetch="['file1','file2']" join="">

or pass in space
<bootmark fetch="['file1','file2']" join="     ">

bootmark automatically adds line breaks before and after the join string for safety measures.

This is now on the latest stable release v0.6.1


feat: adding option for injecting secrets to app_component

This PR is included in version 0.17.0 :tada:


Integrating Chart.js in Django

We ask that you please be patient as our team works through approving and publishing all articles/tutorials in a timely manner. Allow 1-3 days for a topic to be reviewed and/or approved - allow 3-7 days for an articles to be reviewed and/or published.
Be sure to visit our Resources Page for tools, resources, and example articles to go over.
NOTE: (Please ensure that you have only one open issue + linked pull request at a time. This will ensure that we complete the article in a timely manner from inception to publishing.)
NOTE: We tend to stray away or tend not to publish reviews/comparisons of commercial product offerings.
We're looking for the first 2-3 paragraphs of the article that appropriately summarize what your article will be about.
Proposed title of article
Integrating Chart.js in Django
Introduction paragraph (2-3 paragraphs):
This article will introduce you to chart.js. You will also get to see how you can use chart.js to create charts in your django application.
Key takeaways:

How to integrate chart.js in a django app
How to create beautiful charts
How to create dynamic charts

References:
N/A
Templates to use as guides

How To Guide Template
Software Review Template
Tutorial Template

@shosenwales
Good afternoon and thank you for submitting your topic suggestion.
Your topic form has been entered into our queue and should be reviewed (for approval) as soon as a content moderator is finished reviewing the ones in the queue before it. 🚀

Not a problem @hectorkambow
Thanks!

Sounds like a helpful topic - let's please be sure it adds value beyond what is in the official docs and what is covered in other blog sites. @shosenwales
Please be sure to double-check that it does not overlap with any existing EngEd articles or incoming topic suggestions (if you haven't already) to avoid any potential article closure, please reference any relevant EngEd articles in yours. - Approved


Private Management API

We should default to a private management API endpoint. At the moment we always use a public endpoint with a whitelist.
The endpoint should only be accessible via VPN for both customers and us.

We have private clusters implemented with proxy support. There is a follow-up epic to support private clusters without a proxy.
Closing.


Indexed-db global refactoring

Theoretically, there is a way in which we can get rid of Indexed-db global simply by passing all data as parameters to the wasm function.

view_server.rs
View server (aka block scanner) uses Indexed-db only to save and read advices.
The solution is that we should add advices discovery as one of the conditions for calling flush_updates(). Currently we only call flush_updates() when we detect new notes and swaps. Also in this case we will need to add advices to ScanBlockResult and also pass advices already stored in indexed-db when initializing view server.
My assumptions:

we won't lose in scanning speed because we won't actually call flush_updates() more often than we do now because in blocks where we detect advices we are also guaranteed to detect swaps and call flush_updates() anyway
We will not pass more data during initialization than we do now. We can easily recognize already used advices from unused ones. Used advices can be ignored and not passed during view server initialization, and considering that swap claim will almost always automatically occur in the next block after swap, in practice advices will be unused for only one block, and will almost never be passed during view server initialization.

tx.rs
We use reading from indexed-db to construct transaction view and transaction perspective.
The point is that only during the TxV and TxP generation itself we can determine which notes and assets data we need. This is the main reason why we have to read data from indexed-db directly and we can't prepare it on TS side and pass it as parameter, and passing all notes and swaps records as parameters seems like a very bad idea.
The solution is to decompose the transaction_info() wasm function into several smaller helper wasm functions, and move the TxV and TxP generation itself to the TS.

This does not lead to additional code duplication.  We already have 2 different functions for TxV and TxP generation for wasm and pcli.

wasm_planner.rs
For swap_claim(), there is no difficulty to pass SwapRecord as a parameter, having previously prepared the data on the TS side.
For plan(), we can move the implementation of this function to the TS side.
First we call planner.notes_requests() and get NotesRequest
then, based on the received NotesRequest, we prepare notes data on the TS side.
And finally call plan_with_spendable_and_votable_notes() with already prepared data.

I think I could quickly test the proposed solution for View server, and if it works, then other steps to get rid of Indexed-db are definitely possible.

@grod220 should we consider closing this as "not planned"?

Yes, with the new Storage generic, think most of my qualms with this are addressed


New version: Mapillary.MapillaryTools version 4.5.0

Created by 🥟 Dumplings in workflow run #9136.

Log
Updated: 4.4.1 → 4.5.0
Submitting WinGet manifests
Creating manifests
Uploading manifests and making commits
Creating a pull request

Microsoft Reviewers: Open in CodeFlow

@wingetbot run


GEOMESA-2270,GEOMESA-2302 Infer schema and converter from geojson files

Supports geojson parsing of geometry collections

Signed-off-by: Emilio Lahr-Vivaz<EMAIL_ADDRESS>

note: stacks on top of #1980


importccl: ignore query params when detecting file compression from suffix

PR: https://github.com/cockroachdb/cockroach/pull/38521
From release notes:

Enabled automatic detection of compression schemes on filenames in IMPORT that have parameters after the path. [#38521][#38521] {% comment %}doc{% endcomment %}

No doc updates needed.


IE11 Support

Check current support for Scroll Snapping in IE11 +
Add babel polyfills to webpack

https://caniuse.com/css-snappoints
See the notes section for IE11's restrictions

@HIMISOCOOL thank you for pointing that out. According to Statcounter Global Stats, I decided to not support IE anymore.


Re-export all causes "To get a node path the parent needs to exist while parsing file"

I have the following code:
file0.js
import * from 'file1.js';

file1.js
export * from 'file2.js';

file2.js
export { default as someName } from 'file3.js';
export { default as someOtherName } from 'file4.js';
// ...

and I'm trying to compile it with file0.js as the root using:
"babel-core": "6.2.1",
"babel-preset-es2015": "6.1.18",
"babel-preset-stage-0": "6.1.18",
"babel-preset-react": "6.1.18",
"babel-plugin-transform-object-assign": "6.1.18",
"babelify": "7.2.0",
"browserify": "11.2.0",
...

The build crashes with the following error:
/../path/to/file0.js: To get a node path the parent needs to exist while parsing file: /../path/to/file0.js

I found only a single result on Google and it points to issue that doesn't exist anymore, neither do any other issues linked from there (here's a cached version), and it's connected just by a comment anyway.
If I import * from 'file2.js'; in file0.js directly, everything's fine, so the issue seems to be the export * from ..., which should be valid ES6, at least according to this article.
Is there an issue with export *? Is there any work-around or ETA of a fix?

This is the babel website repo for docs issues - if you have a bug then report it to phabricator.babeljs.io otherwise try stackoverflow/slack

Thanks and sorry for the bother. For anyone coming through here, the issue is tracked here.


Clarification on trampoline examples and callee-save expectation for non-x registers

The spec states that

The attribute tells the C compiler to use callee-save for all registers, so the handler has to "pay as it goes" to
use registers, and only save the full caller-save set if it makes a nested regular C call.

As I understand, the trampoline examples do make regular C calls to the handlers, and save the corresponding x registers. They do not save f registers. Same argument could be made for v registers, although this is more far-fetched.
Are those examples intended for no F-extension systems. Should handlers not use f registers? If you don't explicitly disallow it, it will be used by somebody.
This issue is not a concrete suggestion, but first of all a request for comments.

Yes, we should add a comment that the example code doesn't account for presence of f or v registers.

closed by pull #326


Sorting in results grid not working when clicking column header

System information:

10.14.6 (18G87)
DBeaver version 6.1.5
Additional extensions: Excel / Office extension

Connection specification:

Snowflake
Snowflake JDBC 3.8.8
Do you use tunnels or proxies (SSH, SOCKS, etc)?  No

Describe the problem you're observing:
After running a query, clicking a column and sorting by it has no effect on the order of the records. The sort arrow in the header changes, but the order of the data does not.
Steps to reproduce, if exist:
Run a query. Click the column header of a column to sort by that column.
Not sure if it's related to https://github.com/dbeaver/dbeaver/issues/3407 or not

I can't reproduce this.
Do you mean that sorting doesn't work at all, in all tables, all databases?

我无法重现这一点。
你是说在所有表，所有数据库中排序都不起作用？

I have the same problem with mine

I can't reproduce this.
Do you mean that sorting doesn't work at all, in all tables, all databases?

I think it only happens if I have an explicit ORDER BY in my query. It will re-run the query as if it's sorting, but doesn't actually change the sort. if I remove the ORDER BY, then it works.
Maybe that's the intended behavior. I'd like to be able to change the sorting after the fact though, without having to comment out my ORDER BY

This may happen if nested ordering queries are used by dbeaver, In this case Snowflake returns different query metadata and dbeaver looses previous state.
Workaround: disable nested queries for ordering:

This bug still exists.

FWIW, I thought I was having this problem until I noticed that I had two columns with sort enabled.  Since the first column was id, it didn't matter what else I tried to sort by.

This bug still exists.

Yep, still exists for me too.

I thought I had the same issue, but I just discovered it's a human error.
It looks like DBeaver supports sorting on multiple columns.
So, if you click ↑ or ↓ on columnA to sort by it (it works)
Then later click ↑ or ↓ on columnB, it'll appear broken, but I think that's because it's being added as a secondary sort column.
If you'd like to sort by columnB, you must first de-select the sorting arrow to default ↕ on columnA


Fix unicode issue with printable characters in log

The current code in network.py output the key name and the value to the log on store requests which can garble and crash the terminal on certain character sequences.
My fix is to only write ASCII characters to the log with non-ascii characters encoded as hex (and indicated as such.)

Hey @robertsdotpm - thanks for this.  Could this just be an issue w/ not having your terminal character set be utf-8?

I think the problem is that not all unicode characters are designed to be printed. Some of them do all kinds of weird things like flip text backwards or span multiple lines if they're actually printed. The problem we ran into with using this DHT is that when you store pure binary upacked data like Python structures and the like: you could end up getting one of those weird characters even if the terminal is UTF-8 compatible and then from then on you have a terminal where every character in the shell looks like you tried to open a binary file with notepad. This is what was happening with on Ubuntu but the problem seems to also exist on Windows with some people reporting crashes.

Makes sense.  What if the debug method just encoded to ascii (ignoring any non-convertable characters) prior to printing?

That would work but then you don't actually know the full information that comprises the key or value in the DHT. The reason I added hex is so you can work out the binary contents if there's a problem. The current code indicates whether the text is ascii or hex. If it's ASCII it hasn't been encoded to hex and you can assume the keys can be accessed as-is. But if its hex: the value in the logs aren't literal representations of the unicode.
Whatever you want to do though. Hex isn't needed if you want to keep it simple.

What if you just add a def debug_encoded(self, message, args, **kw) method to Logger that encodes each arg prior to interpolation into the message?


Update libcloud to latest version 1.0x on all supported platforms

[] Redhat 7
[] Redhat 6
[] Redhat 5
[] Debian 8
[] Ubuntu 16.04
[] Ubuntu 14.04
[] Ubuntu 12.04

not happening

forgot to clear estimate, libcloud 1.x.x not supported by any major OS yet, not even in experimental sid


📝 Add notebook on ORM lazy loading behavior to FAQ

You could use the existing db from the bio guide! "lndb load testuser1/mydata" has the data you're interested in!

You could use the existing db from the bio guide! "lndb load testuser1/mydata" has the data you're interested in!

😆 thank you! I realized I don't fully grasp how nbproject works and I want to understand why this is not passing, so decided to take my time with this one over the weekend.
Let me know if you want this merged quickly and I'll use the db from the guide.

You'll need to update the query for the featureset by something like this:
features = ln.select(lns.Features, id=dobject.features[0].id).one()

Or you retrieve the dobject within a session and then lazily load the associated features
with ln.Session() as ss:
    dobject = ln.select()... # query from the testuser1/mydata instance
    features = dobject.features[0]

Oh, no hurry here! Just thought I'll add this as I noticed it yesterday but was rushing and didn't drop a comment!


neptune_helper: refactor

This PR modifies the Neptune helper so now instead of getting the host and the port of the Neptune endpoint from environment variables, it receives them in two parameters. It also delegates to boto3 the work of establishing the AWS Session from the environment and, finally, the function is renamed from
iam_connect to get_neptune_iam_connection.

Does it make sense to continue passing the env vars NEPTUNE_HOST and NEPTUNE_PORT in the Docker examples?

Does it make sense to continue passing the env vars NEPTUNE_HOST and NEPTUNE_PORT in the Docker examples of the README?

No it doesn't good catch, changing it.


Update qlvideo to 1.88

After making all changes to the cask:

[x] brew cask audit --download {{cask_file}} is error-free.
[x] brew cask style --fix {{cask_file}} left no offenses.
[x] The commit message includes the cask’s name and version.

Additionally, if updating a cask:

[ ] If the sha256 changed but the version didn’t,
provide public confirmation by the developer: {{link}}

Thank you for the contribution. It was merged directly as 3675391fd89486895ab1d4bc6c1acb78d49ed84c. Your contribution is still credited to you.


Break out locales into own JS files for browser

Hey there, thanks for making this fantastic library! I'd like to conditionally load locales based on the user's settings so that those with slower connections don't have to wait for resources they don't need. So could you provide a separate js file per locale that automatically adds itself to the library once loaded? Would appreciate this very much!

@vonWolfehaus Sounds like a nice feature!  I won't have time to tackle this currently so I'd welcome a PR if you want to take a crack at it.

I'm going to close this for now but I would welcome a PR.


Openldap in local network

We have a lab of imacs.
I try to create an openldap server in one of the computers and connect the other ones with this server.
docker run --name ldap-service --hostname ldap-service  -p 389:389 -p 636:636 --detach osixia/openldap:1.1.8
Other imacs can recognize local IP of the LDAP server, but no matter what I tried, I can't login with the users defined on the LDAP server.
Is there anything extra I should do to connect local network machines with each other?
Thank you.

@tolgafiratoglu please first note that 1.1.8 version is ~ 3years old and I would first suggest to use a newer version
Second, I have set up the following on my local network:

MacBook Pro running MacOS Mojave 10.14.6 and docker engine 19.03.5 community edition
ifconfig tells me that this machine has <IP_ADDRESS> as its local network IP address
docker run --rm --name ldap-service --hostname ldap-service -p 389:389 -p 636:636 --detach osixia/openldap launched on this machine
ldapsearch -H ldap://<IP_ADDRESS>:389 -x -b dc=example,dc=org -D "cn=admin,dc=example,dc=org" -w admin launched from my Synology NAS (Linux like)

The result I get is correct:
# extended LDIF
#
# LDAPv3
# base <dc=example,dc=org> with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#

# example.org
dn: dc=example,dc=org
objectClass: top
objectClass: dcObject
objectClass: organization
o: Example Inc.
dc: example

# admin, example.org
dn: cn=admin,dc=example,dc=org
objectClass: simpleSecurityObject
objectClass: organizationalRole
cn: admin
description: LDAP administrator
userPassword:: e1NTSEF9ZTJHeS8rUktZeitVVk9UeFBiYkRFQ1hOSkVkVGZyeVc=

# search result
search: 2
result: 0 Success

# numResponses: 3
# numEntries: 2

If this does not work, may be you should check firewall/security settings on your machines
Hope this helps


Implement dynamic og-images using @vercel/og

Recently Vercel announced a cool new package called vercel/og. Read the announcement here.
This solves a long-standing issue of having to manually generate OG Images for static sites.
I've deployed a sister project where the image generation is handled.
You can check the implementation here

https://github.com/Front-End-Coders-Mauritius/vercel-og-next/pull/1

Using this service, which is running on vercel edge, we can now have dynamic og images in frontend.mu
Some examples:

This is really cool, really like how you used this cool API for these, honestly really striking.


Negative signal strength issue for lenovo android 6.0

Two devices are close to each other but one got positive signal strength (too close case), one got negative (ok case). Negative one runs on Lenovo PB2-690M, Android 6.1.

Duplicate issue. Ooops.


Google Analytics tagging

Need a new property and tags.

https://developers.google.com/search/docs/data-types/sitelinks-searchbox

Added tracking of Search and View in 04108e1e513f2992fa873fee658f68f34681557b


Introduce FixedPoint::into_bits

We use FixedPoint for calculations, but at the end we want to convert it into u128.
Currently, we have to write:
let fp = ...;
(*fp.as_bits()).try_into()

or
let fp = ...;
fp.as_bits().clone().try_into()

I think it's much better to write:
let fp = ...;
fp.into_bits().try_into()

Also, made ArithmeticError and FromDecimalError Copy because they are simple and it enables Result<T, E>: Copy.

Travis CI failed due to some warnings from clippy that aren't related to my changes. Could you take a look?

Closed in favor of https://github.com/loyd/fixnum/pull/14


Move appdata location inside paymetheus.  Fixes #165

Decided to not do this.  We can share dcrd appdata with the cli install.  Only wallet needs to be launched in a different directory due to the --onetimetlskey option.  If default dcrd appdata moves, then we need to care.


Fixing timed_executor specializations of customization points

This is a leftover from #5331

retest lsu

The thread executors files were just removed in #5356.

I'll adapt this PR accordingly, thanks!


Chinese title anchor support ?

Actually, this is slugify not support chinese.
Hi shu.
Is there any good choice that can elegant support chinese anchor?

Can add a check before use slugify to generate a slug?

If this is a chinese title, just use it as raw. otherwise use slugify.  Also use a random hexstring instead of it.

Hope you can reply. ^_^

Yeah thanks for reporting! I'll add the support for this soon.

Please upgrade the nextra-theme-docs package and this is now supported!


Flash of white on redirect from SSO from ComponentDidMount on Chrome

Is this a bug report?
Yes.
Did you try recovering your dependencies?
I've deleted all the node_modules and re-installed the packages.
Yarn version: 1.10.1
Which terms did you search for in User Guide?
I looked at the react lifecycle to see where this be causing an issue. I also looked to see if this is a chrome specific issue.
Environment
The CRA --info command failed, but here is my package.json:
{
  "name": "redirect",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "react": "^16.7.0",
    "react-dom": "^16.7.0",
    "react-scripts": "2.1.2"
  },
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
  },
  "eslintConfig": {
    "extends": "react-app"
  },
  "browserslist": [
    ">0.2%",
    "not dead",
    "not ie <= 11",
    "not op_mini all"
  ]
}

I'm testing this on:

Windows 10 version 1709 OS Build 16299.785
Chrome Version 71.0.3578.98 (Official Build) (64-bit)
Firefox Version 64.
Node 10.9.0

Steps to Reproduce
I have a OOTB create react app running. At which point, in the App.js, I add the componentDidMount lifecycle event. In here, I add the following code:
setTimeout(() => {
  const currentUrl = encodeURIComponent(window.location.href);
  const cloudLoginUrl = `https://my-single-sign-on.com/?redirect=${currentUrl}`;
  window.location.assign(cloudLoginUrl);
}, 5000)

I have also added a the following to the body tag:
<body style="background-color: red;">
Expected Behavior
I expecting to see the following:

Page loads
Flash of red
App component render fires with spinning react logo
App componentDidMount event fires
5s later the app redirects to https://my-single-sign-on.com (SSO)
SSO renders a blue page then redirects back to the standard url for CRA of localhost:3000
Flash of red
App component renders fires and shows spinning react logo

Actual Behavior
I am actually seeing the following:

Page loads
Flash of red
App component render fires with spinning react logo
App componentDidMount event fires
5s later the app redirects to https://my-single-sign-on.com and redirects to the current url
SSO renders a blue page then redirects back to the standard url for CRA of localhost:3000
Flash of white
Flash of red
App component renders fires and shows spinning react logo

My dummy single sign on (SSO) service renders a blue page and redirects back to the react app on the standard localhost:3000 url. Here is where the issue arises.
On the redirect, from the SSO blue page there is a flash of white, then a flash of red before the react app renders with the spinning logo. The flash of white does not happen on Firefox. Not sure where this is coming from in Chrome.
Is it possible to avoid the flash of white without server side rendering?
Reproducible Demo
https://github.com/prabuw/cra-redirect-flash-of-white
You need to stand up a server endpoint that will do simple redirect to localhost:3000 locally. I used https://webhook.site as a placeholder here in place of my SSO service.

This is not related to React or CRA and it sounds like the white page is because of the redirect of your SSO. You can use the network tab in Chrome to investigate this further.


Player models not rendering on clients but visible on host

Everyone usually sees the server host, Windcaller, as the custom playermodel for the entire duration, but the server host, and player to player, will stop seeing other player's custom playermodels under various known and unknown scenarios, one of which being reloading playermodels will regularly unload all playermodels for the person that reloaded the models, besides for the host who's playermodel successfully reloads.
(Thanks Tez for writing this out better than i ever could)
As a side note the models will unload randomly after some time (1-10 minutes) or if we get too far away from each other (3-5 chunks)
We've tested this in several ways including;

A non-hybrid server running just the mod
A hybrid server running the mod and the plugin
A hybrid server and disabled all other mods except the CPM mod and plugin
Several different Forge versions
A couple different mod versions including latest released

https://user-images.githubusercontent.com/87748384/126591395-79e6fe1c-9b25-4be2-b8c2-7f4f96222391.mp4

Please try using the latest version (0.0.17e), and see if this is still happening.

A few friends of mine have the exact same issue with their models happening in most versions tested (up to the latest 0.2.0a)


Add tip explanation to inner and outer type of join

On the analysis UI

We don't have "outer join", right?
What about something like this?
For inner:

Returns the result of #1 intersecting #2 (i.e. the inner part of a Venn diagram intersection)

For left:

Returns all rows from #1, with the matching rows in #2 or NULL when there is no match.

/cc @xavijam @javisantana


Better name for file of ages of pregnant women in data

This file: https://github.com/fpsim/fpsim/blob/main/fpsim/locations/senegal/SNIR80FL.obj   has a name that is suspiciously like a DHS individual recode file.
When I examine the data frame that's loading from it in experiment.py, it looks to be a processed dataframe with 3 columns: age, a boolean currently pregnant or not variable, and a parity number.  Rows are the number of DHS respondents in the Senegal data.
It would be good to 1) convert this to a csv so it's clearer what actual data is there  and 2) rename the file if it's truly a processed file so it doesn't appear to be a full DHS dataset.   I'd like to find the code that processed the data file too so I can put it back into the data_processing folder.
@cliffckerr can you help me understand if I'm looking at this correctly?  Could we convert this back to a csv and rename it?
@MObrien-IDM flagging you for visibility (this was designated as an asap issue to address)

It looks like the original .obj may have been created in part by this file:
https://github.com/fpsim/fp_prerelease/blob/main/dropbox/preprocess_data.py
I don't think that script is being called anywhere within fpsim at this point so I think the .obj is already processed?

Tagging @mzimmermann-IDM  as well, to see if she remembers anything about this file and its processing.

I don't remember making or implementing this, unfortunately. What is it being used for? If it's just age, parity, and currently pregnant I could recreate that csv with reproducible code.

Closed with #67


Add leaderboardBanned bool to user model

So we can ban users who change their name/photo to something dodge.

Also an admin UI so we can ban people :D

Fixed in 561da72c444ada4daaafc5d39eab11311e24d727


feat(html): convert html to pdf

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


Can we support base charts Line + Bar in Davinci?

Here are the renderings of other products：

it looks pretty, right?

You can use double Y chart.


Tus-Extension is ambiguous with respect to Tus-Version

Isn't it possible that not every extension reported by Tus-Extension is supported by every protocol version reported in Tus-Version by OPTIONS?
Wouldn't it make more sense for the client to send Tus-Resumable and have the server respond with the extensions supported by the server for the requested protocol version?
Could something be added to the protocol to reveal which extensions are supported by the server for each/any supported protocol version?

Isn't it possible that not every extension reported by Tus-Extension is supported by every protocol version reported in Tus-Version by OPTIONS?

Yes, such situations are possible but I don't think that a problem. Let me explain: If we introduce the extension XYZ in version 1.2 of the tus protocol, the server might return something like this for OPTIONS requests:
Tus-Extension: XYZ
Tus-Version: 1.0.0, 1.1.0, 1.2.0

In this case, there is not direct information about which versions of the tus protocol support XYZ but if the client supports XYZ, it can also now that it has been introduced in version 1.2. Based on that, it is apparent that version 1.0.0 and 1.1.0 do not support XYZ.
Therefore, I don't think the current approach to extension discovery is problematic. Does that make sense?


Get access to the previous Route.

I am trying to make a conditional statement based on the previous route I was on.
I have access to the all the react-router-redux props in my component (history, location, route etc...), but I can't seem to see any information about the previous route.
I know it must be available somewhere, since in my actions I am able to use the goBack() function react-router-redux provides to go back, I just don't know where to find it.

We don't store previous locations in state. This is a question for history or react-router.


Mark ExecState.exitCode @Nullable

Fixes #679

Codecov Report

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

@@             Coverage Diff             @@
##             master    #680      +/-   ##
===========================================
- Coverage     63.96%   63.8%   -0.16%
+ Complexity      591     590       -1
===========================================
  Files           134     134
  Lines          2589    2589
  Branches        318     318
===========================================
- Hits           1656    1652       -4
- Misses          786     790       +4
  Partials        147     147

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 ab1e007...ac61a23. Read the comment docs.


Replace anonymous useEffect functions with named functions

Fixes #532

Should probably change the eslint rule to just allowNamedFunctions instead of removing it entirely. Still prefer arrows over unnamed functions
https://eslint.org/docs/rules/prefer-arrow-callback#allownamedfunctions


Code generator should generate tests also

It has been decided that the only test file to be generated is "all_units.h" maybe in the future, it would change.

Decision had changed.


Publish 0.2.0 to jcenter

Looking forward to incorporating your latest version into kotlinter-gradle!

Jeez I thought it was out. Sorry about that, let me see what happened.

I kinda need help setting up CI though! I have not had the time to work on this lately.


Strava filters links now

It looks like Strava recently did a change that breaks the upload zwiftmap link to activity description so I guess that feature can be removed 😅
https://communityhub.strava.com/t5/strava-features-chat/upholding-platform-safety/m-p/45352/thread-id/8013

Meh 😞  Thanks for letting me know.
I removed/disabled the feature


Dark mode enable mechanism

Summary
In parallel with our dark mode offering, we want a means in order to both enable and disable (on and off) the implementation of said dark mode.
💬 Description
It is assumed the use of a switch or toggle component will be utilised to achieve this. However, research should be conducted and various options presented.
Outputs

Conduct desk research
Experiment with existing components but also don't be afraid to create something bespoke
Several options to present back to team
Think about how we will want to get feedback from the community before refining designs

💰 User value
Easy out of the box means for customers to apply to products, ensuring seamless experience for the end user.

As already spoken about, this ticket relates slightly with 1033 in the way the work could be done. However 1033 has a different use case. Majority of web sites use a switch for Light mode / Dark mode. Therefore a switch component should be used for this. Research is being done already to investigate this.

Going to go back to design to clarify final designs and decide whether this work is just for top nav for now so we can implement on guidance site

updated figma to show button placement on small screen


Fixing ArgumentOutOfRangeException in ExpressionRewriter

Issue - https://github.com/aspnet/Razor/issues/671
@rynowak

:shipit:


Direct Solver to solve u_ref

This is suggestion from Noboru - to implement direct solver to solve uref from elliptic equation. The algorithm is outlined in:
Lindzen, R. S., & Kuo, H. L. (1969). A reliable method for the numerical integration of a large class of ordinary and partial differential equations. In Mon. Wea. Rev.
I would include the Lindzen and Kuo solver as an option in the QGField, such that there are two solvers (SOR v.s. direct solver) user can choose from.

Hi Clare, I've implemented a solver for elliptic equations in GFD using SOR (see here).  I am really interested in the algorithm in this paper.  Just want to know if this has been done or not?  Maybe we could generalize this for many elliptic equations.

In the latest version of the code v0.6.0, we are using direct matrix inversion instead. Look at
https://github.com/csyhuang/hn2016_falwa/blob/e287b2abbdb407d35ab7dd7fc4fe889c549493e4/hn2016_falwa/oopinterface.py#L823
The matrix is first computed in fortran and then inversion is done by the scipy packages
[```python
lu, piv, info = dgetrf(qjj)
qjj, info = dgetri(lu, piv)
I am going to close this ticket as this issue is solved in the newest release.


[AutoRelease] t2-media-2022-09-14-47498(Do not merge)

https://github.com/Azure/sdk-release-request/issues/3133
Live test success
https://dev.azure.com/azure-sdk/internal/_build?definitionId=1012
BuildTargetingString
azure-mgmt-media
Skip.CreateApiReview
true

issue link:https://github.com/Azure/sdk-release-request/issues/3133


Mac support

Hi guys,
as pointed out on Twitter, amazing stuff.
This is me trying to add Mac support. Problem being lapjv doesn't work on Mac and I'd rather fix things on the python side than figuring out Cpp builds. It also seems like lapjv was never compiled on non-x86 as it pulls  immintrin.h at the top level.
So yeah, I pulled in lapx and this is what I get for tests on py312:
% uv tool run tox run -e py312
.pkg: _optional_hooks> python /Users/ciao/.cache/uv/archive-v0/-gLQxuIFvlfE9VPhZaeST/lib/python3.12/site-packages/pyproject_api/_backend.py True mesonpy
.pkg: get_requires_for_build_wheel> python /Users/ciao/.cache/uv/archive-v0/-gLQxuIFvlfE9VPhZaeST/lib/python3.12/site-packages/pyproject_api/_backend.py True mesonpy
.pkg: build_wheel> python /Users/ciao/.cache/uv/archive-v0/-gLQxuIFvlfE9VPhZaeST/lib/python3.12/site-packages/pyproject_api/_backend.py True mesonpy
py312: install_package> python -I -m pip install --force-reinstall --no-deps /Users/ciao/src/qbindiff/.tox/.tmp/package/16/qbindiff-1.2.2-cp312-cp312-macosx_15_0_arm64.whl
py312: commands[0]> pytest --color=yes
=============================================================================== test session starts ===============================================================================
platform darwin -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
cachedir: .tox/py312/.pytest_cache
rootdir: /Users/ciao/src/qbindiff
configfile: pyproject.toml
collected 16 items

tests/test_binary.py ..                                                                                [ 12%]
tests/test_graph.py ...                                                                                [ 31%]
tests/test_sparse_matrix.py ........                                                                                [ 81%]
tests/test_squares.py ...                                                                                [100%]

=============================================================================== 16 passed in 45.42s ===============================================================================
.pkg: _exit> python /Users/ciao/.cache/uv/archive-v0/-gLQxuIFvlfE9VPhZaeST/lib/python3.12/site-packages/pyproject_api/_backend.py True mesonpy
  py312: OK (50.08=setup[4.50]+cmd[45.59] seconds)
  congratulations :) (50.11 seconds)

Hopefully your tests would catch a problem in my commits? 😬
I'm open to trying out more stuff (now I'm moving to actually trying out qbindiff).
Performance-wise I have no idea how lapx compares to lapjv, but from a quick look at the code lapx isn't doing any fancy optimization.
Side note: matcher.py mentions col_indices but lapjv calls the same return value row_ind_lapjv. I didn't rename in the outer function, but that looks weird to my monkey brain.

Side note 2: there's also this guy https://github.com/raphaelreme/pylapy that wraps lapx / etc in a package and defaults to the best implementation on the current system. Maybe you should just depend on that?

Thanks for the PR, indeed lapjv was intended to be a linear assignment problem solver optimized for intel SSE/AVX2. This means that it will never work on aarch64 architecture. I see no problem in using another library for mac. In fact we might even ditch lapjv entirely in favor of lapx just to relax the dependencies that are already heavy enough ^^.
On a side note regarding python 3.12, officially qbindiff is not supporting it yet because capstone was not supporting it either. Recently, though, they released a version compatible with python 3.12 so we should address that as well.

This means that it will never work on aarch64 architecture.

Technically they have a slow path in C I believe? But yeah agreed.

In fact we might even ditch lapjv entirely in favor of lapx just to relax the dependencies that are already heavy enough ^^

I don't know how much faster/efficient lapjv is so idk, but pylapy could solve all the issues by falling back to the best implementation available.


WindowsLibsUtils hard-codes relative path to DLLs

The WindowsLibsUtils initialization uses a hard-coded relative path to find the DLLs needed to run Hadoop/HDFS. If the hadoop-mini-clusters dependency is used in a multi-module project, I need to have the DLLs available in each project (or actually, in the parent of each project, which is complex when the module graph is a tree).
Would it be possible to make this an injectable system property the same way HBase uses HADOOP_HOME to find the location for winutils.exe?
Thanks!

@mlschechter - Sorry for the delay. This is absolutely doable. Do you want to see HADOOP_HOME reused here? or should this be its own system property, WINDOWS_HADOOP_LIBS perhaps?

Either would be a good solution; I think I'm in favor of consolidation if possible, and just re-using HADOOP_HOME. HBase assumes a bin directory underneath HADOOP_HOME, so you could assume a lib directory as well. This could also remove the need for the hdp.release.version and hadoop.home.dir properties.
The main thing is to provide a path with minimal hardcoding, and I think going for HADOOP_HOME/lib would definitely do that.

@mlschechter - Thanks for the feedback. I'll work to get this implemented and a new release cut by next week, hopefully sooner.

@mlschechter - I have made the change to allow setting HADOOP_HOME to whatever directory you'd like. If set, that value will be used. It was still necessary to set hadoop.home.dir and hdp.release.version is used to handle multiple hdp versions.
Let me know if the latest changes work for you or if you have additional suggestions and I'll work to cut a new release with this change.
Thanks!

It sounds like we're going in the right direction. Could you please let me know where I could take a quick look at the changes?
Thanks!

The latest commit has the changes: 5fcd09012e51c2119d648f3490d6d201f0e0769c

Looks great - thanks!
How soon can you have a release?

@mlschechter - 0.1.2 (d5eae24119e72657fcd0339eb59acbcf0a922993) has been released which contains this feature. Closing out the issue. Please open a new one if you have any issues.
Thanks again for the review and feedback!!


Adding subclass of RangeBase

I want to schedule my tasks weekly and so I made my own RangeWeeklyBase class which derives RangeBase.
My question is how do I use to to run luigi through cmd?

One of the solution which I found is to paste this class directly in luigi module of python. But I want to keep this file inside my project which is some directory. Can anyone help regarding this?

Hi @tayal007, look for --module in the docs online.

Hi Tarrasch, thanks for replying but I'm not able to figure out what you are trying to imply. Can you tell me using an example?
we use RangeDailyBase like this:
luigi --module all_reports RangeDailyBase --of AllReports --start 2015-01-01
now I what something like this:
luigi --module all_reports RangeWeeklyBase --of AllReports --start 2015-01-01
RangeWeeklyBase is a module in the same directory as all_reports

@Tarrasch, well thanks for your help I was able to figure it out myself


How to delete YT feed

Not really an issue, rather a request.
If I don't want to process a youtube channel, then removing it from the config is not enough as I noted. All already converted files remain on the storage. And also I guess DB entries are not deleted.
So I think I should use admin API. But it's unclear how to do it. Is it possible to delete all channel's entries with a mask? Otherwise where to get entry ids?
For example, here is the snippet from rss:
<item>
<title>
Екатерина Шульман: Безумно богатые русские. От олигархов к новой буржуазии / Книжное казино. Истории // 07.01.2023
</title>
<link>https://www.youtube.com/watch?v=QqfVcDEgDS8</link>
<description>
В первом в этом году выпуске программы...
</description>
<enclosure url="https://feed.arkn.giize.com/yt/media/8c390919daa769e308eac77f4d60cfcbf90bab87.mp3" length="64355071" type="audio/mpeg"/>
<guid>UCuIE7-5QzeAR6EdZXwDRwuQ::QqfVcDEgDS8</guid>
<pubDate>Sat, 07 Jan 2023 12:04:37 +0000</pubDate>
<author>Дилетант</author>
<itunes:duration>3273</itunes:duration>
</item>

I tried to use curl as following:
curl -X "DELETE" -u admin:mycoolpass --basic  http://feed.myserver..xx/yt/entry/UCuIE7-5QzeAR6EdZXwDRwuQ/QqfVcDEgDS8

And I get "301 Moved Permanently"
Also either ID from mp3 filename or ID from YT video don't work. The same error returned.
Please, explain me how to perform deletion.

regarding "Otherwise where to get entry ids?" it looks like you have figured it -  you can get both channel and video IDs from the RSS, as it build like this: GUID: entry.ChannelID + "::" + entry.VideoID

Thank you. It works via un-proxied connection.
{"removed":"QqfVcDEgDS8","status":"ok"}


Add tooltip to show a longer format on hover

I like the idea of a tooltip quite much, thank you!
For what it concerns the PR, there are a couple of things missing. There should be a subscription for any change in the settings to the tooltip date format. Also, specs are to be written for the tooltip.
The last small detail is, the tooltip dispose line in the destroy method should not have the semicolon at the end (I'm trying to keep the whole code consistent style-wise).
If you cannot take care of these things, I will just merge the PR and fix them myself.
Cheers!

I am still leaving this behind for this release (0.1.8) as I am still lot sure if I want the feature in the package. Also, specs still need to be written, and I don't have time right now.
I will probably integrate this feature with an extra flag in the configuration to enable/disable the tooltip, defined as opt-in option.

If you're interested I have a branch here with an opt-in tooltip with specs written you can have a look at if you want. If you like it I can submit a pull request?

Wow, that's rad. I gave a look at your branch, everything seems to be in place. If you submit the PR, I will wait few days anyway before accepting it anyway, as I'd like to see if the release from yesterday night gives any sort of problem. Also, I'll look at it more closely, as I'm buried with work atm!
Thanks a lot!

Thanks! I'll submit the PR

This one was closed in#29.


Issue: Custom Mistral based LLM from API for RetrievalQA chain

Issue you'd like to raise.
I would like to build RAG based on Mistral 7B model
The model is already hosted, and I provide llm_url in the custom LLM setup
I am able to make a request and get a response from the URL using the llm._call method, however something is wrong with the callbacks in RetrievalQA.from_chain_type method
It gives me below error
'Mistral7B_LLM' object has no attribute 'callbacks'
Am I missing anything in the below code
from pydantic import Extra
import requests
from typing import Any, List,Dict, Callable, Type, Mapping, Optional

from langchain.callbacks.manager import CallbackManagerForLLMRun
from langchain.llms.base import LLM, BaseLLM

class Mistral7B_LLM(LLM):

    def __init__(self):
        self.__post_init__()

    def __post_init__(self) -> None:

        def _import_mistral7B_llm() -> Any:
            from svcs.vector.src.controllers.llm.mistral7B_serving import Mistral7B_LLM

            return Mistral7B_LLM

        def __getattr__() -> Any:
            return Mistral7B_LLM()

        def get_type_to_cls_dict() -> Dict[str, Callable[[], Type[BaseLLM]]]:
            return {
                "Mistral7B_LLM": _import_mistral7B_llm,
            }

        __all__ = ["Mistral7B_LLM"]

    class Config:
        extra = Extra.forbid

    @property
    def _llm_type(self) -> str:
        return "Mistral7B_LLM"

    def _call(
        self,
        prompt: str,
        stop: Optional[List[str]] = None,
        run_manager: Optional[CallbackManagerForLLMRun] = None,
        max_new_tokens: Optional[int] = 156,
        temperature: Optional[float] = 0.7,
        **kwargs: Any,
    ) -> str:
        if stop is not None:
            raise ValueError("stop kwargs are not permitted.")

        payload = {
            "inputs": [prompt],
            "max_new_tokens": max_new_tokens,
            "temperature": temperature,
        }

        headers = {"Content-Type": "application/json"}

        llm_url = 'my url'

        response = requests.post(llm_url, json=payload, headers=headers, verify=False)
        response.raise_for_status()

        # print("API Response:", response.json())
        answer = response.json()["outputs"].split("[/INST]")[-1]
        return answer

    @property
    def _identifying_params(self) -> Mapping[str, Any]:
        """Get the identifying parameters."""
        return {"llmUrl": self.llm_url}

Suggestion:
No response

Hi, thanks for your response
Even after adding below line in _call method of custom LLM, it gave me the same error
callbacks: Callbacks = None,

Since it's an Optional parameter, I keep it None

I was able to resolve the callbacks issue by simply calling super() in the init
Below is the full code
import requests
from pydantic import Extra
from typing import Any, List, Mapping, Optional
from langchain.callbacks.base import Callbacks
from langchain.callbacks.manager import CallbackManagerForLLMRun
from langchain.llms.base import LLM

class Mistral7B_LLM(LLM):

    def __init__(
        self,
        **kwargs
    ):
        super().__init__(**kwargs)

    llm_url = 'llm hosting url'

    class Config:
        extra = Extra.forbid

    @property
    def _llm_type(self) -> str:
        return "Mistral7B_LLM"

    def _call(
        self,
        prompt: str,
        stop: Optional[List[str]] = None,
        run_manager: Optional[CallbackManagerForLLMRun] = None,
        callbacks: Callbacks = None,
        max_new_tokens: Optional[int] = 156,
        temperature: Optional[float] = 0.1,
        **kwargs: Any,
    ) -> str:
        if stop is not None:
            raise ValueError("stop kwargs are not permitted.")

        payload = {
            "inputs": [prompt],
            "max_new_tokens": max_new_tokens,
            "temperature": temperature,
        }

        headers = {"Content-Type": "application/json"}

        response = requests.post(self.llm_url, json=payload, headers=headers, verify=False)
        response.raise_for_status()

        answer = response.json()["outputs"].split("[/INST]")[-1]
        return answer

    @property
    def _identifying_params(self) -> Mapping[str, Any]:
        """Get the identifying parameters."""
        return {"llmUrl": self.llm_url}

@hitsense how you used this api in your application code ?
I have requirement to to generate the responses based on data in pandas data frame

So you were able to run it with RetrievalQA.from_chain_type?