How to use my fine-tuned Llama2 model in Langchain?

Feature request
Any possible ways to run a Q&A bot for my fine-tuned Llama2 model in Google Colab?
Motivation
Any possible ways to run a Q&A bot for my fine-tuned Llama2 model in Google Colab?
Your contribution
Any possible ways to run a Q&A bot for my fine-tuned Llama2 model in Google Colab?

@dosu-bot Thanks for your detailed solutions. But I do not have a LlamaAPI. The fine-tuned model was pushed to my hugging face repo. What should I do then?

@dosu-beta I already have a  llama-cpp-python server running locally and this acts like a openai complaint server.
Is there anyway that we could interact with this local server though langchain? If so, can you give an example?

@Avinash-Raj As of now Dosu, only responds to the issue author to keep the thread focused on solving the author's issue. We may change this in the future though.
Let me know if you have any feature requests for the bot :)

Is there anyway that we could interact with this local server through langchain? If so, can you give an example?

I managed to hack it to work with OpenAI compatible API with this:
from langchain.llms import AzureOpenAI

import os

os.environ["OPENAI_API_KEY"] = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
os.environ["OPENAI_API_BASE"] = "http://<IP_ADDRESS>:5001/v1"
os.environ["OPENAI_API_VERSION"] = "2022-12-01"

llm = AzureOpenAI(openai_api_type="azure")

print(llm("How to load a file with python?"))

Is there anyway that we could interact with this local server through langchain? If so, can you give an example?

I managed to hack it to work with OpenAI compatible API with this:
from langchain.llms import AzureOpenAI
import os

os.environ["OPENAI_API_KEY"] = "-"
os.environ["OPENAI_API_VERSION"] = "-"
os.environ["OPENAI_API_BASE"] = "http://<IP_ADDRESS>:5001/v1"

llm = AzureOpenAI()

print(llm("How to load a file with python?"))

🤖
Hello,
To use your fine-tuned Llama2 model from your Hugging Face repository to run a Q&A bot in Google Colab using the LangChain framework without a LlamaAPI, you can follow these steps:

Install the necessary packages:

! pip install gpt4all chromadb langchainhub llama-cpp-python huggingface_hub

Load and split your document:

from langchain.document_loaders import WebBaseLoader
from langchain.text_splitter import RecursiveCharacterTextSplitter

loader = WebBaseLoader("https://lilianweng.github.io/posts/2023-06-23-agent/")
data = loader.load()

text_splitter = RecursiveCharacterTextSplitter(chunk_size=500, chunk_overlap=0)
all_splits = text_splitter.split_documents(data)

Download the GPT4All embeddings locally:

from langchain.vectorstores import Chroma
from langchain.embeddings import HuggingFaceHubEmbeddings

vectorstore = Chroma.from_documents(documents=all_splits, embedding=HuggingFaceHubEmbeddings(repo_id="your-model-name"))

Download your Llama-v2 model and set up the model parameters:

from langchain.llms import LlamaCpp
from langchain.callbacks.manager import CallbackManager
from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler

n_gpu_layers = 1
n_batch = 512
callback_manager = CallbackManager([StreamingStdOutCallbackHandler()])

llm = LlamaCpp(
    model_path="/path/to/your/model",  # replace with your model path
    n_gpu_layers=n_gpu_layers,
    n_batch=n_batch,
    n_ctx=2048,
    f16_kv=True,
    callback_manager=callback_manager,
    verbose=True,
)

Run an LLMChain with your model:

from langchain import PromptTemplate, LLMChain

prompt = PromptTemplate.from_template(
    "Summarize the main themes in these retrieved docs: {docs}"
)

llm_chain = LLMChain(llm=llm, prompt=prompt)

question = "What are the approaches to Task Decomposition?"
docs = vectorstore.similarity_search(question)
result = llm_chain(docs)

Use a QA chain to handle your question:

from langchain import hub
from langchain.chains.question_answering import load_qa_chain

rag_prompt_llama = hub.pull("rlm/rag-prompt-llama")

chain = load_qa_chain(llm, chain_type="stuff", prompt=rag_prompt_llama)

chain({"input_documents": docs, "question": question}, return_only_outputs=True)

For an even simpler flow, use RetrievalQA:

from langchain.chains import RetrievalQA

qa_chain = RetrievalQA.from_chain_type(
    llm,
    retriever=vectorstore.as_retriever(),
    chain_type_kwargs={"prompt": rag_prompt_llama},
)

qa_chain({"query": question})

Remember to replace "/path/to/your/model" with the actual path to your fine-tuned Llama2 model. Also, replace "your-model-name" with the name of your model in the Hugging Face repository.
The LangChain framework integrates models from the Hugging Face repository through the HuggingFaceHub class, which is a subclass of LLM. The HuggingFaceHub class uses the InferenceApi from the huggingface_hub package to authenticate with the Hugging Face Hub. The InferenceApi is initialized with the repository ID and the task.
Here is an example of how to use the HuggingFaceHub class:
from langchain.llms import HuggingFaceHub
hf = HuggingFaceHub(repo_id="gpt2", model_kwargs={"max_new_tokens": 10})

Please note that currently only 'text-generation', 'text2text-generation', and 'summarization' tasks are supported. The HuggingFaceHub class also supports saving and loading of models.
I hope this helps! Let me know if you have any other questions.
Sources

docs/extras/use_cases/question_answering/local_retrieval_qa.ipynb
docs/extras/use_cases/question_answering/how_to/local_retrieval_qa.ipynb
libs/langchain/langchain/embeddings/huggingface_hub.py
libs/langchain/langchain/llms/huggingface_endpoint.py
libs/langchain/langchain/llms/huggingface_hub.py
libs/langchain/tests/integration_tests/llms/test_huggingface_hub.py

This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.
Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.
If you want to continue the conversation, start your reply with @dosu-bot.
in this line - "model_path="/path/to/your/model",  # replace with your model path", the model_path should be the .bin file of the model or the folder where the .bin and .json files of the model are present?

@Joshua8966 did you make it work?

@WhiteWolf47 I did not try the above approach. I tried the following: https://medium.com/@murtuza753/using-llama-2-0-faiss-and-langchain-for-question-answering-on-your-own-data-682241488476 You may take a reference on it. This worked for me.


SPIKE adding a connection pool to our DB

Description
Azure flags not having a connection pool as a high impact on our Databases service https://portal.azure.com/#blade/Microsoft_Azure_Expert/AdvisorBlade/resourceId/%2Fsubscriptions%2F7d1e3999-6577-4cd5-b296-f518e5c8e677%2FresourceGroups%2Fprime-simple-report-prod%2Fproviders%2FMicrosoft.DBforPostgreSQL%2Fservers%2Fsimple-report-prod-db/category/Performance/source/PostgreSqlServer

Our internal telemetry indicates that your PostgreSQL server may not be managing connections efficiently. This may result in unnecessary resource consumption and overall higher application latency. To improve connection management, we recommend that you reduce the number of short-lived connections and eliminate unnecessary idle connections. This can be done by configuring a server side connection-pooler, such as PgBouncer

Potential solutions

Application level connection pool options https://www.baeldung.com/spring-boot-tomcat-connection-pool
Add pgbouncer as a service between our application and or postgres server

Additional Information

https://azure.microsoft.com/en-us/blog/performance-best-practices-for-using-azure-database-for-postgresql-connection-pooling/
This will hopefully also allow our application server to better handle db restarts. The last restart took only a few seconds but lead to a ~5 minute outage of the application server (https://prime-cdc.pagerduty.com/incidents/PC5FQ5N)

This investigation took a couple of twists and turns, but here's a summary of what I was able to come up with.

We really don't want to be managing our own DB proxy VM (e.g. PgBouncer) and we can accomplish the same task via application connection pooling, so I've focused my efforts there.
We're already using connection pools (HikariCP) by default with Spring Boot. The default pool size is 10, and we don't change this anywhere. HikariCP themselves suggest that if we were using spindles (e.g. non-SSD drives) then 10 is pretty close to correct ((# of CPUs/cores * 2) + (1 * effective_spindle_count)). Our DBs use 4 CPUs with an SSD, but if they used a non-SSD we'd expect the ideal pool size to be 9. So 10 seems right.
Where we're seeing the problems, I think, is pool configuration. One major area is that connections themselves are never terminated - the same 10 connections are reused indefinitely over the life of the application. This is potentially a problem with regard to memory usage, as these connections cache every request they receive. With a broad usage pattern, they could conceivably cache most of the DB, leading to high memory usage. Looking at metrics, though, suggests that this isn't a problem - the memory usage line has barely dipped over 7 days, meaning that when the connections are reset via a new deploy they're not using any less memory than the old ones.
What I think the Azure advisor is really mad about is the absolute # of idle connections. For example, we deploy one instance of the app to pentest, so you would expect 10 active DB connections, but the pentest DB has 25 active connections! Prod has ~110.

One problem is that Liquibase itself uses the default HikariCP connection pool but doesn't let you easily configure it outside of code. This results in 10 unused connections hanging around, continually idle. This is fixed in Spring Boot 2.5.x, and I verified locally that moving to Spring Boot 2.5.4 got rid of these connections.
Metabase is another problem. The default connection pool size here is 15, and I don't see that we've overridden that anywhere, so that's an additional 15 largely-idle connections.
Staging slots have their own connections as well. Stopping pentest-staging dropped the # of active DB connections from 25 to 18.

Taking all of the above into account: in the last 24 hours, the average # of active prod DB connections was ~105. We would actually expect this count to be 30, plus whatever Metabase needs, since prod is scaled out to 3 instances.

Recommendations:

Upgrade Spring Boot to 2.5.x (#2634)
Reduce Metabase's connection pool significantly. If we can run a production workload per App Service with a pool of 10, Metabase almost certainly needs less than 10. Possibly as low as 2-3. Potential method here. (#2635)
Consider reducing the connection pool size per instance when scaled - a well-sized pool of 10 is an oversized pool of 30 when scaled to 3 instances. The sum total of the connection pool should be ~10. (#2635)
Reducing the aggregate pool size will also reduce the connections being used by the staging slots.

Implementing all 4 suggestions should drop prod's active DB connection count to less than 25 - close to 100 active connections less while improving performance.


[Question] Programmatic Authentication with Delegated Permissions in Hamilton Go

Hi @manicminer,
Firstly, great work on the Hamilton package! It's much more lightweight compared to the official Microsoft Graph SDK, which is exactly what I was looking for. I have a couple of questions regarding authentication:

[ ] How can I authenticate programmatically with specified scopes?
[ ] How can I use user credentials for authentication, given that some operations require delegated permissions (using device code authentication) rather than application permissions (client/client_secret authentication)?
[ ] I'm particularly interested in finding a clean way to programmatically authenticate with delegated permissions. Is there a method or may be would recommend using a service principal instead?

For context, here's the error I'm currently encountering:
"xyz.go:81","msg":"API requires one of 'ChannelMessage.Read.All, ChannelMessage.Read.Group'. Roles on the request ''. Resource specific consent grants on the request",

Any guidance or pointers would be greatly appreciated! 🤞

Hi @ch3ck, thanks for the kind words. As per my other message, please look at the HashiCorp Microsoft Graph SDK since this project has now been deprecated. That SDK shares a lot of the same patterns from here, and uses the same helper packages for authentication etc.
With the MS Identity platform, you don't need to specify the scopes you want when obtaining an access token, you specify https://graph.microsoft.com/.default and you'll get a token containing all the scopes you have been granted, for the application you're using. That last part is somewhat of a sticking point when using existing tools like Azure CLI to handle the delegated auth workflow for you, since it will only return the scopes it has in its manifest, which are likely a subset of what you want. To get around this, you'd need to register your own Azure AD application, and write it, to handle the delegated login flow for you.
The SDK auth package github.com/hashicorp/go-azure-sdk/sdk/auth does have support for invoking Azure CLI to grab an access token for the logged in user, but it suffers from the above issue where only a subset of scopes are going to be present in the token. For full functionality, you'll currently need to use the application flow, where you authenticate as a service principal using application credentials, and then you can use app roles to confer the permissions you need.
The final challenge with all this, is that some APIs only support delegated auth, which puts you right back at writing your own application to handle the delegated auth flow.


[gardening]

What's in this pull request?

Fix recently introduced typo: "dynamicism" → "dynamism"
Consistent formatting of STATISTIC(…, "…");

Resolved bug number: –

Before merging this pull request to apple/swift repository:

[ ] Test pull request on Swift continuous integration.

Triggering Swift CI
The swift-ci is triggered by writing a comment on this PR addressed to the GitHub user @swift-ci. Different tests will run depending on the specific comment that you use. The currently available comments are:
Smoke Testing
    Platform     | Comment
    ------------ | -------------
    All supported platforms     | @swift-ci Please smoke test
    OS X platform               | @swift-ci Please smoke test OS X platform
    Linux platform              | @swift-ci Please smoke test Linux platform

Validation Testing
    Platform     | Comment
    ------------ | -------------
    All supported platforms     | @swift-ci Please test
    OS X platform               | @swift-ci Please test OS X platform
    Linux platform              | @swift-ci Please test Linux platform

Note: Only members of the Apple organization can trigger swift-ci.

@swift-ci Please test and merge


Training recipe for cc3m and cc12m

Hi, thanks for the great work!
I was wondering if you could provide the training recipe for cc3m and cc12m ((lr, wd, bsize, etc.)?
I am trying to reproduce the reported 0-shot result on CC3m on CLIP and SLIP with the same hyper parameters as YFCC-100M. But I am getting 14.1 and 18.4 (compared to the reported 17.1 and 23.0). The environment (OS, PyTorch, CUDA versions) has been double checked.
Thanks!

Thanks for trying to reproduce our results! We used the same hyperparameters for CC3M/CC12M as YFCC15M: 4096 batch size, 3e-3/5e-4 lr, and 0.1/0.5 wd (CLIP/SLIP). Are the 14.1 and 18.4 numbers measured at the end of training or the maximum measured throughout training? And are you using --update-freq > 1?

They are measured at the end of training and I'm not using --update-freq >1.
Can you share the training log file? I might be able to get some clue from that.

That sounds about right to me then. Both SLIP and CLIP overfit pretty heavily on the CC3M dataset, even when training for just 40 epochs. The best results are achieved well before the end of training.

Thanks for the reply! However, even the best result during training never exceeds 20.0/15.0 for SLIP/CLIP, which is still several points away from the reported result. I have repeated each experiment twice. I'll try CC12M dataset and report the results latter. At the same time, can you share some details on how the training data is processed (e.g. resolution, format, downloader, etc.)?

Thanks for the reply! However, even the best result during training never exceeds 20.0/15.0 for SLIP/CLIP, which is still several points away from the reported result. I have repeated each experiment twice. I'll try CC12M dataset and report the results latter. At the same time, can you share some details on how the training data is processed (e.g. resolution, format, downloader, etc.)?

Have you ever tried to replace the dataset of SSL stream to ImageNet? I also cannot reproduce results with only the CC3M dataset. I tried to use ImageNet data for SSL and CC3M data for CLIP, and successfully achieved the linear probing results reported in the paper. I guess it could be helpful for you to reproduce the zero-shot results.

Sorry for the late reply. I don't have the training logs available anymore. Please see my comment and discussion in https://github.com/facebookresearch/SLIP/issues/15#issuecomment-1136956591.


Cannot create a successful registration description using pushChannel or installationId

Query/Question
Following this tutorial: https://docs.microsoft.com/en-us/azure/notification-hubs/notification-hubs-aspnet-backend-ios-apple-apns-notification
I have a web api backend for registering devices for push notifications and associating tags with this registration which looks similar to:
NotificationHubClient hub = AzureNotificationHub.Instance.Hub;
string newRegistrationId = request.RegistrationId;

// make sure there are no existing registrations for this push handle/device token (used for iOS and Android)
if (request.Handle != null)
{
	var registrations = Task.Run(async () => await hub.GetRegistrationsByChannelAsync(request.Handle, 100)).Result;

	foreach (RegistrationDescription registration in registrations)
	{
		if (string.IsNullOrEmpty(newRegistrationId))
		{
			newRegistrationId = registration.RegistrationId;
			Log.Debug($"Push notifications found existing registration: {registration}.");
		}
		else
		{
			Task.Run(async () => await hub.DeleteRegistrationAsync(registration));
			Log.Debug($"Push notification registration deleted: {request.RegistrationId}");
		}
	}
}

if (string.IsNullOrEmpty(newRegistrationId))
{
	newRegistrationId = Task.Run(async () => await hub.CreateRegistrationIdAsync()).Result;
	Log.Debug($"Push notifications created new registration: {newRegistrationId}.");
}

var userTags = new HashSet<string>()
{
	$"instanceid:{ServerManager.InstanceId}",
	$"ciid:{Security.User.CurrentUser.ConfigurationItemId}"
};

RegistrationDescription newRegistration = null;
switch (request.Platform)
{
	case Request.PushNotificationPlatforms.Apple:
		newRegistration = new AppleRegistrationDescription(request.Handle, userTags);
		break;
	case Request.PushNotificationPlatforms.Fcm:
		newRegistration = new FcmRegistrationDescription(request.Handle, userTags);
		break;
}

newRegistration.RegistrationId = newRegistrationId;

try
{
	var result = Task.Run(async () => await hub.CreateOrUpdateRegistrationAsync(newRegistration)).Result;
	Log.Debug($"Push notifications for: {request.Platform} with registration id: {newRegistrationId} for instance/ciid: {ServerManager.InstanceId}/{Security.User.CurrentUser.ConfigurationItemId} created.");
}
catch (MessagingException e)
{
	ReturnGoneIfHubResponseIsGone(e);
}

return new Response() { RegistrationId = newRegistration.RegistrationId };

I am then sending the "Handle"/ PNS hand;e to the server which is got in the iOS app by getting the pushChannel:
func notificationHub(_ notificationHub: MSNotificationHub!, didSave installation: MSInstallation!) {
    let installationId = installation.pushChannel;
    // other code to save the pushChannel and after user logs in then register on the server
}

That is then posted to my api backend to upsert a registration for the device/platform.
This produces no error, but when I test send a notification (using a tag set against that registration) on the Azure portal I get the error:

The Push Notification System handle for the registration is invalid

Thereafter if I test send again, it doesn't find that registration (assume it was removed because it wasnt valid?) so no message is sent or error shown.
I currently don't know what do to get my iOS device successfully registering using Registrations. I have done this in android with the android library no issue, I simply sent the result from FirebaseMessaging.getInstance().getToken() as my handle and all works a charm.
Why is this not a Bug or a feature Request?
Im sure others have this working, perhaps I am using the incorrect information to register via registrations on my c# server in IOS. I used registrations in android so would be optimal to use them in iOS, but if thats an issue I'll switch I just need this working desperately!
Setup (please complete the following information if applicable):

OS: macOS Big Sur 11.5.2/iOS 12.x
IDE : Xcode  12.5.1
Version of the Library used: latest

Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

[x] Query Added
[x] Setup information Added

After setting ,y Mode to Sandbox instead of Production I now receive the notifications!


docs(dialog): fix options table

closes #3618

Codecov Report

Merging #3621 (071ab82) into docs (b904fa8) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             docs    #3621   +/-   ##
=======================================
  Coverage   62.95%   62.95%
=======================================
  Files        1056     1056
  Lines       21993    21993
  Branches     5744     5744
=======================================
  Hits        13846    13846
  Misses       6655     6655
  Partials     1492     1492

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Add uploadFile to type definition of react component

This enables using autoUpload=false in typescript.

Any reason this wasn't merged?


Implement Analysis class

Implement the Analysis class and its __init__ method.
Implement the _load_config method to load YAML configuration files.
Implement the load_data method to retrieve data from the Kaggle API.

done

The load_data method requires to download the kaggle dataset in a temporary file and then unzip and use it, there is no way to pass the kaggle URL directly to the requests and expect a json out of it. Following the github implementation https://github.com/usnistgov/dioptra/blob/669fd166a155ff9525a8a4c036fd646637453022/examples/scripts/download_data.py#L733.

Also this one https://github.com/nicorg5/curso_AI/blob/a540312ee851b74a1cf3bce96b1a901494191413/IA discriminativa/Redes Neuronales/dogs_vs_cats/Ingesta_datos_API_Kaggle.ipynb#L61


No transparency for webview in WGPU example on Windows

Describe the bug
I'm running the WGPU example on Windows and the sub view which displays the user agent has a 0.5 alpha but it has a grey background is not blending the triangle rendered by WGPU underneath it.
Steps To Reproduce
Run cargo run --example wgpu.
Expected behavior
I expected the sub webview to blend over the triangle.
Screenshots

Platform and Versions (please complete the following information):
OS: Windows 11
Rustc: 1.79.0 (129f3b996 2024-06-10)
Additional context
Came to this after looking at #677 and wanted to try it out, I don't think it's related to #692.
I tried the following commits also from around the time #677 when was completed, but I didn't get any webview rendered, just the red triangle.

f62aa942121f80e1908bc736ae03dc584330bb91
a9ad1c5c6a85001aac8de64ebb0395e8d647598a

This is because winit set WS_CLIPCHILDREN by default, the current example uses<EMAIL_ADDRESS>which doesn't have a way to disable that but<EMAIL_ADDRESS>does, see https://docs.rs/winit/latest/x86_64-pc-windows-msvc/winit/platform/windows/trait.WindowAttributesExtWindows.html#tymethod.with_clip_children


Added a nautobot-server build_ui command

Closes: #3203
What's Changed

This command does the following from the nautobot/ui directory

Generates the app_imports.js file from any installed plugins
Runs npm install when --npm-install is passed
Runs npm run build

This command is now also called by nautobot-server post_upgrade, which calls it with --npm-install
Updated the config-overrides.js to not hash JS or CSS files so that their raw filename can be stored in static files and referenced using {% static %} (e.g. {% static 'js/main.js %}) without having to overload the base.html template for the web UI
Updated nautobot/core/templates/base.html to link directly to the static files for JS and CSS that get pulled in from the UI build environment by nautobot-server collectstatic
Parameterized the API key needed for now to read from NAUTOBOT_API_TOKEN environment variable
app_imports.js now renders with relative paths vs. absolute paths making commits that happen compatible across Docker-local and production use-cases.
Restored the /plugins/ route and the InstalledPlugins.jsx module
The build command runs npm silently by default to hide the debug/warn/error messages unless -v 2 or -v 3 are passed.
There is some console.log output that is now not displayed unless NAUTOBOT_DEBUG environment variable is set. The build_ui command will also set this if verbosity is desired.
Implemented a new invoke version task to align versions of core with UI apps.

Will bump both pyproject.toml and package.json to keep them in sync.
If no argument is provided, displays the versions instead.

Also added NAUTOBOT_UI_DIR into nautobot.core.settings so that it can be easily reused
Moved nautobot_ui to nautobot/ui
nautobot/ui is now included in the package build
Added a basic README file back to nautobot/ui
Renamed all UI references of "plugin" to "app"

After using build it's possible to serve the entire application using Django now without requiring node. Of course for development node will still be desirable due to live rendering.
Examples
Default (silent)
nautobot@jathy-vm:~$ nautobot-server build
>>> Rendering Nautobot App imports...
- App 'example_plugin' imported
>>> Installing Nautobot UI dependencies...
>>> Compiling Nautobot UI packages...
>>> Nautobot UI build complete! 🎉

Skipping some actions (only doing compile in this case)
$ nautobot-server build --no-render-apps --no-npm-install
>>> Compiling Nautobot UI packages...
>>> Nautobot UI build complete! 🎉

Verbose
$ nautobot-server build -v3
>>> Rendering Nautobot App imports...
- App 'example_plugin' imported
>>> Installing Nautobot UI dependencies...

up to date, audited 1958 packages in 4s

246 packages are looking for funding
  run `npm fund` for details

8 high severity vulnerabilities

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.
>>> Compiling Nautobot UI packages...

><EMAIL_ADDRESS>build
> react-app-rewired build

Creating an optimized production build...
Compiled successfully.

File sizes after gzip:

  254.14 kB  build/static/js/main.js
  28.01 kB   build/static/css/main.css
  1.79 kB    build/static/js/787-0aed11f02418927e0a77.js
  397 B      build/static/js/412-6440a8eda236970fc686.js

The project was built assuming it is hosted at /.
You can control this with the homepage field in your package.json.

The build folder is ready to be deployed.
You may serve it with a static server:

  npm install -g serve
  serve -s build

Find out more about deployment here:

  https://cra.link/deployment

>>> Nautobot UI build complete! 🎉

Invoke version (get)
$ invoke version
poetry version \
    --short
2.0.0-alpha.1
npm \
    --prefix nautobot/ui version
{
  nautobot: '2.0.0-alpha.1',
  npm: '9.3.1',
  node: '18.14.0',
  v8: '<IP_ADDRESS>-node.22',
  uv: '1.44.2',
  zlib: '1.2.13',
  brotli: '1.0.9',
  ares: '1.18.1',
  modules: '108',
  nghttp2: '1.51.0',
  napi: '8',
  llhttp: '6.0.10',
  uvwasi: '0.0.14',
  acorn: '8.8.1',
  simdutf: '3.1.0',
  undici: '5.14.0',
  openssl: '3.0.7+quic',
  cldr: '42.0',
  icu: '72.1',
  tz: '2022g',
  unicode: '15.0',
  ngtcp2: '0.8.1',
  nghttp3: '0.7.0'
}

Invoke version (set)
$ invoke version -v 2.0.0
poetry version \
    --short 2.0.0
2.0.0
npm \
    --prefix nautobot/ui version 2.0.0
v2.0.0

TODO

[x] Explanation of Change(s)
[x] Added change log fragment(s) (for more information see the documentation)
[x] Attached Screenshots, Payload Example
[ ] Unit, Integration Tests
[ ] Documentation Updates (when adding/changing features)
[ ] Example Plugin Updates (when adding/changing features)
[ ] Outline Remaining Work, Constraints from Design

I'd like to see the npm install not always being run on build. More dangerous IMHO and likely won't be needed. That could be better served as a post_upgrade step.

There's a flag to disable it --no-npm-install, it just runs by default. Are you saying to decouple them?

I'd like to see the npm install not always being run on build. More dangerous IMHO and likely won't be needed. That could be better served as a post_upgrade step.

There's a flag to disable it --no-npm-install, it just runs by default. Are you saying to decouple them?

Yes.

I inverted the toggle. So now it's build_ui --npm-install explicitly or it won't run.


[BUG] Overflow at the bottom of the Contact Page

Describe the bug
The <textarea> in the Contact page is causing overflow at the bottom.
Since the <textarea> can be resized by the user.
When the  <textarea> gets  smaller the overflow  appears at the bottom of the page.
Another unwanted behavior is that by resizing the user can try to make the Form <textarea> scroll to infinity.
My suggestion is to make the  <textarea> fixed size,this will improve the overall quality of the user experience and not cause any unexpected behavior.
Steps To Reproduce
1.Go to the Contact Page
2. Use the resizing button at the bottom right corner of the <textarea>
3. Make the <textarea> smaller and an overflow appears.
Expected Behavior
No response
Operating System
Windows 🪟
Browser
Google Chrome
Screenshots

Additional information
No response

Thank you for opening this issue 😀 @Trickkyyy!
I will check your PR shortly.


The example link for adding new datasets in CONTRIBUTING.md isn't working

This link redirects to: https://github.com/activeloopai/Hub/blob/master/docs/dataset.md
Which says: PAGE NOT FOUND.
Since we are having a lot of new dataset contributions coming along the way, a detailed explanation of how to upload a dataset is required in the Docs (or atleast we must fix this first).
I would like to fix this with the guidance of the Maintainers. (Since this could be my first PR in ActiveloopAI, it is a huge motivation to get started if I can contribute. Also I am working on the dataset uploading too!)
Thank you.
The Page:

Changes done. No problem 😁

Thanks for flagging this, @sohamsshah! :)


It is still a global sound :/

is it only on pickup or on drop too?

i think both?

It is still a global sound :/

all right now I'm pretty sure it's fixed, even tested it with a friend so should be ok, but if it has any other problems lmk


Anvil's debug_traceTransaction behaviour differs from geth

Component
Anvil
Describe the bug
As of https://github.com/foundry-rs/foundry/pull/3198/commits/6e5a613e21f969bfd82afdd7f55b7cba96c1b2be, Anvil's debug_traceTransaction differs from geth in several places which are also on screenshots:

Incorrect memory state during MSTORE
Remaining gas and instruction gas cost calculated incorrectly: https://github.com/foundry-rs/foundry/blob/6e5a613e21f969bfd82afdd7f55b7cba96c1b2be/evm/src/executor/inspector/tracer.rs#L138-L139

Good catch. Yep we want this to be 1:1 compatible. cc @mattsse to keep this in mind for reth, we want byte compatibility I think with Geth RPC (esp. for debug_traceTransaction) and with Parity's tracing responses


Create funding-manifest-urls

To be able to participate in https://floss.fund, we need a well-known file. (Source: https://floss.fund/funding-manifest/)
https://www.jabref.org/.well-known/funding-manifest-urls

content:
https://github.com/JabRef/jabref/blob/main/funding.json

Side note: Current funding for GitHub is configured at https://github.com/JabRef/jabref/blob/main/.github/FUNDING.yml.

Just create the file here: https://github.com/JabRef/JabRefOnline/tree/main/public/.well-known


Add kromanow94 as member

Contributions:

https://github.com/kubeflow/manifests/pull/2544
https://github.com/kubeflow/manifests/pull/2588
https://github.com/kubeflow/manifests/issues/2516
https://github.com/kubeflow/manifests/issues/2517
https://github.com/kubeflow/manifests/pull/2229#pullrequestreview-1799825164
https://github.com/kubeflow/kubeflow/issues/7437#issuecomment-1874069314
https://kubeflow.slack.com/archives/CKBA5D0MU/p1702465109437099
https://kubeflow.slack.com/archives/C01A7RYEYMB/p1702556772959959
https://kubeflow.slack.com/archives/CE10KS9M4/p1700672066110009
https://kubeflow.slack.com/archives/CE10KS9M4/p1700672066110009

pytest output:
jovyan@romanok1-0:~/work/kubeflow/internal-acls/github-orgs$ pytest test_org_yaml.py
=============================================================================== test session starts ================================================================================
platform linux -- Python 3.10.6, pytest-7.4.1, pluggy-1.3.0
rootdir: /home/jovyan/work/kubeflow/internal-acls/github-orgs
collected 1 item

test_org_yaml.py .                                                                                [100%]

================================================================================ 1 passed in 0.18s =================================================================================

/lgtm

@zijianjoy we need him for Kubeflow 1.9. I cannot set him as owner for Dex etc. if he is not a member.

/approve
Welcome @kromanow94 to the community!

Awesome!


add new theme: nullptr

Thank you so much for your contribution.


Terrain analysis only seems to work with multi-polygon features

Terrain analysis has been performed using wps_generic_terrain_analysis on the 5797 catchments. Only those that have more than 1 polygon (for example those that have an orphan pixel that is not joined to the main polygon) work. The others return errors:
owslib.wps.WPSException : {'code': 'NoApplicableCode', 'locator': 'None', 'text': 'Process failed, please check server error log'}
And in the server error log:
2019-05-18 07:41:55,442] [WARNING] line=118 module=wps_generic_terrain_analysis CRS for /tmp/pywps_process_ptcvzq48/wcs_1bz1xa7l.tiff is not EPSG:6622. Reprojecting raster...
2019-05-18 07:41:55,815] [ERROR] line=229 module=Process Process error: wps_generic_terrain_analysis.py._handler Line 140 'Polygon' object is not iterable
2019-05-18 07:41:55,924] [INFO] line=271 module=Process Removing temporary working directory: /tmp/pywps_process_ptcvzq48
2019-05-18 07:41:56,707] [INFO] line=306 module=Service Request: execute
2019-05-18 07:41:56,782] [INFO] line=143 module=complexvalidator validating GeoJSON; Mode: 0
2019-05-18 07:41:56,960] [INFO] line=29 module=init Processing mode: default
I think I can trick the system into working by adding a dummy polygon to each catchment, but we would need to fix this for future users.
I've added 2 test cases: Basin_1.shp works because it has a few polygons. Basin_10.shp does not work and has only 1 polygon. This holds true for the 5797 catchments in the database so I am pretty confident in this assessment, No idea how to tackle the problem though.
Basin_1.zip
Basin_10.zip
Edit: My workaround of adding an orphan pixel worked for a few catchments, now I am getting either the same error message, or this new one:
2019-05-18 23:50:29,884] [WARNING] line=118 module=wps_generic_terrain_analysis CRS for /tmp/pywps_process_upbojpog/wcs_cuxe3tom.tiff is not EPSG:6622. Reprojecting raster...
2019-05-18 23:50:30,479] [ERROR] line=229 module=Process Process error: wps_generic_terrain_analysis.py._handler Line 140 not enough values to unpack (expected 4, got 0)
2019-05-18 23:50:30,586] [INFO] line=271 module=Process Removing temporary working directory: /tmp/pywps_process_upbojpog
Edit 2: Upon further investigation, I have found that all catchments with latitude points below 40°N are failing. I assume the DEM/Raster does not cover the entirety of the USA?

@richardarsenault The DEM should be available for all of North America. The PAVICS instance also shows that the coverage is available, so I'm not sure how that's happening.
It's possible that I didn't write a case for simple polygons. I have limited time this week for raven, but I'll see if I can spend some time on this problem specifically.

@Zeitsperre Hmmm is it possible that the slope DEM is not calculated beyond 40°N? the terrain_analysis is the only wps service that is not working. the shape_properties works, as does the NALCMS Land Cover. And in my dataset it is a perfect match between the 40°N limit and the code working or not. All above 40°N work, all others fail (about half-half on a 5797-basin dataset). Unless something else I don't see could be affecting this and giving these results?

The CRS should be also cover areas south of 40N, but in case that is indeed the issue, can you try running your analysis using 3978 or 102008. These projections cover USA and Canada so anything dropping below 40N should be supported. Storage space for intermediary files shouldn't be an issue either, even with such a large number of features.
Also, the handling for polygon and multipolygon features should be fine. I don't imagine there being an issue for single feature shapefiles but I'll have to check in on that when I'm at the office.

Oh yeah I hadn't thought of the projection.. I just checked and 6622 (Quebec Lambert) covers most of NA over 40.04°N, which would explain the problem!
WGS84 bounds:
-141.01 40.04
-47.74 86.46
Do you think the results will still be good if I change the projection? In any case, I've started the runs and it works!! So we can quality-check after but at least a basic DB will be ready.
Thanks for your help!

The quality depend on the purposes. I should try looking into a generic CRS for North America that we can use by default. I know for some calculations performed via PostGIS, the Great Circle distances are used, but these are really simplified. Worth looking further into.

@richardarsenault Les liens vers les fichiers tests ne marchent pas pour moi.

J'ai "guessé" d'où venait l'erreur dans fix-127. Probabilité de succès faible...


Migrate AttachmentPicker/index.js to functional component

Details

Fixed Issues

$ https://github.com/Expensify/App/issues/16115
Tests

This PR does not affect the native Android and iOS

Click the plus sign
Choose the add attachment option
Verify that the chosen attachment is sent
(on mobile devices) Verify that we can add an image from gallery / camera.

[x] Verify that no errors appear in the JS console

Offline tests

QA Steps

[x] Verify that no errors appear in the JS console

PR Author Checklist

[x] I linked the correct issue in the ### Fixed Issues section above
[x] I wrote clear testing steps that cover the changes made in this PR

[x] I added steps for local testing in the Tests section
[x] I added steps for the expected offline behavior in the Offline steps section
[x] I added steps for Staging and/or Production testing in the QA steps section
[x] I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
[x] I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
[x] I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).

[x] I included screenshots or videos for tests on all platforms
[x] I ran the tests on all platforms & verified they passed on:

[x] Android / native
[x] Android / Chrome
[x] iOS / native
[x] iOS / Safari
[x] MacOS / Chrome / Safari
[x] MacOS / Desktop

[x] I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
[x] I followed proper code patterns (see Reviewing the code)

[x] I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick)
[x] I verified that the left part of a conditional rendering a React component is a boolean and NOT a string, e.g. myBool && <MyComponent />.
[x] I verified that comments were added to code that is not self explanatory
[x] I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
[x] I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method

[x] If any non-english text was added/modified, I verified the translation was requested/reviewed in #expensify-open-source and it was approved by an internal Expensify engineer. Link to Slack message:

[x] I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
[x] I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is approved by marketing by adding the Waiting for Copy label for a copy review on the original GH to get the correct copy.
[x] I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
[x] I verified the JSDocs style guidelines (in STYLE.md) were followed

[x] If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
[x] I followed the guidelines as stated in the Review Guidelines
[x] I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
[x] I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
[x] I verified any variables that can be defined as constants (ie. in CONST.js or at the top of the file that uses the constant) are defined as such
[x] I verified that if a function's arguments changed that all usages have also been updated correctly
[x] If a new component is created I verified that:

[x] A similar component doesn't exist in the codebase
[x] All props are defined accurately and each prop has a /** comment above it */
[x] The file is named correctly
[x] The component has a clear name that is non-ambiguous and the purpose of the component can be inferred from the name alone
[x] The only data being stored in the state is data necessary for rendering and nothing else
[x] For Class Components, any internal methods passed to components event handlers are bound to this properly so there are no scoping issues (i.e. for onClick={this.submit} the method this.submit should be bound to this in the constructor)
[x] Any internal methods bound to this are necessary to be bound (i.e. avoid this.submit = this.submit.bind(this); if this.submit is never passed to a component event handler like onClick)
[x] All JSX used for rendering exists in the render method
[x] The component has the minimum amount of code necessary for its purpose, and it is broken down into smaller components in order to separate concerns and functions

[x] If any new file was added I verified that:

[x] The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory

[x] If a new CSS style is added I verified that:

[x] A similar style doesn't already exist
[x] The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))

[x] If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
[x] If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
[x] If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
[x] If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
[x] If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.
[x] I have checked off every checkbox in the PR author checklist, including those that don't apply to this PR.

Screenshots/Videos

Web

Mobile Web - Chrome

https://github.com/Expensify/App/assets/3111202/a9caf55e-4a3f-421c-80a2-1d4434c98484

Mobile Web - Safari

https://github.com/Expensify/App/assets/3111202/eae527c1-cce7-4ca2-be54-83e82156765f

Desktop

https://github.com/Expensify/App/assets/3111202/f3947452-afa3-4bd8-a875-93d1360fbd9d

iOS

https://github.com/Expensify/App/assets/3111202/cefe36d4-4394-4d21-8704-c944b8be31af

Android

https://github.com/Expensify/App/assets/3111202/15697e31-8e92-4920-ae09-ca457f17da16

Thanks!

🚀 Deployed to staging by https://github.com/mountiny in version: 1.3.20-0 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅

🚀 Deployed to production by https://github.com/Julesssss in version: 1.3.20-5 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅


Adding deathbycaptcha.com service

Thank you for your contribution. But your code doesn't work for me.

The acceptance tests do not work for me, but all the other tests I did run and all passed successfully. I also tried solving the captchas that deathbycaptcha accepts one by one and everything works fine. If I can do something let me know.

deathbycaptcha.com service has been added


< and > shown in stack frame paths when debugging

Environment data

VS Code version: 1.29 - insiders 4b2fac2b6da220f62ff58b2766e4ecc1f561be94
Extension version (available under the Extensions sidebar): 2018.9.2
OS and version: MacOS 10.14
Python version (& distribution if applicable, e.g. Anaconda): 3.7
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): None
Relevant/affected Python packages and their versions: Django

Bug
Stack frames have escaped < and >

Steps to reproduce:

Create a basic django project using django-admin startproject (e.g. django-admin startproject mysite .)
Open settings.py and place a breakpoint on the STATIC_URL line
Use the default Django debug configuration
Press f5 to start debugging and hit breakpoint

Upstream issue has been closed https://github.com/Microsoft/ptvsd/issues/981


reflect user-edits(as feedback) into the post-editing workflow

[ ] Definition of API
[ ] Implementation of API within OpenOCRCorrect as a special function
[ ] Check if the user-edits are successfully applied to the project

Tightly coupled with #16


⚠ Bofrost.com has degraded performance

In 05192a9, Bofrost.com (https://www.bofrost.com) experienced degraded performance:

HTTP code: 200
Response time: 929 ms

Resolved: Bofrost.com performance has improved in 22a794d after 4 hours, 34 minutes.


Post the fishing mod of crabman on the forum

Post the fishing mod of crabman on the forum
We need to work together to write the forum post of the fishing mod of crabman on the forum, it's clearly the best and stable with more features Minetest has never had.

https://semestriel.framapad.org/p/fishing-mod

[ ] Text with explanations
[ ] Screenshots
[ ] download links
[ ] Display code

pad édité avec le descriptif et liens des screnshoot, il faut vérifier les fautes de traductions.

Great news, so we just need to check the translation and maybe display a small piece of the code and it's over :)

Posted in the forum, WIP mod : https://forum.minetest.net/viewtopic.php?f=9&t=13659
Request to be in released mod : https://forum.minetest.net/viewtopic.php?f=11&t=10418#p199912
I closed this issue, it's done :)


GH-38909: [Packaging] Drop support for Ubuntu 23.04

Rationale for this change
It will reach EOL on 2024-01 and our next major release will not be happen in this year.
What changes are included in this PR?
Remove Ubuntu 23.04 related codes and files.
Are these changes tested?
Yes.
Are there any user-facing changes?
Yes.

Closes: #38909

@github-actions crossbow submit -g ubuntu

Good catch! You're right.
I've removed it.

@github-actions crossbow submit ubuntu-*


build ansible-runner via branch

Probably we should merge into devel with https://github.com/influxdata/awx-ee/pull/11 instead of this PR.

Probably we should merge into devel with #11 instead of this PR.

Yup - when I first opened, devel didn't exist :-D


Can't download star rail

When download star rail, show not responding

Hi @yarndinasti
Thanks for reporting this.
This is a known issue on the latest version of stable releases and this was caused by a few changes being made recently.
A hotfix is currently underway and hopefully will be shipped as soon as we possibly can.

Hi, I've made a debug build using latest commit that include the fix that you can test here:
https://www.mediafire.com/file/13h54rtrckdkmbe/Collapse-Debug_670b93d47783e2b409bdb2bf7bed2345fbd0c949_10.0.19041.0_Net7.0.7z/file
Please keep in mind that this debug build doesn't have any updater so make sure to use normal builds (pre/stable) after you've done with downloading the game.
To use this build, just extract it and run CollapseLauncher.exe, all configs from normal build will be used.
Let us know if you have any difficulties or issues using this build.

Hi @yarndinasti,
This bug should've been fixed in the recent update. Please update your launcher to the latest version.
We are going to close this issue in 24 hours if you don't have any other issues.


LLaMA: 'NoneType' object has no attribute 'fromCPU'

'NoneType' object has no attribute 'fromCPU'
  File "E:\Coding_and_Scripting\projects\llama tinygrad\llama.py", line 52, in <listcomp>
    self.wq, self.wk, self.wv, self.wo = [Linear(dim, dim, bias=False) for _ in range(4)]
  File "E:\Coding_and_Scripting\projects\llama tinygrad\llama.py", line 52, in __init__
    self.wq, self.wk, self.wv, self.wo = [Linear(dim, dim, bias=False) for _ in range(4)]
  File "E:\Coding_and_Scripting\projects\llama tinygrad\llama.py", line 97, in __init__
    self.attention = Attention(dim, n_heads)
  File "E:\Coding_and_Scripting\projects\llama tinygrad\llama.py", line 109, in <listcomp>
    self.layers = [TransformerBlock(dim, multiple_of, n_heads, norm_eps) for _ in range(n_layers)]
  File "E:\Coding_and_Scripting\projects\llama tinygrad\llama.py", line 109, in __init__
    self.layers = [TransformerBlock(dim, multiple_of, n_heads, norm_eps) for _ in range(n_layers)]
  File "E:\Coding_and_Scripting\projects\llama tinygrad\llama.py", line 239, in <module>
    model = Transformer(**args_7B)```

Fixed by updating llama.py and helpers.py


Update Sym Link after deploy to another site

I currently have a Drupal 7 site that uses Deployer and a separate Drupal 8 site which is a folder inside the Drupal 7 site.
I have the following inside my deploy.php for the Drupal 7 site:
set('shared_dirs', [
  'web/d8_site',
]);

I have a simlink setup to the d8 site inside shared/web.
d8_site ->  /home/myserver/sites/d8_site/current/web/

The problem is that inside the Drupal 7 releases, the sym link is not to current but to an actual release number:
d8_site -> ../../../../d8_site/releases/10/web/

So whenever I make a change to the D8 site, it never shows the latest code on live because the sym link stays to the same release number.
Anyone know of a good way to handle updating the sym link on a separate site that was not updated.

Create a task for manual symlinking currect d8. Add it last in chain.

Do you by any chance know if there is an easy way to get the latest release number?  I have to get the latest release number from the D8 site and then get the latest release number of the D7 site and update the symlink in the latest D7 release to the latest D8 release.

Can .dep/releases file, tail is your latest)

Turns out I didn't even need to go through .dep/releases.   I created this task:
task('d7:symlink', function () {
  run('cd ~/sites/d7/current/web && ln -nfs {{release_path}}/web d8_site');
});
``


VScode Terminal typing lag MBP 16

VSCode Version: 1.52.1
OS Version: Big Sur 11.2

Steps to Reproduce:

Simple type in the terminal build into VScode
When typing into the VScode zsh or bash terminals, there is a distinct lag that happens every 8 or so seconds where visually the terminal doesnt register what I am typing for a full second and after this lapse, everything that I had typed but was not appearing, then suddenly appears.

Does this issue occur when all extensions are disabled?: Yes

/duplicate https://github.com/microsoft/vscode/issues/105446


Is this package still recommended?

It seems that Pino now has redaction in core:
https://github.com/pinojs/pino/blob/master/docs/redaction.md
Is there still a use case for this package?

Its still available for Pino 4 users but Pino 5 onwards should use the built in redaction


Update navbar & devtool & sidebar

Description:

Update the navbar to include "Get Help" button, which will lead users to our Discord channel
Update the styling of the Color Mode Toggle

Update the wording of 4 tutorials, so that texts won't wrap to the second line (links are also updated)

Update the devtool section on DApp overview page and DevTool Page

Sidebar adjustments: Move Ecosystem down & Add "Mining" and "Run Node" as coming soon
Remove unused svgs.

Much better than before!
UI issue:

"Coming soon" menu items should be: i) disabled, so no pointer ii) use lower case for "coming..." iii) make these items a lighter grey.
Tab padding when hovering is missing side padding.


source_id and experiment_id updated in CMIP6_CVs

Some changes to source_id and experiment_id were just implemented WCRP-CMIP/CMIP6_CVs#466, so it's important that these are pulled across to the CMIP6_CV.json promptly next week
@dnadeau4 @taylor13

If this has been done, this issue can be closed.

@dnadeau4 If this has been done, this issue can be closed.

@dnadeau4 @doutriaux1   Can this issue be closed?


fix: :pushpin: Add spectrafit-all

Checklist

[ ] Used a personal fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[ ] Ensured the license file is being packaged.

@conda-forge-admin, please rerender


Supplemental trip matching pattern, thanks to Kurt Raschke!

Looser trip matching to enable supplemental gtfs matching

@philmatu I realize now why there was some confusion about this - I thought the trip ID regexp was left-anchored, which it isn't.  Thus there would not have been a problem with a trip ID like L0S2-G-1048-S01_085650_G..S14R from the supplemented GTFS, because the regexp would have quite happily matched everything after the last dash (see https://regex101.com/r/HEgv3U/1).  It was only once we got to trips with negative origin departure times, like L0S3-2-1094-S136_-00100_2..S08R that we actually had a problem.
There's an argument to be made that the regexp should in fact be left-anchored (i.e. https://regex101.com/r/5XaqTy/1), but that seems nitpicky.

Sample data for this is on the supplimental-data branch of this repo. @philmatu and I could not figure out how to inject a different static GTFS file into RtTestRunner, but maybe that will happen next week.

Thanks @philmatu, @kurtraschke, and @laidig!


The C++ load balance example needs more details

Hi,
Could you elaborate more on the C++ load balance example? Some important concepts and code are missing, like Resolver, Builder and UpdateState.
https://github.com/grpc/grpc/blob/master/examples/cpp/load_balancing/greeter_client.cc
The Golang example is quite a good one, for your reference. https://github.com/grpc/grpc-go/blob/master/examples/features/load_balancing/client/main.go

@markdroth - documentation enhancement request for load balancing.

The example you pointed to is actually not an example of how to write a load balancing policy; it's just a very simple example of how to set up multiple backends to use the round_robin LB policy with.
The C-core load balancing policy is actually not a public API yet, although we are working on making it one.  But until that's done, there's nothing to document yet.


adding a new item at the beginning of the list casuse wierd reordering

Current behavior
I'm using FlashList with data provided from redux, when I want to add a new item to my list with redux everything is ok on redux side and the list is ok, but on FlashList i don't see my newly added item on the beginning of the list instead I see the third item appears at the beginning of the list, but I see my log from my data and data is ok just FlashList is not showing the right item on the list.
and when i replace Flashlist with FlatList everything is rendering ok and I see the right data on screen
Expected behavior
newly added item show at the beginning

Platform:

[ ] iOS
[x ] Android

Environment

"@shopify/flash-list": "1.6.2",

me too

@anhphamtien No, I stopped using flashList for now, until it gets fixed.


add labeltype "Todesursache"

add it to index

as "cause_of_death"

preferably under "Gestorben" (Date of Death)


Detectron2LayoutModel requires the detectron2 library but it was not found in your environment

I have Windows and went through installation as suggested by @ivanpp for installing Detectron2 on Windows: Detectron2 walkthrough (Windows).
I write a code in jupyter notebook. If I change directory to where I installed detectron2 as mentioned above, import detectron2 and import layoutparser runs. However, I still get an error. Why so?
import detectron2
import layoutparser

model = lp.Detectron2LayoutModel('lp://PubLayNet/mask_rcnn_X_101_32x8d_FPN_3x/config',
                                 extra_config=["MODEL.ROI_HEADS.SCORE_THRESH_TEST", 0.5],
                                 label_map={0: "Text", 1: "Title", 2: "List", 3:"Table", 4:"Figure"})

or

model = lp.models.Detectron2LayoutModel('lp://PubLayNet/mask_rcnn_X_101_32x8d_FPN_3x/config',
                                 extra_config=["MODEL.ROI_HEADS.SCORE_THRESH_TEST", 0.5],
                                 label_map={0: "Text", 1: "Title", 2: "List", 3:"Table", 4:"Figure"})

ImportError                               Traceback (most recent call last)
Cell In[53], line 1
----> 1 model = lp.models.Detectron2LayoutModel(config_path ='lp://PubLayNet/faster_rcnn_R_50_FPN_3x/config')
File C:\anaconda\lib\site-packages\layoutparser\models\base_layoutmodel.py:87, in BaseLayoutModel.new(cls, *args, **kwargs)
85 def new(cls, *args, **kwargs):
---> 87     requires_backends(cls, cls.DEPENDENCIES)
88     return super().new(cls)
File C:\anaconda\lib\site-packages\layoutparser\file_utils.py:175, in requires_backends(obj, backends)
173 name = obj.name if hasattr(obj, "name") else obj.class.name
174 if not all(BACKENDS_MAPPING[backend]0 for backend in backends):
--> 175     raise ImportError(
176         "".join([BACKENDS_MAPPING[backend][1].format(name) for backend in backends])
177     )
ImportError:
Detectron2LayoutModel requires the detectron2 library but it was not found in your environment. Checkout the instructions on the
installation page: https://github.com/facebookresearch/detectron2/blob/master/INSTALL.md and follow the ones
that match your environment. Typically the following would work for MacOS or Linux CPU machines:
pip install<EMAIL_ADDRESS>P.S. I also tried on Colab and same issue

having the same issue.

having the same issues as well, any potential of fixing this?

Having the same issue, however i installed detectron2 differently as described in the LayoutParser documentation. i would not get detectron installed the default way. when i try install detectron i get the following error:
ERROR: Failed building wheel for detectron2
Running setup.py clean for detectron2
Failed to build detectron2
ERROR: Could not build wheels for detectron2, which is required to install pyproject.toml-based projects

I'm using MacOS M3 and able to successfully install detectron2 through Anaconda.


chore: added instructlab dashboard

What does this PR do?
Adds InstructLab dashboard
Screenshot / video of UI
What issues does this PR fix or reference?
Closes #2225

TODO:

Convert icon to font awesome type
Update banners with relevant data

Need to wait untill https://www.npmjs.com/package/@podman-desktop/ui-svelte/v/latest?activeTab=code will contain https://github.com/podman-desktop/podman-desktop/pull/10309 changes


Describe metadata.annotations

Signed-off-by: Luiz Carvalho<EMAIL_ADDRESS>

Implementation done in https://github.com/containerbuildsystem/operator-manifest/commit/014eafeb2fd2d24c024c90198424c13894498110
Documentation added in https://github.com/containerbuildsystem/operator-manifest/commit/46a8c763b33287280de057a9d95ea48c5548c4f5


Not inferring return type for Object.prototype extension

TypeScript Version:  2.3.2
Code
code.ts
Object.prototype.myGet = function myGet() {
  return this
};

const a = { prop1: 2 };

console.log(a.myGet().prop1);

types.d.ts
interface Object {
  myGet(): this;
}

Expected behavior:
Should be able to have correct type on the return of a.get() such that it should know that prop1 exists
Actual behavior:
on compile
TSError: Property 'prop1' does not exist on type 'Object'

just found #12507 closing


Create unique identifier for a fleet of instances deployed together

This is a precursor to #66. We need to be able to identify a set of instances that are part of the same deployment so that when we perform a deployment to replace old instances, we can ensure that we don't bring down the wrong instances.

This can be handled with a deployment group in CodeDeploy. Don't think we need anything special here.


Documentation on Token Based Authorization using IdentityServer with Blazor

Kindly provide a working sample or comprehensive documentation on how to use Token based authorization using IdentityServer and how to store Access Token and Refresh Token on the client side?

@noufionline There's a feedback form at the bottom of the topics that helps us work these. It adds metadata and automatically pings the author.
No worries tho ..... I just moved this over to https://github.com/aspnet/AspNetCore.Docs/issues/14191.

@guardrex Thanks a Ton :) Really appreciate you gesture.


node-webkit/nw9.nix: remove

Motivation for this change
Obsolete since #37380 and severly outdated (#37361)
/cc @Profpatsch
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

Thanks!


Committees: Add 1st and 2nd vice chairs as office titles

This year, the Executive Management Committee has both a 1st Vice Chair (Solis) and a 2nd Vice Chair (Najarian), instead of just Vice Chair. 1st Vice Chair and 2nd Vice Chair were recently added as board office titles for the Regular Board, could you also add them to committees?

Heya, @shrayshray! We already have logic in place to handle this. Specifically, committee members should be displayed in this order:

Chair
Vice Chair
1st Vice Chair
2nd Vice Chair
Member

Folks holding the same role will be ordered by last name. I'll keep this open so we can double check that the new memberships are displayed as expected, once they're added!
(Convenience link to EMC memberships in Legistar, for my reference: https://metro.legistar.com/DepartmentDetail.aspx?ID=28542&GUID=1913C09E-B178-4D3C-8844-B55F7ED448BD&R=9999a14e-e587-4b74-b8b5-05f5f824d735)

Well, this was another "doh" moment of forgetting to check "show on web" for each member, hence them not showing on the Legistar page. However, the current members are showing on boardagendas.metro.net, just without Ara Najarian's 2nd Vice Chair designation (doh 2.0, Solis was entered as "Vice Chair" not 1st Vice. Corrected now):

They all have "show on web" checked now. But not having it checked might have impacted how the titles showed? Or does 2nd Vice showing depend on a 1st Vice being assigned?

Phew, this has been a journey! The application is set up to handle 1st / 2nd Vice Chair roles for committees, but the scraper was not! I submitted a patch, then re-ran the person scrape to grab the correct memberships. (I also needed to remove the erroneous Vice Chair and Member roles for Najarian and Solis. To my eye, the EMC page now looks correct! How about you, @shrayshray? (And are there other committees with the 1st / 2nd Vice Chair roles?)

@hancush yes! This looks correct! There aren't any other committees with 1st and 2nd Vice Chair this year.


[Icon Request] Support for Confluence and Jira [Atlassian]

[x] I'm sure this issue is not a duplicate.
[x] I'm submitting an icon request:

Type: extension
Icon Name: atlassian
Sample original Icon:
Extensions: .confluence .jira .wiki .markup

More info: VSCode Confluence Markup plugin

This can be supported via language id.

I do rather use the official confluence logo instead of the Atlassian Company due to being used as language id.


Fix del via ClientValueWrapper

The client must find the difference between a deleted value or a non-existent value. The practical difference is:
// actually deleted value (tomb = true)
return {
  sortKey: "some sort key",
  cachedValue: null,
}
// non-existent value (tomb = false)
return null

#20 has the fix, it doesn't use ClientValueWrapper but instead uses an empty-string trick, more suitable to Redis.

Issue shall be closed once we confirm deletion works correctly by SmartWeave.KV.del

Confirmed.


⚠ Bofrost.lu has degraded performance

In dcfc492, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 993 ms

Resolved: Bofrost.lu performance has improved in 02e0b50 after 6 minutes.


Success and error messaging for join page

A 422 for any error for attempting to join a classroom is expected. We should have a error message listing possible reasons like current wildcam lab does
A success message should show for I2A classrooms, but a redirect to the map viewer should happen for the Darien classrooms.

Done by #51


Why is this static?

This has to be one of the best boiler plates that I have ever seen. But ... what a surprise?  You have your own routing. Why?

By the way I can't do nested routes. How do I nest routes? ...  Thank you. Good bye.


Starting a Zero Trust Security Working Group

Please share any additional details on this topic
We have a proposal for a Zero Trust Working Group including participation commitments from several ASWF members. We want to update the TAC on the proposal so they can review it for subsequent approval.
Not sure of the process here. We could do 5-10 minutes at one meeting, get TAC review and comments off line, and then bring back for approval.
Detail what actions or feedback you would like from the TAC
TAC feedback on the proposed charter and subsequent TAC approval.
How much time do you need for this topic?
5 minutes or less

Thanks @j-helman - we should be able to accommodate this today. Looking forward to the update!

Great. I'd like Daryll Strauss to join the call as well. Any special arrangements for that?

None at all - have him go to https://zoom-lfx.platform.linuxfoundation.org/meeting/97880950229?password=81d2940e-c055-43b9-9b5a-6cd7d7090feb to get an invite and join the meeting

Also, should I upload the proposed charter now to https://github.com/AcademySoftwareFoundation/tac/issues/new/choosechoose, or wait until after the meeting discussion?

Go ahead and upload it now as it will be helpful as a pre-read

@j-helman will follow up with details on operations.


Add support for forwarding UNIX sockets from the guest to the host

For example the docker port forwarding in #210 would be more robust if it would just forward the socket instead of letting docker connect via ssh. The latter is brittle because user names and keys all must resolve correctly for this to work.
See https://github.com/abiosoft/colima/blob/9adcf3c/colima#L151 for a mechanism that should be built into the host agent.

I suspect this should be relatively straightforward to implement. Is this in progress already?
If no then I can give it a shot. Any pointers?

Do we want to scan /proc/net/unix? (No, in my opinion)
Do we just want to add new fields like guestUnix and hostUnix to the existing top-level portForwards list? Or do we need a new top-level yaml field like unixForwards? (I prefer the former, but not a strong opinion)

https://github.com/lima-vm/lima/blob/df25c45939cebacb1a479f1d4ac4f44491e86871/pkg/limayaml/default.yaml#L144

Do we want to scan /proc/net/unix to automatically forward every socket? (No, in my opinion)

No for me as well.

Do we just want to add new fields like guestUnix and hostUnix to the existing top-level portForwards list? Or do we need a new top-level yaml field like unixForwards? (I prefer the former, but not a strong opinion)

I think it should be included in portForwards.

In unix environments, ports and sockets are handled similarly. e.g. even curl can make requests to sockets.
Sockets can be forwarded to ports and vice versa. Having it under portForwards will accommodate such config.

I suspect this should be relatively straightforward to implement. Is this in progress already?
If no then I can give it a shot. Any pointers?

Not in progress, and I personally wouldn't get around to it anytime soon either. So it would be awesome if you could implement this!
I'm agreeing with everybody else above (add it to portForwarding).
One thing I'm wondering though: can you forward a socket before it exist? If not, then we may still need some kind of polling. Still, we should only forward sockets explicitly configured in lima.yaml and nothing by default.
Oh, and one other question: do we need to mkdir -p the directory of the hostsocket?
PS: @abiosoft Nice work on colima!  I always enjoy a nicely written shell script.

Not in progress, and I personally wouldn't get around to it anytime soon either. So it would be awesome if you could implement this!

Okay, cool. I should give this a shot before the end of the week.

One thing I'm wondering though: can you forward a socket before it exist? If not, then we may still need some kind of polling. Still, we should only forward sockets explicitly configured in lima.yaml and nothing by default.

I am not sure in general but as for ssh forwarding, the file does not need to exist. Connections will fail obviously but it is fine.
It's like a reverse-proxy returning a 502 for a failed backend, and things go back to normal when the server is back up (or file exists and responding to requests in this case).

Oh, and one other question: do we need to mkdir -p the directory of the hostsocket?

Yes. The directory needs to exist. However, the file must not exist and would be created by ssh.

PS: @abiosoft Nice work on colima! I always enjoy a nicely written shell script.

Thanks :)

Do we want to scan /proc/net/unix to automatically forward every socket? (No, in my opinion)
Do we just want to add new fields like guestUnix and hostUnix to the existing top-level portForwards list? Or do we need a new top-level yaml field like unixForwards? (I prefer the former, but not a strong opinion)

https://github.com/lima-vm/lima/blob/df25c45939cebacb1a479f1d4ac4f44491e86871/pkg/limayaml/default.yaml#L144

Completely agreed. I was looking for this and I think a unixForward configuration can let much more latitude and it should event prevent custom configuration for all host machine applications already configured to use the "standard socket" (example with Docker apps looking for /var/run/docker.sock).

Okay, cool. I should give this a shot before the end of the week.

@abiosoft Did you get a chance to start work on this already? If not, then I may work on it next week.
But if you already have something, could you push a draft-PR so we can collaborate?

@abiosoft Did you get a chance to start work on this already? If not, then I may work on it next week.
But if you already have something, could you push a draft-PR so we can collaborate?

@jandubois I have not started yet, still busy with other things at the moment.

Thanks for the update @abiosoft; I'll look into it next week then.

@jandubois were you able to start working on this?

@abiosoft Please let me know if you have started on this; otherwise I plan to work on it starting Wednesday.


Understanding the example

Hey there,
I've been reading up on DDD and I'm trying to understand the way the example is structured.
So first, with the aggregates folder: Is an aggregate here equivalent to a DDD aggregate?
I was wondering about value objects and entities and how they should be represented. I assumed that idea, project, and user are each a root entity inside some aggregate, with value objects maybe added directly from the event, without being explicitly modeled in the domain.
But then I looked at the projections folder and saw that projects and ideas are properties of the user which made me think that maybe user is the root entity and idea and project are additional entities inside the same DDD aggregate, and that maybe aggregate here means something different.
Moving on to projections: projects and ideas are initialized as empty arrays on the userRegistered event. Is that where default/initial values should be set? and not in the defaultState of the aggregate?
Thanks so much for your patience and sorry if these questions are really annoying 😜

No worries. I am glad to answer any questions. I will do my best at explaining the structure of the domain in the example. Just let me know if you have any additional questions that I did not answer.
example
├── domain
│   ├── aggregates - the write-models for your domain (command handlers)
│   │   ├── idea.js - the bounded context for an idea
│   │   ├── project.js - the bounded context for a project
│   │   └── user.js - the bounded context for a user
│   └── projections - the read-models for your domain (query handlers)
│       └── users.js - a projection that joins the idea, project, and user models
└── external - domain-agnostic data storage mechanisms
    ├── aggregate-stores
    │   └── memory.js - stores aggregate snapshots in an in-memory database
    ├── event-stores
    │   └── memory.js - stores events in an in-memory database
    └── projection-stores
        └── memory.js - stores projection snapshots in an in-memory database

This example combines concepts from DDD and CQRS. The way that the example is structured assumes that each aggregate has it's own external event store and aggregate store implementation. There are 3 aggregates (users, projects, and ideas), each representing a bounded context as well as a consistency boundary. The aggregates are only responsible for processing a command and either returning new events or throwing an error. A single command may create multiple events, but those events may not span multiple aggregates (in order to support atomic commits to the event store). On the other hand, the projections are only responsible for processing queries and returning values. A single projection, unlike an aggregate, may listen to events from multiple aggregates in order to support complex views. This example shows how a single projection spans multiple bounded contexts to support a rich query.

Thanks! that helps a lot. So projections interpret events to construct some representation of the data. And the answer to my earlier question about default values is that it depends if they are a property of the entity or default values in the representation that your query is building; which are two completely separate things. Got it.
Would it make sense to use this library if I plan to separate my bounded contexts across multiple microservices (each running in it's own AWS lambda function)? As I understand it, if my projections span multiple bounded contexts, then they would need to be in some distinct microservice which subscribes to all the events required to build those projections.

I designed this package to work with either a monolithic application or a suite of microservices. In your lambda functions, you will need to create an instance of the domain class (see this) with any event stores and projection stores needed for that particular service. It may be easier to just create the instance with all of the externals in every service. This package will derive dependencies on the fly based on your projections, and only query event stores that are required.

So defining a projection within a domain instance is requires that all events processed by that projection are also defining within aggregates of that same domain instance? or can they be separate

The names of the aggregates and projections do not need to match. The projection states are built the same way that the aggregate states are built: by folding past events. Each aggregate function should be side-effect free (similar to redux reducers). The event handlers take the current state and an event, and return a new derived state. The command handlers take the current state and a command, and either accept a new event or reject with an error.

I will take some time this week to expand on the example application and add comments detailing each function.


Bump concourse version to  v1.6.0

This PR requires #9 to be merged before merging this.

@mumoshu And, I would like you to update repository description, thanks!

LGTM 👍 A lot of thanks for continuously contributing!


base.yaml add libext2fs-dev

Please add the following dependency to the rosdep database.
Package name:
libext2fs-dev
Package Upstream Source:
https://sourceforge.net/projects/e2fsprogs/
Purpose of using this:
This dependency is used to interact with drive and it would be really nice to install it with rosdep
Links to Distribution Packages

Debian: https://packages.debian.org/

https://packages.debian.org/bullseye/libext2fs-dev

Ubuntu: https://packages.ubuntu.com/

https://packages.ubuntu.com/focal/libext2fs-dev

Fedora: https://src.fedoraproject.org/browse/projects/

https://src.fedoraproject.org/rpms/e2fsprogs

Arch: https://www.archlinux.org/packages/

https://archlinux.org/packages/core/x86_64/e2fsprogs/

Gentoo: https://packages.gentoo.org/

https://packages.gentoo.org/packages/sys-libs/e2fsprogs-libs

macOS: https://formulae.brew.sh/

https://formulae.brew.sh/formula/e2fsprogs#default

Alpine: https://pkgs.alpinelinux.org/packages

https://pkgs.alpinelinux.org/package/edge/main/x86_64/e2fsprogs

NixOS/nixpkgs: https://search.nixos.org/packages

https://search.nixos.org/packages?channel=21.05&show=e2fsprogs&from=0&size=50&sort=relevance&type=packages&query=e2fsprogs

Galactic
The source is here:
https://sourceforge.net/projects/e2fsprogs/
Checks

[ ] All packages have a declared license in the package.xml
[ ] This repository has a LICENSE file
[ ] This package is expected to build on the submitted rosdistro

Please address the CI failure, it looks like you have some things out of alphabetical ordering:
https://github.com/ros/rosdistro/pull/30769/checks?check_run_id=3648304979#step:6:183

sorted packages in alphabetical order and added the CI suggested packages

That is a good point, it seems like debian, ubuntu and OpenSUSE split the e2fsprogs package and libext2fs2 is one of them. Other distors just install the e2fsprogs as a whole. I guess I should change this PR to adding e2fsprogs instead of libext2fs2

I actually needed the libraries only. But adding e2fsprogs will work for me, and it will be consistent across other distors


Update to project settings for pkggen

Update to project settings for pkggen

Hi @parameshbabu, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

It looks like you're a Microsoft contributor (Paramesh Babu). If you're full-time, we DON'T require a Contribution License Agreement. If you are a vendor, please DO sign the electronic Contribution License Agreement. It will take 2 minutes and there's no faxing! https://cla.microsoft.com.

TTYL, MSBOT;


Asset Camera Configuration Page is throwing unwanted request and error

Describe the bug
When you open the camera asset configuration page, and stay on that page for 5 seconds, you keep on receiving an "Object Object" error in the frontend

/api/v1/asset/d5e008e8-2ce6-4c0a-9262-68d910601d42/operate_assets/ request is send on a loop with response 400

To Reproduce
Steps to reproduce the behavior:

Go to asset tab
Open any camera asset
open the configuration page, make sure that they don't have any configuration
See error

Expected behavior

[ ] unwanted requests shouldn't fire from the frontend
[ ] all related relevant errors thrown should be users readable

Screenshots

For preventing the requests, we can add a hostname check for this scenario (cameraAsset.hostname corresponds to the ip address field).

For (2), the error notification is coming from fireRequest (getStreamToken, calling operateAsset):

But for this api call, backend is sending a detail object as data.

On a side note, I was testing with a random IP address (expecting a 500 response), however that doesn't trigger further API calls as error.response is not being returned in fireRequest. Should we not change that?

Resp is undefined so it won't called onError function.

@Jacobjeevan fixed in #8253 as that switches to using the newer feed component in the configure page which handles errors more appropriately.


Switch to super-linter for CI Linting using GitHub Actions

Describe the feature
I propose switching our CI linting setup, which includes shellcheck, markdownlint, eslint, and others, to use super-linter exclusively for GitHub Actions. super-linter is a comprehensive and centralized linter that supports multiple languages, providing a unified linting experience.
Use Case
There are some benefits of super-linter:

Unified Linting: super-linter supports a wide range of languages and linters, providing a unified linting solution for our GitHub Actions workflow.

Easy Configuration: Simplifies configuration by having a single .github/linters configuration file.

Consistent Output: Standardizes the output format for linting results across different languages and linters.

Extensibility: Supports adding or customizing linters easily, making it adaptable to our specific requirements.

Proposed Solution

Configure super-linter:

Create or update the .github/workflows configuration file to specify the linters and configurations needed.

GitHub Actions Workflows:

Update the GitHub Actions workflow files to use super-linter for linting instead of the actual implementation

Testing:

Thoroughly test the linting process with super-linter in the GitHub Actions workflow to ensure it covers all relevant languages and provides accurate results. You can test this by submitting a PR

Other Information
No response
Acknowledgements

[X] I may be able to implement this feature request
[ ] This feature might incur a breaking change

Version used
latest
Environment details (OS name and version, etc.)
any

hey @ulises-jeremias can i try this task? feel free to assign it to me

@Siddharth9890 sure! let me know if you need any help on this!


Evaluating expectations with ComposedOps breaks in the ~StateFn(op) @ state representation

Information

Qiskit Terra version: 856388920e17fe000b00344ffa42fffe778c4ce6
Python version: 3.7.9
Operating system: macOS Big Sur

What is the current behavior?
>>> from qiskit import QuantumCircuit
>>> from qiskit.opflow import CircuitOp, StateFn, I
>>> circuit = QuantumCircuit(1)
>>> vector = [1, 0]
>>> state = CircuitOp(circuit) @ StateFn(vector)
>>> (~state @ I @ state).eval()
(1+0j)
>>> (~StateFn(I) @ state).eval()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/jul/Qiskit/qiskit-terra/qiskit/opflow/list_ops/composed_op.py", line 129, in eval
    return reduce(tree_recursive_eval, reversed(eval_list))
  File "/Users/jul/Qiskit/qiskit-terra/qiskit/opflow/list_ops/composed_op.py", line 119, in tree_recursive_eval
    return l_arg.eval(r)
  File "/Users/jul/Qiskit/qiskit-terra/qiskit/opflow/state_fns/operator_state_fn.py", line 210, in eval
    return front.adjoint().eval(self.primitive.eval(front)) * self.coeff  # type: ignore
  File "/Users/jul/Qiskit/qiskit-terra/qiskit/opflow/primitive_ops/pauli_op.py", line 251, in eval
    new_front = self.to_matrix_op().eval(front.to_matrix_op())  # type: ignore
  File "/Users/jul/Qiskit/qiskit-terra/qiskit/opflow/primitive_ops/matrix_op.py", line 203, in eval
    new_front = StateFn(self.to_matrix() @ front.to_matrix())
  File "/Users/jul/Qiskit/qiskit-terra/qiskit/opflow/list_ops/list_op.py", line 312, in to_matrix
    dtype=object))
  File "/Users/jul/opt/miniconda3/envs/py37/lib/python3.7/site-packages/numpy/core/_asarray.py", line 102, in asarray
    return array(a, dtype, copy=False, order=order)
ValueError: could not broadcast input array from shape (2,2) into shape (2,)
>>>

Steps to reproduce the problem
See above.
What is the expected behavior?
Evaluating ~StateFn(I) @ state should produce the same result as ~state @ I @ state.
Suggested solutions

I've checked this code at 90387a2.
It returns
VectorStateFn(Statevector([1.-0.j 0.-0.j]), coeff=1.0, is_measurement=True)

Python 3.8.5, Catalina

(~StateFn(I) @ CircuitOp(circuit) @ StateFn(vector)).eval()

returns (1+0j) correctly.

@ikkoham Interesting, I'll update the issue with your comment in https://github.com/Qiskit/qiskit-terra/issues/6003#issuecomment-796363788

To clarify: I got the same behavior as @ikkoham . PR #6009 fixed the vector instead of scalar problem, not the OP crashing problem.


add paypal gateway

It might be added later for convinience, but right now the payment method gateway is  the better way to do this.


Add issue template for releasing standalone component

Signed-off-by: Barani<EMAIL_ADDRESS>Description
Add issue template for releasing standalone component
Issues Resolved
NA
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Codecov Report

Merging #2737 (2a32fc4) into main (666ae57) will decrease coverage by 0.33%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #2737      +/-   ##
==========================================
- Coverage   94.10%   93.77%   -0.34%
==========================================
  Files         156      156
  Lines        4208     4208
==========================================
- Hits         3960     3946      -14
- Misses        248      262      +14

Impacted Files
Coverage Δ

src/system/temporary_directory.py
64.44% <0.00%> (-28.89%)
:arrow_down:

src/system/os.py
93.75% <0.00%> (-6.25%)
:arrow_down:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Fixes #91: Made Uuid's serializable.

As discussed.

@ramsey those unit test take forever. Don't know what's up with that, but this is it, and it's got the coverage to prove it.

They run slow (especially if you have Xdebug enabled) because of 67,000+ assertions to ensure the math is all correct and will generate the same UUIDs for the same random or time values as in other programming languages. :-)
Thanks for this!

@ramsey ahhh, that makes sense. Thanks for the quick merge :+1:


Predicting with PrettyBigModel InvalidArgumentError: indices[0,0] = 1024 is not in [0, 1024)

Hi, I was interested in testing your PrettyBig model.  I've downloaded the model and edited the PrettyBig.json to point to the downloaded encoder and model paths.  When running:
python3 main.py --model PrettyBig.eval.json --predict_text "Hello there! My name is"
I get the following error:
{'n_head': 16, 'encoder_path': '/Users/pkmital/freelance/pkm/gpt-2/gpt-1.5b/encoder', 'n_vocab': 50257, 'embed_dropout': 0.0, 'lr': 0.00025, 'warmup_steps': 2000, 'weight_decay': 0.01, 'beta1': 0.9, 'beta2': 0.98, 'epsilon': 1e-09, 'opt_n
ame': 'adam', 'train_batch_size': 256, 'attn_dropout': 0.0, 'train_steps': 10000, 'eval_steps': 10, 'max_steps': 604800, 'data_path': 'gs://connors-datasets/openwebtext/', 'scale': 0.14433756729740646, 'res_dropout': 0.1, 'predict_batch_s
ize': 1, 'eval_batch_size': 256, 'iterations': 100, 'n_embd': 1024, 'input': 'openwebtext_longbiased', 'model': 'GPT2', 'model_path': '/Users/pkmital/freelance/pkm/gpt-2/gpt-1.5b/PrettyBig', 'n_ctx': 1024, 'predict_path': 'logs/prediction
s_SortaBig.txt', 'n_layer': 25, 'use_tpu': False, 'precision': 'float32'}
Using config: {'_model_dir': '/Users/pkmital/freelance/pkm/gpt-2/gpt-1.5b/PrettyBig', '_tf_random_seed': None, '_save_summary_steps': 100, '_save_checkpoints_steps': None, '_save_checkpoints_secs': 600, '_session_config': , '_keep_checkpo
int_max': 5, '_keep_checkpoint_every_n_hours': 10000, '_log_step_count_steps': 100, '_train_distribute': None, '_device_fn': None, '_protocol': None, '_eval_distribute': None, '_experimental_distribute': None, '_service': None, '_cluster_spec': <tensorflow.python.training.server_lib.ClusterSpec object at 0x13fbf8ef0>, '_task_type': 'worker', '_task_id': 0, '_global_id_in_cluster': 0, '_master': '', '_evaluation_master': '', '_is_chief': True, '_num_ps_replicas': 0, '_num_worker_replicas': 1}                                                                                Generating predictions...
From /Users/pkmital/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/op_def_library.py:263: colocate_with (from tensorflow.python.framework.ops) is deprecated and will be removed in a future version.                      Instructions for updating:                                                                                Colocations handled automatically by placer.                                                                                Calling model_fn.
From /Users/pkmital/freelance/pkm/gpt-2/gpt-1.5b/models/gpt2/sample.py:57: to_float (from tensorflow.python.ops.math_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.cast instead.
From /Users/pkmital/freelance/pkm/gpt-2/gpt-1.5b/models/gpt2/sample.py:59: multinomial (from tensorflow.python.ops.random_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.random.categorical instead.
Done calling model_fn.
Graph was finalized.
2019-06-08 15:55:47.498527: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
From /Users/pkmital/anaconda3/lib/python3.6/site-packages/tensorflow/python/training/saver.py:1266: checkpoint_exists (from tensorflow.python.training.checkpoint_management) is deprecated and will be removed in a future version.
Instructions for updating:
Use standard file APIs to check for files with this prefix.
Restoring parameters from /Users/pkmital/freelance/pkm/gpt-2/gpt-1.5b/PrettyBig/model.ckpt
Running local_init_op.
Done running local_init_op.
Traceback (most recent call last):
  File "/Users/pkmital/anaconda3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1334, in _do_call
    return fn(*args)
  File "/Users/pkmital/anaconda3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1319, in _run_fn
    options, feed_dict, fetch_list, target_list, run_metadata)
  File "/Users/pkmital/anaconda3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1407, in _call_tf_sessionrun
    run_metadata)
tensorflow.python.framework.errors_impl.InvalidArgumentError: indices[0,0] = 1024 is not in [0, 1024)
         [[{{node sample_sequence/while/model/GatherV2_1}}]]

python3 --version
Python 3.6.8 :: Anaconda, Inc.

pip3 list | grep tensorflow
mesh-tensorflow                    0.0.5
tensorflow                         1.13.1
tensorflow-datasets                1.0.1
tensorflow-estimator               1.13.0
tensorflow-metadata                0.13.0
tensorflow-probability             0.6.0

Any ideas appreciated.  Thanks!

Maybe you can try tensorflow==1.13.0
as:
https://medium.com/@NPCollapse/replicating-gpt2-1-5b-86454a7f26af
hints:

Tensorflow (I was using version 1.13) is…not perfect.

This is a known bug. I haven't yet had the time to track down the exact cause. Three things you can try are setting the precision to float32, use a GPU instead of a CPU or change the "train_batch_size" and "predict_batch_size" parameters to 1. Some of these seem to fix it sometimes. I will fix this bug when I have the time to actually track down its source.
The bug also shouldn't happen if you predict with a single word.

I got the same error, here is the full output and traceback I got: https://hasteb.in/wilupika.py

I encountered the same issue working on gpt-2-simple: https://github.com/minimaxir/gpt-2-simple/issues/38
The solution was to subtract the length of the prefix tokens from the maximum length to prevent OOB.

Thanks minimaxir! I've implemented that fix now and think everything should be working. If this problem crops up again for anyone, feel free to reopen this issue.


Fix #1050 by filtering out invisible AppTy arguments

This makes the synifyType case for AppTy more intelligent by taking into consideration the visibilities of each AppTy argument and filtering out any invisible arguments, as they aren't intended to be displayed in the source code. (See #1050 for an example of what can happen if you fail to filter these out.)
Along the way, I noticed that a special synifyType case for AppTy t1 (CoercionTy {}) could be consolidated with the case below it, so I took the opportunity to tidy this up.

As noted in #1050, the only way I know to actually trigger the bug that this PR fixes relies on external packages, so I have absolutely no idea how I would add a regression test for this. Is there a recommended way to do this?

As noted in #1050, the only way I know to actually trigger the bug that this PR fixes relies on external packages, so I have absolutely no idea how I would add a regression test for this. Is there a recommended way to do this?

Once Hi Haddock finally lands (hopefully in the next couple of months), every type or declaration that Haddock renders will have been produced from the Convert module. Then, it should be pretty easy to a regression test. In the meantime, there is still non good way to do this. Sorry 😭

In the meantime, there is still non good way to do this. Sorry 😭

No worries! I'm fine with parking this until Hi Haddock lands, if that will make things easier in the long run.

Aha! I've discovered a trick to distill a test case that doesn't rely on external packages. It turns out that Haddock uses Convert to render type signatures for top-level functions that don't have a type signature. This knowledge led me to create this test case:
{-# LANGUAGE GADTs #-}
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE RankNTypes #-}
module Bug where

import Data.Kind

newtype T :: (forall k. k -> Type) -> (forall k. k -> Type) where
  MkT :: forall (f :: forall k. k -> Type) k (a :: k). f a -> T f a

mkT = MkT

With haddock-2.24.0, you'll get the following output:

Moreover, unlike my overwrought test case here, the test case above should be suitable for checking into Haddock's test suite.
The f k a in mkT's type signature should be corrected to f a when this patch is applied. However, it's been exactly one year since I last looked at this PR, and a lot has changed since then. Should I continue to target the ghc-head branch, or should I resubmit this and target the ghc-8.10 branch instead?

Wow! Very clever idea for a test case. I may add some more Convert tests using this trick!
If possible, could you target 8.10 instead? CI is working there. I'm also not sure what the state of ghc-head is right now (something may be pushed there in anticipation of Marge merging a GHC MR with matching Haddock changes).

If possible, could you target 8.10 instead?

Sure. I'll close this PR in favor of #1157.


✨[feature Request]: Back to Top Button

Is there an existing issue for this?

[X] I have searched the existing issues

Feature Description
Click the up arrow to instantly scroll back to the top of the page.
Use Case
The Scroll to Top feature allows users to quickly return to the top of a webpage by clicking an up arrow button. This enhances user experience, especially on longer pages, by providing an easy and efficient way to navigate back to the top without manually scrolling. The button typically appears after the user has scrolled down a certain distance and ensures seamless, smooth scrolling when clicked. It's a simple but effective tool for improving website usability.
Benefits

Better User Experience: Allows users to quickly return to the top of the page, avoiding the hassle of scrolling manually.
Increased Accessibility: Makes navigating long pages easier for all users.
Time-Efficient: Saves users time by providing a quick way to get back to the top.
Easy to Use: A simple, intuitive feature that requires no effort to understand or use.
Improved Navigation: Ensures users can easily access important content or menus at the top of the page.

Add ScreenShots

Priority
High
Record

[X] I have read the Contributing Guidelines
[X] I'm a GSSOC'24EXTD contributor
[X] I have starred the repository

Hey @Anjaliavv51, Assign the level for it.

@Bhoomysingh10 I will assign to the PR.