Can't import DSInternals

Failed to import DSInternals with error message below with Win7 (64bit)
Tried WMF5.0 and 5.1 and .Net 4.5.1 and 4.5.2 with no luck
PS C:\WINDOWS\system32> import-module DSInternals
Add-Type : Could not load file or assembly
'file:///C:\Windows\System32\WindowsPowerShell\v1.0\Modules\DSInternals\x86\DSInternals.Replication.Interop.dll' or
one of its dependencies. An attempt was made to load a program with an incorrect format.
At C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\DSInternals\DSInternals.psm1:16 char:5
Add-Type -Path $interopAssemblyPath
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : NotSpecified: (:) [Add-Type], BadImageFormatException
+ FullyQualifiedErrorId : System.BadImageFormatException,Microsoft.PowerShell.Commands.AddTypeCommand

That's too bad.  It seems like if the 64-bit PS was trying to load the 32-bit library instead of the 64-bit one, which is strange.
What does $env:PROCESSOR_ARCHITECTURE resolve to when this problem appears?
Are you running PowerShell 64-bit or 32-bit (x86)? Could you please try the other one on your Win7 64-bit?
Could you please try the same with a previous version of DSInternals? I switched to VS 2017 + Win10 build machine before creating the most recent release and I did not have enough time to test it on all downlevel systems.

i am using PS 64-bit, i printed the variable interopAssemblyPath and env:PROCESSOR_ARCHITECTURE below

PS C:\WINDOWS\system32> Import-Module DSInternals
WARNING:
interopAssemblyPath=C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\DSInternals\AMD64\DSInternals.Replication.Intero
p.dll
WARNING: env:PROCESSOR_ARCHITECTURE=AMD64
Add-Type : Could not load file or assembly 'DSInternals.Replication.Interop.dll' or one of its dependencies. The
specified module could not be found.
At C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\DSInternals\DSInternals.psm1:20 char:5

Add-Type -Path $interopAssemblyPath

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : NotSpecified: (:) [Add-Type], FileNotFoundException
FullyQualifiedErrorId : >System.IO.FileNotFoundException,Microsoft.PowerShell.Commands.AddTypeCommand

i copied the module to syswow64 and run the PS 32-bit

PS C:\WINDOWS\system32> Import-Module DSInternals
WARNING:
interopAssemblyPath=C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\DSInternals\x86\DSInternals.Replication.Interop.
dll
WARNING: env:PROCESSOR_ARCHITECTURE=x86
Add-Type : Could not load file or assembly 'DSInternals.Replication.Interop.dll' or one of its dependencies. The
specified module could not be found.
At C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\DSInternals\DSInternals.psm1:20 char:5

Add-Type -Path $interopAssemblyPath

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : NotSpecified: (:) [Add-Type], FileNotFoundException
FullyQualifiedErrorId : System.IO.FileNotFoundException,Microsoft.PowerShell.Commands.AddTypeCommand

i tried the version 2.20 and now I can import the module with no error message. i will try more on it. thanks for your help

i think it would be good if the function to remove LMHash and LMHashHistory could be added and actually it is the task which i am focusing on actually

@kennethkc LMHash is a completely different story. The only supported way of deleting it is by setting the appropriate policy and changing the password. I could only imagine that the hash could be deleted by direct manipulation with the ntds.dit file. I you think that would be useful to you, feel free to file a separate feature request.

@kennethkc I have just pushed a new release. Could you please try it in the same way as you did previously?

I got another error for running with v2.21.1.zip

PS C:\WINDOWS\system32> Import-Module DSInternals
Import-Module : Could not load file or assembly
'file:///C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\DSInternals\DSInternals.PowerShell.dll' or one of its
dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
At line:1 char:1

Import-Module DSInternals

  + CategoryInfo          : NotSpecified: (:) [Import-Module], FileLoadException
  + FullyQualifiedErrorId : System.IO.FileLoadException,Microsoft.PowerShell.Commands.ImportModuleCommand

Hi @kennethkc , could you please double-check that all the files (and specifically those 2 DSInternals.Replication.Interop.dll) are "unblocked"?

my apologies for missing to unblock the files. i can import the module successfully with v2.21.1.
thanks for your time and effort!


Create Astha167.md

@Astha167 check out the format, don't write the Comments.

Sorry , I have made changes please review it once.

@Astha167 name in 1st line then quote in second line then Techstack third line and remove the comma(,) at the ene of third line

@Astha167 folder format is wrong, In the data folder you don't need to make separate _data folder, You should make a folder by your Github user name and there you need to make the [Astha167.md] file.


streaming often doesn't work

I get an error

The location https://api.put.io/v2/files/600010919/mp4/stream%3Foath_token=xxxxxxx cannot be played.

No idea if this is an issue with the app, or with VLC, or with android or with put.io's api.
Doesn't happen all the time. Often the first time I play the file it works, and then if I try to play the same file again it fails. Sometimes force quitting both the put.io app and vlc seems to fix it temporarily. Sometimes not.

Sorry for the long wait.
Are you still getting this? I may have an idea of what's happening (I've into a few cases where put.io thinks an MP4 is available, but it actually 404s).

I've not encountered this issue for a while now. Might be because I've switched phones. Might be that they fixed a bug. There was a bug with MP4s being unavailable that I think they have now fixed. So maybe that was it. Let's call this fixed and I'll comment again if it happens again.
Thanks for getting back to me.

Sounds good, feel free to reopen if you see it again!


Add a "custom-placeholder" default style for showLoadingAnimation

Currently if you pass showLoadingAnimation while using a custom placeholder you have to make sure your custom placeholder includes one of the the default style class decelerations. Adding a custom-placeholder class here and passing it by default to all custom placeholders would mean <ReactPlaceholder customPlaceholder={<StyledLine />} showLoadingAnimation /> would just work ⚡

I'm unableeto get the showLaodingAnimation prop to work as shown in the documentation. I had to explicitly add a class of "show-loading-animation".


Dropdown trigger doesn't work when position: fixed; (in Chrome)

Expected Behavior
When clicking on a dropdown trigger (like in the example code), the dropdown menu should be opened.
Current Behavior
The dropdown trigger doesn't work (dropdown menu is not opened) when it has it's CSS style set to position: fixed;. This bug occurs in Google Chrome, but it works fine in Firefox.
This error message is shown in the dev console:
Uncaught TypeError: Cannot read property 'getBoundingClientRect' of null     at n.value (materialize.min.js:6)     at n.value (materialize.min.js:6)     at n.value (materialize.min.js:6)     at n.value (materialize.min.js:6) value @ materialize.min.js:6 value @ materialize.min.js:6 value @ materialize.min.js:6 value @ materialize.min.js:6
Possible Solution
Instead of setting the CSS style to position: fixed;, set it to position: sticky; and set either the left, right, top, or bottom property to any value. In that way, the dropdown trigger works and it looks like it is position: fixed;.
Example
.dropdown-trigger {             position: sticky;             top: 10px;             left: 10px;         }
Steps to Reproduce (for bugs)
Example
<!DOCTYPE html>

    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" type="text/css" href="materialize/css/materialize.min.css" />

Drop Me!

one

two

three

view_modulefour

cloudfive

Your Environment

Version used: 1.0.0-beta
Browser Name and version: Google Chrome Version 71.0.3578.98 (Official Build) (64-Bit)
Operating System and version (desktop or mobile): Windows 10 Home 64-Bit

Possible other solution...
Putting in fixed container. I was able to fix this bug in Chrome by this because when I set my element
position: sticky; it was merging with containers that have position: absolute; therefore making UI problems. Putting the button simply in an fixed div like worked for me as well...
Drop Me!


feat: adds support for firefox

PR Checklist

[x] Addresses an existing open issue: fixes #000
[x] That issue was marked as accepting prs
[x] Steps in CONTRIBUTING.md were taken

Overview
This pull request adds support for Firefox.
Part of #7

Thank you for the detailed review, @JoshuaKGoldberg - I will address these issues as soon as possible.

@estevezluis and @JoshuaKGoldberg - Thank you for the additional input. I have not forgotten about this. I have simply had no time in the last week or so. My hope and plan is to address all of your comments this week.

My apologies for dragging my feet on this one @JoshuaKGoldberg - It is still on my todo list.

No worries @schalkneethling! Do you know if & when you'll be able to close out the threads? I'm not in a hurry personally, but it'd be good not to leave this open for too long.

@schalkneethling I'm going to go ahead and close this PR so that someone else can tackle it. The repository's getting an overhaul in #160 and that's going to introduce a bunch of merge conflicts. Thanks for getting Firefox support started! ❤🔥
If anybody sends their own PR and incorporates code from this, please be sure to give a co-author credit. Cheers!

@schalkneethling I'm going to go ahead and close this PR so that someone else can tackle it. The repository's getting an overhaul in #160 and that's going to introduce a bunch of merge conflicts. Thanks for getting Firefox support started! ❤🔥
If anybody sends their own PR and incorporates code from this, please be sure to give a co-author credit. Cheers!

Sorry for dropping the ball here, @JoshuaKGoldberg - I got this going and then life happened :)


CentOS 7: missing word in command line

sudo yum centos-release-scl -y
sudo yum install centos-release-scl -y

Also I had to manually change cmake to cmake3 inside sh building scripts.

first issue fixed, cmake3 cannot be hardcoded...

first issue fixed, cmake3 cannot be hardcoded...

But cmake is not found even if I do all exactly as in instruction.

this is fixed right? check latest readme

Yes, think so.


[Validator] Crossing waterways and highways

cc . @geohacker @batpad @maning

Result. https://gist.github.com/anonymous/c262d7cfcb9297436143
Branch : https://github.com/osmlab/osmlint/tree/crossingwaterwayshighways

I think the PR should be created after merge the branch from crossinghighways and crossingbuildings.
What do you think @geohacker ?
@maning: can you take a look on the result. ?

I'm seeing false positive, let's add tag filtering.

highway - bridge=*, tunnel=*
waterways - waterway=dam, weir, waterfall
others - ford=yes on node where waterway and road intersects

@Rub21 @planemad

@maning

highway - bridge=, tunnel=
waterways - waterway=dam, weir, waterfall
others - ford=yes on node where waterway and road intersects

is nice discuss about those stuff, it help me to take care on all kind of objects, I did the filter  the new result are: https://gist.github.com/anonymous/e57bc52b490c4cad8456.
Also we focus the analize for the main roads, which are crossing with waterways.: https://github.com/osmlab/osmlint/blob/crossingwaterwayshighways/validators/crossingWaterwaysHighways/map.js#L12-L19
Next action

[ ] merge the crossingwaterwayshighways branch to master

cc. @geohacker

@Rub21

is: https://gist.github.com/anonymous/e57bc52b490c4cad8456.

Detected errors are all OK.  Either it doesn't have a bridge tag or the node intersection doesn't have ford tag.

Also we focus the analize for the main roads, which are crossing with waterways.:

I found one on a service road: https://www.openstreetmap.org/way/385190123/history
Overall, this linter works as expected. Can we have the output similar to the crossinghighways?
A point for the location of error and separate features for highway and waterways.  So that we can still include other osm metadata.

@maning :

A point for the location of error and separate features for highway and waterways. So that we can still include other osm metadata.

Sound fine:
New result include point and Linestring( highway and waterways)

done!  This validator was merge to master.


Clojure-LSP doesn't seem to find broch.core/meters

Hi!
My clojure-lsp setup doesn't seem to be able to find the definition for broch.core/meters (and more) variables.
broch.core/meters works perfectly in the REPL. And broch.core/meters looks like a normal def, so I'd expect this to just work.
This is what I'm seeing, lint error for broch.core/meters and no completion for meters (but completion for other symbols!).

Broch version:
        no.anteo/broch {:mvn/version "0.1.83"}

Screenshots were produced with this LSP+clj-kondo version:
 :server-version "2023.08.06-00.33.37-nightly",
 :clj-kondo-version "2023.07.14-SNAPSHOT",

(up-to-date versions provided by Doom Emacs (clojure +lsp) as of 2023-10-19).

For all that I can see, this is more likely to indicate an issue in Clojure-LSP than broch. But I thought I'd ask if you guys have any ideas first -- because you know the broch codebase.
I think it's weird that some vars (like b/* og b/max) were found without issues, whereas other vars (like b/meters) were not found. Perhaps a first step is to try reproduce the issue.
Teodor

If you don't have any immediate ideas, asking in #lsp on Slack might be a good plan B. Perhaps they can help debug.

Oh, amazing!
I realize that a source of my confusion was that I was:

Using the latest maven release in my code
But I was reading your latest code on master, where meters is just a def.

Thanks for making this, and thanks for supporting static analysis!


feat: add docker containers to pi server

Closes: #164

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


429 Resource Exhausted error when using gemini-1.5-pro with langchain

Checked other resources

[X] I added a very descriptive title to this issue.
[X] I searched the LangChain documentation with the integrated search.
[X] I used the GitHub search to find a similar question and didn't find it.
[X] I am sure that this is a bug in LangChain rather than my code.
[X] The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package).

Example Code
import gradio as gr
import typing_extensions
import os

from langchain_google_genai import ChatGoogleGenerativeAI
from langchain.prompts.prompt import PromptTemplate
from langchain_community.graphs import Neo4jGraph
from langchain.chains import GraphCypherQAChain
from langchain.memory import ConversationBufferMemory

# process of getting credentials
def get_credentials():
    google_api_key = os.getenv("GOOGLE_API_KEY") # get json credentials stored as a string
    if google_api_key is None:
        raise ValueError("Provide your Google API Key")

    return google_api_key

# pass
os.environ["GOOGLE_API_KEY"]= get_credentials()

NEO4J_URI = os.getenv("NEO4J_URI")
NEO4J_USERNAME = os.getenv("NEO4J_USERNAME")
NEO4J_PASSWORD = os.getenv("NEO4J_PASSWORD")

CYPHER_GENERATION_TEMPLATE = """You are an expert Neo4j Cypher translator who understands the question in english and convert to Cypher strictly based on the Neo4j Schema provided and following the instructions below:
1. Generate Cypher query compatible ONLY for Neo4j Version 5
2. Do not use EXISTS, SIZE keywords in the cypher. Use alias when using the WITH keyword
3. Please do not use same variable names for different nodes and relationships in the query.
4. Use only Nodes and relationships mentioned in the schema
5. Always enclose the Cypher output inside 3 backticks
6. Always do a case-insensitive and fuzzy search for any properties related search. Eg: to search for a Company name use `toLower(c.name) contains 'neo4j'`
7. Candidate node is synonymous to Manager
8. Always use aliases to refer the node in the query
9. 'Answer' is NOT a Cypher keyword. Answer should never be used in a query.
10. Please generate only one Cypher query per question.
11. Cypher is NOT SQL. So, do not mix and match the syntaxes.
12. Every Cypher query always starts with a MATCH keyword.
13. Always do fuzzy search for any properties related search. Eg: when the user asks for "matrix" instead of "the matrix", make sure to search for a Movie name using use `toLower(c.name) contains 'matrix'`
Schema:
{schema}
Samples:
Question: List down 5 movies that released after the year 2000
Answer: MATCH (m:Movie)  WHERE m.released > 2000  RETURN m LIMIT 5
Question: Get all the people who acted in a movie that was released after 2010
Answer: MATCH (p:Person)-[r:ACTED_IN]->(m:Movie)  WHERE m.released > 2010  RETURN p,r,m
Question: Name the Director of the movie Apollo 13
Answer: MATCH (m:Movie)<-[:DIRECTED]-(p:Person)  WHERE toLower(m.title) contains "apollo 13"  RETURN p.name
Question: {question}
Answer:
"""

CYPHER_GENERATION_PROMPT = PromptTemplate(
    input_variables=["schema","question"], validate_template=True, template=CYPHER_GENERATION_TEMPLATE
)

CYPHER_QA_TEMPLATE = """You are an assistant that helps to form nice and human understandable answers.
The information part contains the provided information that you must use to construct an answer.
The provided information is authoritative, you must never doubt it or try to use your internal knowledge to correct it.
Make the answer sound as a response to the question. Do not mention that you based the result on the given information.
Here are two examples:

Question: List down 5 movies that released after the year 2000
Context:[movie:The Matrix Reloaded, movie:The Matrix Revolutions, movie:Something's Gotta Give, movie:The Polar Express, movie:RescueDawn]
Helpful Answer: The Matrix Reloaded, The Matrix Revolutions, Something's Gotta Give, The Polar Express and RescueDawn are the movies released after the year 2000.

Question: Who is the director of the movie V for Vendetta
Context:[person:James Marshall]
Helpful Answer: James Marshall is the director of the movie V for Vendetta.

If the provided information is empty, say that you don't know the answer.
Final answer should be easily readable and structured.
Information:
{context}

Question: {question}
Helpful Answer:"""

CYPHER_QA_PROMPT = PromptTemplate(
    input_variables=["context", "question"], template=CYPHER_QA_TEMPLATE
)

graph = Neo4jGraph(
    url=NEO4J_URI,
    username=NEO4J_USERNAME,
    password=NEO4J_PASSWORD,
    enhanced_schema=True
)

chain = GraphCypherQAChain.from_llm(
    ChatGoogleGenerativeAI(model='gemini-1.5-pro', max_output_tokens=8192, temperature=0.0),
    graph=graph,
    cypher_prompt=CYPHER_GENERATION_PROMPT,
    qa_prompt=CYPHER_QA_PROMPT,
    verbose=True,
    validate_cypher=True
)

memory = ConversationBufferMemory(memory_key = "chat_history", return_messages = True)

def chat_response(input_text,history):
    try:
        return str(chain.invoke(input_text)['result'])

    except Exception as e:  # Catch specific exceptions or log the error
        print(f"An error occurred: {e}")
        return "I'm sorry, there was an error retrieving the information you requested."

interface = gr.ChatInterface(fn = chat_response,
                             title = "Movies Chatbot",
                             theme = "soft",
                             chatbot = gr.Chatbot(height=430),
                             undo_btn = None,
                             clear_btn = "\U0001F5D1 Clear Chat",
                             examples = ["List down 5 movies that released after the year 2000",
                                         "Get all the people who acted in a movie that was released after 2010",
                                         "Name the Director of the movie Apollo 13",
                                         "Who are the actors in the movie V for Vendetta"])

# Launch the interface
interface.launch(share=True)

Error Message and Stack Trace (if applicable)
===== Application Startup at 2024-05-28 17:43:47 =====
Caching examples at: '/home/user/app/gradio_cached_examples/14'
Caching example 1/4

Entering new GraphCypherQAChain chain...
Generated Cypher:

MATCH (m:Movie)  WHERE m.released > 2000  RETURN m LIMIT 5
Full Context:
[{'m': {'tagline': 'Free your mind', 'title': 'The Matrix Reloaded', 'released': 2003}}, {'m': {'tagline': 'Everything that has a beginning has an end', 'title': 'The Matrix Revolutions', 'released': 2003}}, {'m': {'title': "Something's Gotta Give", 'released': 2003}}, {'m': {'tagline': 'This Holiday Season… Believe', 'title': 'The Polar Express', 'released': 2004}}, {'m': {'tagline': "Based on the extraordinary true story of one man's fight for freedom", 'title': 'RescueDawn', 'released': 2006}}]

Finished chain.
Caching example 2/4

Entering new GraphCypherQAChain chain...
Generated Cypher:
cypher
MATCH (p:Person)-[r:ACTED_IN]->(m:Movie) WHERE m.released > 2010 RETURN p, r, m

Full Context:
Retrying langchain_google_genai.chat_models._chat_with_retry.._chat_with_retry in 2.0 seconds as it raised ResourceExhausted: 429 Resource has been exhausted (e.g. check quota)..
[{'p': {'born': 1960, 'name': 'Hugo Weaving'}, 'r': ({'born': 1960, 'name': 'Hugo Weaving'}, 'ACTED_IN', {'tagline': 'Everything is connected', 'title': 'Cloud Atlas', 'released': 2012}), 'm': {'tagline': 'Everything is connected', 'title': 'Cloud Atlas', 'released': 2012}}, {'p': {'born': 1956, 'name': 'Tom Hanks'}, 'r': ({'born': 1956, 'name': 'Tom Hanks'}, 'ACTED_IN', {'tagline': 'Everything is connected', 'title': 'Cloud Atlas', 'released': 2012}), 'm': {'tagline': 'Everything is connected', 'title': 'Cloud Atlas', 'released': 2012}}, {'p': {'born': 1966, 'name': 'Halle Berry'}, 'r': ({'born': 1966, 'name': 'Halle Berry'}, 'ACTED_IN', {'tagline': 'Everything is connected', 'title': 'Cloud Atlas', 'released': 2012}), 'm': {'tagline': 'Everything is connected', 'title': 'Cloud Atlas', 'released': 2012}}, {'p': {'born': 1949, 'name': 'Jim Broadbent'}, 'r': ({'born': 1949, 'name': 'Jim Broadbent'}, 'ACTED_IN', {'tagline': 'Everything is connected', 'title': 'Cloud Atlas', 'released': 2012}), 'm': {'tagline': 'Everything is connected', 'title': 'Cloud Atlas', 'released': 2012}}]

Finished chain.
Caching example 3/4

Entering new GraphCypherQAChain chain...
Retrying langchain_google_genai.chat_models._chat_with_retry.._chat_with_retry in 2.0 seconds as it raised ResourceExhausted: 429 Resource has been exhausted (e.g. check quota)..
Retrying langchain_google_genai.chat_models._chat_with_retry.._chat_with_retry in 4.0 seconds as it raised ResourceExhausted: 429 Resource has been exhausted (e.g. check quota)..
Retrying langchain_google_genai.chat_models._chat_with_retry.._chat_with_retry in 8.0 seconds as it raised ResourceExhausted: 429 Resource has been exhausted (e.g. check quota)..
Retrying langchain_google_genai.chat_models._chat_with_retry.._chat_with_retry in 16.0 seconds as it raised ResourceExhausted: 429 Resource has been exhausted (e.g. check quota)..
Retrying langchain_google_genai.chat_models._chat_with_retry.._chat_with_retry in 32.0 seconds as it raised ResourceExhausted: 429 Resource has been exhausted (e.g. check quota)..
Generated Cypher:
cypher
MATCH (m:Movie)<-[:DIRECTED]-(p:Person) WHERE toLower(m.title) CONTAINS 'apollo 13' RETURN p.name

Full Context:
[{'p.name': 'Ron Howard'}]

Finished chain.
Caching example 4/4

Entering new GraphCypherQAChain chain...
Generated Cypher:
cypher
MATCH (p:Person)-[r:ACTED_IN]->(m:Movie) WHERE toLower(m.title) contains "v for vendetta" RETURN p

Full Context:
[{'p': {'born': 1960, 'name': 'Hugo Weaving'}}, {'p': {'born': 1981, 'name': 'Natalie Portman'}}, {'p': {'born': 1946, 'name': 'Stephen Rea'}}, {'p': {'born': 1940, 'name': 'John Hurt'}}, {'p': {'born': 1967, 'name': 'Ben Miles'}}]
Retrying langchain_google_genai.chat_models._chat_with_retry.._chat_with_retry in 2.0 seconds as it raised ResourceExhausted: 429 Resource has been exhausted (e.g. check quota)..
Retrying langchain_google_genai.chat_models._chat_with_retry.._chat_with_retry in 4.0 seconds as it raised ResourceExhausted: 429 Resource has been exhausted (e.g. check quota)..
Retrying langchain_google_genai.chat_models._chat_with_retry.._chat_with_retry in 8.0 seconds as it raised ResourceExhausted: 429 Resource has been exhausted (e.g. check quota)..
Retrying langchain_google_genai.chat_models._chat_with_retry.._chat_with_retry in 16.0 seconds as it raised ResourceExhausted: 429 Resource has been exhausted (e.g. check quota)..
Retrying langchain_google_genai.chat_models._chat_with_retry.._chat_with_retry in 32.0 seconds as it raised ResourceExhausted: 429 Resource has been exhausted (e.g. check quota)..

Finished chain.
Running on local URL:  http://<IP_ADDRESS>:7860
/usr/local/lib/python3.10/site-packages/gradio/blocks.py:2368: UserWarning: Setting share=True is not supported on Hugging Face Spaces
warnings.warn(

To create a public link, set share=True in launch().
Description
I am trying to use Google Gemini 1.5 Pro API key from Google AI Studio in the above code and getting the error:
Retrying langchain_google_genai.chat_models._chat_with_retry.<locals>._chat_with_retry in 2.0 seconds as it raised ResourceExhausted: 429 Resource has been exhausted (e.g. check quota)..
This doesn't seem right as the API call was made only twice. I tried switching to gemini-1.5-flash and it seems to work fine. I am assuming this has something to relate to gemini 1.5 pro's implementation with langchain. Quoting one of the replies in a "somewhat" similar issue:

My theory is that the gemini-pro-1.5-latest endpoint has some sort of other limit, that we as users can't see when using the "generativeai" python SDK. The only thing that shows up in metrics is failed API calls, but NOT limit hits.
The way around this, I believe, would be to directly use the Vertex SDK directly, not the GenAI API.

System Info
neo4j-driver
gradio
langchain==0.1.20
langchain_google_genai
langchain-community

Hello - not sure if this will help you, but I think it is the cause of my 429 errors -  Is the 32,000 tokens per minute limit that is breaking your request? I'm getting 429 errors on every prompt over 32,000 tokens sent via the API for Gemini-1.5-Pro. I think it must be an error....otherwise the 1,000,000 context window becomes a bit irrelevant!...

I don't think I am sending that many tokens per minute but let me check again if that's the case.

请问问题解决了吗 我也出现了这个问题

Problem solved? I also had the same problem

@paopao0226 Not yet. Still struggling with this. :(

I also have the same issue on gemini-1.0-pro

Same problem bruh, I want to give the AI system prompt that is very long as context for it, I was wondering like no way 1M tokens limit can exhaust resources already when what I give it is barely 40-50K tokens at most.

Perhaps the 1 million context only works with documents that are uploaded?

Which model are you using @ReEnMikki and @Joseph-Cardwell

Which model are you using @ReEnMikki and @Joseph-Cardwell

I was using gemini-1.5-pro
I think @Benniepie 's image is correct, when I used gemini-1.5-flash I can upload tons of texts in one go with no problem.  But I think the reason for
your error is because you interacted with the model pass the number of
times you are allowed to in a minute. For gemini1.5pro I think it’s 2x per
minute.
On Mon, 24 Jun 2024 at 13:56, ReEnMikki @.***> wrote:

Which model are you using @ReEnMikki https://github.com/ReEnMikki and
@Joseph-Cardwell https://github.com/Joseph-Cardwell
I was using gemini-1.5-pro
I think @Benniepie https://github.com/Benniepie 's image is correct,
when I used gemini-1.5-flash I can upload tons of texts in one go with no
problem.
You are receiving this because you commented.Message ID:
@.***>

32k tokens only per minute defeats the whole purpose of 1M tokens context window, now if I wanna give it a long set of instruction for system prompt, to serve as base context for it to read from to generate outputs, I have to call the API like dozens of times, equivalent to waiting dozens of minutes, bastard Google put this unnecessary limit to subtly force us to pay and suffocate the viability of free tier

What are you building, agents ?
On Mon, 24 Jun 2024 at 14:40, ReEnMikki @.***> wrote:

32k tokens only per minute defeats the whole purpose of 1M tokens context
window, now if I wanna give it a long set of instruction for system prompt,
to serve as base context for it to read from to generate outputs, I have to
call the API like dozens of times, equivalent to waiting dozens of minutes,
bastard Google put this unnecessary limit to subtly force us to pay and
suffocate the viability of free tier
—
Reply to this email directly, view it on GitHub
https://github.com/langchain-ai/langchain/issues/22241#issuecomment-2186611686,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACIB3ULMDHP5LMHZ4IB7ZYLZJAOWPAVCNFSM6AAAAABINNFMC2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBWGYYTCNRYGY
.
You are receiving this because you commented.Message ID:
@.***>

I'm getting this ResourceExhausted: 429 Quota exceeded with just using any of the Claude models via ChatVertexAI.
The following works:
from anthropic import AnthropicVertex

client = AnthropicVertex(region="us-east5", project_id="my_gcp_project")

message = client.messages.create(
  max_tokens=1024,
  messages=[
    {
      "role": "user",
      "content": "Send me a recipe for banana bread.",
    }
  ],
  model="claude-3-haiku@20240307"      # also works fine with "claude-3-5-sonnet@20240620"
)
print(message.model_dump_json(indent=2))

The following does NOT work:
from langchain_google_vertexai import ChatVertexAI

chat = ChatVertexAI(
    model="claude-3-haiku@20240307",
    max_tokens=1000,
    location="us-east5",
    project="my_gcp_project"
)

from langchain_core.messages import HumanMessage, SystemMessage

messages = [
    SystemMessage(content="You're a helpful assistant"),
    HumanMessage(content="What is the purpose of model regularization?"),
]

chat.invoke(messages)

The error:
ResourceExhausted: 429 Quota exceeded for aiplatform.googleapis.com/generate_content_requests_per_minute_per_project_per_base_model with base model: anthropic-claude-3-haiku. Please submit a quota increase request. https://cloud.google.com/vertex-ai/docs/generative-ai/quotas-genai.

I am DEFINITELY not exceeding my quota, since I have just made just a few requests total with very small token sizes.

At least in my case, using ChatVertexAI with a Claude 3 model results in the very unhelpful/misleading ResourceExhausted error.
Using ChatAnthropicVertex instead of ChatVertexAI for Claude 3 models works.
It would be helpful if ChatVertexAI threw a better error, such as "use ChatAnthropicVertex for Claude models".

I am facing the same, gave a time delay of 0.5 sec, it is not there but fundamentally, this should have not been the case

This is probably related to Requests Per Day (RPD) for specific models. Some models like the 2m token and exp have very small RPD.

I'm experiencing the same issue, but with text-unicorn - see https://github.com/langchain-ai/langchain-google/issues/355.

Hello,
I am having the same issue, (429 error). It seams like the quotas is not necessarily the api usage/request rate. I have been using Gemini 1.5 Flash for a week, and the quotas is always near 0%.
They say you have 2,000 RPM when your project is on pay-as-you-go mode, here: https://ai.google.dev/gemini-api/docs/models/gemini
I even asked Gemini and it says, there is no dashboard currently available for api request monitoring, but I found Metrics  very useful if you are using Vertex AI.
What I think is that Vertex AI, and Studio AI, do not apply the same RPM, if you want to have higher RPM you must use Studio AI?
Please share your thoughts.

I recently started getting 429'd when I switched to Gemini 1.5 Pro/Flash 002. I definitely had enough Gemini quota. It took a few days to get some meaningful feedback from Google. Apparently Gemini 1.5 002 uses Dynamic Shared Quota. This was either hard or impossible to know as a user, but it does seem like a better method of managing usage in general.
To cater for hitting resource limits with langchain, I plan to use model.with_retry(retry_if_exception_type=[ResourceExhausted]) to keep trying until there is available quota.

Checked other resources
* [x]  I added a very descriptive title to this issue.

* [x]  I searched the LangChain documentation with the integrated search.

* [x]  I used the GitHub search to find a similar question and didn't find it.

* [x]  I am sure that this is a bug in LangChain rather than my code.

* [x]  The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package).

Example Code
import gradio as gr
import typing_extensions
import os

from langchain_google_genai import ChatGoogleGenerativeAI
from langchain.prompts.prompt import PromptTemplate
from langchain_community.graphs import Neo4jGraph
from langchain.chains import GraphCypherQAChain
from langchain.memory import ConversationBufferMemory

# process of getting credentials
def get_credentials():
    google_api_key = os.getenv("GOOGLE_API_KEY") # get json credentials stored as a string
    if google_api_key is None:
        raise ValueError("Provide your Google API Key")

    return google_api_key

# pass
os.environ["GOOGLE_API_KEY"]= get_credentials()

NEO4J_URI = os.getenv("NEO4J_URI")
NEO4J_USERNAME = os.getenv("NEO4J_USERNAME")
NEO4J_PASSWORD = os.getenv("NEO4J_PASSWORD")

CYPHER_GENERATION_TEMPLATE = """You are an expert Neo4j Cypher translator who understands the question in english and convert to Cypher strictly based on the Neo4j Schema provided and following the instructions below:
1. Generate Cypher query compatible ONLY for Neo4j Version 5
2. Do not use EXISTS, SIZE keywords in the cypher. Use alias when using the WITH keyword
3. Please do not use same variable names for different nodes and relationships in the query.
4. Use only Nodes and relationships mentioned in the schema
5. Always enclose the Cypher output inside 3 backticks
6. Always do a case-insensitive and fuzzy search for any properties related search. Eg: to search for a Company name use `toLower(c.name) contains 'neo4j'`
7. Candidate node is synonymous to Manager
8. Always use aliases to refer the node in the query
9. 'Answer' is NOT a Cypher keyword. Answer should never be used in a query.
10. Please generate only one Cypher query per question.
11. Cypher is NOT SQL. So, do not mix and match the syntaxes.
12. Every Cypher query always starts with a MATCH keyword.
13. Always do fuzzy search for any properties related search. Eg: when the user asks for "matrix" instead of "the matrix", make sure to search for a Movie name using use `toLower(c.name) contains 'matrix'`
Schema:
{schema}
Samples:
Question: List down 5 movies that released after the year 2000
Answer: MATCH (m:Movie)  WHERE m.released > 2000  RETURN m LIMIT 5
Question: Get all the people who acted in a movie that was released after 2010
Answer: MATCH (p:Person)-[r:ACTED_IN]->(m:Movie)  WHERE m.released > 2010  RETURN p,r,m
Question: Name the Director of the movie Apollo 13
Answer: MATCH (m:Movie)<-[:DIRECTED]-(p:Person)  WHERE toLower(m.title) contains "apollo 13"  RETURN p.name
Question: {question}
Answer:
"""

CYPHER_GENERATION_PROMPT = PromptTemplate(
    input_variables=["schema","question"], validate_template=True, template=CYPHER_GENERATION_TEMPLATE
)

CYPHER_QA_TEMPLATE = """You are an assistant that helps to form nice and human understandable answers.
The information part contains the provided information that you must use to construct an answer.
The provided information is authoritative, you must never doubt it or try to use your internal knowledge to correct it.
Make the answer sound as a response to the question. Do not mention that you based the result on the given information.
Here are two examples:

Question: List down 5 movies that released after the year 2000
Context:[movie:The Matrix Reloaded, movie:The Matrix Revolutions, movie:Something's Gotta Give, movie:The Polar Express, movie:RescueDawn]
Helpful Answer: The Matrix Reloaded, The Matrix Revolutions, Something's Gotta Give, The Polar Express and RescueDawn are the movies released after the year 2000.

Question: Who is the director of the movie V for Vendetta
Context:[person:James Marshall]
Helpful Answer: James Marshall is the director of the movie V for Vendetta.

If the provided information is empty, say that you don't know the answer.
Final answer should be easily readable and structured.
Information:
{context}

Question: {question}
Helpful Answer:"""

CYPHER_QA_PROMPT = PromptTemplate(
    input_variables=["context", "question"], template=CYPHER_QA_TEMPLATE
)

graph = Neo4jGraph(
    url=NEO4J_URI,
    username=NEO4J_USERNAME,
    password=NEO4J_PASSWORD,
    enhanced_schema=True
)

chain = GraphCypherQAChain.from_llm(
    ChatGoogleGenerativeAI(model='gemini-1.5-pro', max_output_tokens=8192, temperature=0.0),
    graph=graph,
    cypher_prompt=CYPHER_GENERATION_PROMPT,
    qa_prompt=CYPHER_QA_PROMPT,
    verbose=True,
    validate_cypher=True
)

memory = ConversationBufferMemory(memory_key = "chat_history", return_messages = True)

def chat_response(input_text,history):
    try:
        return str(chain.invoke(input_text)['result'])

    except Exception as e:  # Catch specific exceptions or log the error
        print(f"An error occurred: {e}")
        return "I'm sorry, there was an error retrieving the information you requested."

interface = gr.ChatInterface(fn = chat_response,
                             title = "Movies Chatbot",
                             theme = "soft",
                             chatbot = gr.Chatbot(height=430),
                             undo_btn = None,
                             clear_btn = "\U0001F5D1 Clear Chat",
                             examples = ["List down 5 movies that released after the year 2000",
                                         "Get all the people who acted in a movie that was released after 2010",
                                         "Name the Director of the movie Apollo 13",
                                         "Who are the actors in the movie V for Vendetta"])

# Launch the interface
interface.launch(share=True)

Error Message and Stack Trace (if applicable)
===== Application Startup at 2024-05-28 17:43:47 =====
Caching examples at: '/home/user/app/gradio_cached_examples/14' Caching example 1/4

Entering new GraphCypherQAChain chain...
Generated Cypher:

MATCH (m:Movie) WHERE m.released > 2000 RETURN m LIMIT 5
Full Context: [{'m': {'tagline': 'Free your mind', 'title': 'The Matrix Reloaded', 'released': 2003}}, {'m': {'tagline': 'Everything that has a beginning has an end', 'title': 'The Matrix Revolutions', 'released': 2003}}, {'m': {'title': "Something's Gotta Give", 'released': 2003}}, {'m': {'tagline': 'This Holiday Season… Believe', 'title': 'The Polar Express', 'released': 2004}}, {'m': {'tagline': "Based on the extraordinary true story of one man's fight for freedom", 'title': 'RescueDawn', 'released': 2006}}]

Finished chain.
Caching example 2/4

Entering new GraphCypherQAChain chain...
Generated Cypher:
cypher
MATCH (p:Person)-[r:ACTED_IN]->(m:Movie) WHERE m.released > 2010 RETURN p, r, m

Full Context: Retrying langchain_google_genai.chat_models._chat_with_retry.._chat_with_retry in 2.0 seconds as it raised ResourceExhausted: 429 Resource has been exhausted (e.g. check quota).. [{'p': {'born': 1960, 'name': 'Hugo Weaving'}, 'r': ({'born': 1960, 'name': 'Hugo Weaving'}, 'ACTED_IN', {'tagline': 'Everything is connected', 'title': 'Cloud Atlas', 'released': 2012}), 'm': {'tagline': 'Everything is connected', 'title': 'Cloud Atlas', 'released': 2012}}, {'p': {'born': 1956, 'name': 'Tom Hanks'}, 'r': ({'born': 1956, 'name': 'Tom Hanks'}, 'ACTED_IN', {'tagline': 'Everything is connected', 'title': 'Cloud Atlas', 'released': 2012}), 'm': {'tagline': 'Everything is connected', 'title': 'Cloud Atlas', 'released': 2012}}, {'p': {'born': 1966, 'name': 'Halle Berry'}, 'r': ({'born': 1966, 'name': 'Halle Berry'}, 'ACTED_IN', {'tagline': 'Everything is connected', 'title': 'Cloud Atlas', 'released': 2012}), 'm': {'tagline': 'Everything is connected', 'title': 'Cloud Atlas', 'released': 2012}}, {'p': {'born': 1949, 'name': 'Jim Broadbent'}, 'r': ({'born': 1949, 'name': 'Jim Broadbent'}, 'ACTED_IN', {'tagline': 'Everything is connected', 'title': 'Cloud Atlas', 'released': 2012}), 'm': {'tagline': 'Everything is connected', 'title': 'Cloud Atlas', 'released': 2012}}]

Finished chain.
Caching example 3/4

Entering new GraphCypherQAChain chain...
Retrying langchain_google_genai.chat_models._chat_with_retry.._chat_with_retry in 2.0 seconds as it raised ResourceExhausted: 429 Resource has been exhausted (e.g. check quota)..
Retrying langchain_google_genai.chat_models._chat_with_retry.._chat_with_retry in 4.0 seconds as it raised ResourceExhausted: 429 Resource has been exhausted (e.g. check quota)..
Retrying langchain_google_genai.chat_models._chat_with_retry.._chat_with_retry in 8.0 seconds as it raised ResourceExhausted: 429 Resource has been exhausted (e.g. check quota)..
Retrying langchain_google_genai.chat_models._chat_with_retry.._chat_with_retry in 16.0 seconds as it raised ResourceExhausted: 429 Resource has been exhausted (e.g. check quota)..
Retrying langchain_google_genai.chat_models._chat_with_retry.._chat_with_retry in 32.0 seconds as it raised ResourceExhausted: 429 Resource has been exhausted (e.g. check quota)..
Generated Cypher:
cypher
MATCH (m:Movie)<-[:DIRECTED]-(p:Person) WHERE toLower(m.title) CONTAINS 'apollo 13' RETURN p.name

Full Context: [{'p.name': 'Ron Howard'}]

Finished chain.
Caching example 4/4

Entering new GraphCypherQAChain chain...
Generated Cypher:
cypher
MATCH (p:Person)-[r:ACTED_IN]->(m:Movie) WHERE toLower(m.title) contains "v for vendetta" RETURN p

Full Context: [{'p': {'born': 1960, 'name': 'Hugo Weaving'}}, {'p': {'born': 1981, 'name': 'Natalie Portman'}}, {'p': {'born': 1946, 'name': 'Stephen Rea'}}, {'p': {'born': 1940, 'name': 'John Hurt'}}, {'p': {'born': 1967, 'name': 'Ben Miles'}}] Retrying langchain_google_genai.chat_models._chat_with_retry.._chat_with_retry in 2.0 seconds as it raised ResourceExhausted: 429 Resource has been exhausted (e.g. check quota).. Retrying langchain_google_genai.chat_models._chat_with_retry.._chat_with_retry in 4.0 seconds as it raised ResourceExhausted: 429 Resource has been exhausted (e.g. check quota).. Retrying langchain_google_genai.chat_models._chat_with_retry.._chat_with_retry in 8.0 seconds as it raised ResourceExhausted: 429 Resource has been exhausted (e.g. check quota).. Retrying langchain_google_genai.chat_models._chat_with_retry.._chat_with_retry in 16.0 seconds as it raised ResourceExhausted: 429 Resource has been exhausted (e.g. check quota).. Retrying langchain_google_genai.chat_models._chat_with_retry.._chat_with_retry in 32.0 seconds as it raised ResourceExhausted: 429 Resource has been exhausted (e.g. check quota)..

Finished chain.
Running on local URL:  http://<IP_ADDRESS>:7860
/usr/local/lib/python3.10/site-packages/gradio/blocks.py:2368: UserWarning: Setting share=True is not supported on Hugging Face Spaces
warnings.warn(

To create a public link, set share=True in launch().
Description
I am trying to use Google Gemini 1.5 Pro API key from Google AI Studio in the above code and getting the error: Retrying langchain_google_genai.chat_models._chat_with_retry.<locals>._chat_with_retry in 2.0 seconds as it raised ResourceExhausted: 429 Resource has been exhausted (e.g. check quota)..
This doesn't seem right as the API call was made only twice. I tried switching to gemini-1.5-flash and it seems to work fine. I am assuming this has something to relate to gemini 1.5 pro's implementation with langchain. Quoting one of the replies in a "somewhat" similar issue:

My theory is that the gemini-pro-1.5-latest endpoint has some sort of other limit, that we as users can't see when using the "generativeai" python SDK. The only thing that shows up in metrics is failed API calls, but NOT limit hits.
The way around this, I believe, would be to directly use the Vertex SDK directly, not the GenAI API.

System Info
neo4j-driver
gradio
langchain==0.1.20
langchain_google_genai
langchain-community

This is the issue with langchain try hitting without langchain wrapper . From the base google generativeAi it will work .I don,t know whats the issuebut you want to use 1m token context use with the google generative AI library.It will work


[travis] Is it possible to use multiple jobs to run toranj tests?

Is your feature request related to a problem? Please describe.
From tests/toranj/start.sh, tests are run one by one. This could use a lot of time. I hope we can use multiple jobs to run these tests.
Describe the solution you'd like
For each job, create a net namespace for it so that multiple wpantund can run on a single host. And we can try out how many number of jobs saves most time.
Describe alternatives you've considered
None
Additional context
None

Closing for now as the transition to GitHub Actions has reduced the severity of this.


Declared License

Type: Incomplete
Summary:
Declared License
Details:
Add MIT
Resolution:
NuGet license is MIT, closest version 3.16.0 with MIT license (https://github.com/AzureAD/azure-activedirectory-library-for-dotnet)/blob/ver3.16.0/LICENSE
Affected definitions:

Microsoft.IdentityModel.Clients.ActiveDirectory 3.16.1

@ignacionr - can you please assist with this failed check?

This one is very interesting. Supposedly, with the changes I introduced with the tool, this should have been solved (on the underlying, starting point of this PR) but I don't see that it requires to update the baseline. So something must have happened. Let me check...

Actually I can see that Gene already resolved this by modifying the definition manually, 27 days ago: https://github.com/clearlydefined/curated-data/commit/d234e131553d089b503d32f10c33798f25d79f87

@ignacionr I don't see that Ariel has the ability to merge the PR.

@AE49 that's the interesting thing; the changes on this PR are based on an older version of the file they modify, and GitHub normally would allow you to rebase changes (merge the new baseline), but I don't see that button being offered here. Let me show you so you can understand what's happening.

this is the current master branch file, notice the line with a name for the package https://github.com/clearlydefined/curated-data/blob/master/curations/nuget/nuget/-/Microsoft.IdentityModel.Clients.ActiveDirectory.yaml#L21
this is the line that these changes are proposed upon https://github.com/clearlydefined/curated-data/pull/2162/files#diff-64f4ed4ba03b902d2d39f892212e11afR21

The contents of the baseline files should either be the same, or Github should offer you to refresh by merging. But the former is not true, and the latter doesn't happen.

OK so for all pending PRs, we need to rebase the changes (merge from master).


Asset in trade modal only showing first 1 or 2 letters

Overview
The trade modal only shows the first 1 or 2 letters of assets . Also happening in rFOX and loans, when selecting the asset to repay
References and additional details

Acceptance Criteria
Should have at like 3? letters ?
Need By Date
No response
Screenshots/Mockups
No response
Ownership

[X] If my bounty needs engineering or needs product I have added the respective labels on the right
[X] As the sponsor of this bounty I will review the changes in a preview environment (ops/product) or review the PR (engineering)

Estimated effort
No response
Sponsor / Stakeholder
No response
Bounty Hunters

Join our discord
Include an expected timeline for you to complete work in the work plan when you apply for this bounty!
Please refer to this link for some basic info
Please do not start work on this issue until you are approved in Gitcoin.

Worth mentioning that this can be only reproduced by browser zooming to some levels (67%, 110%...)


onDidDeleteFiles misfires when file is already deleted from a different app

When testing https://github.com/microsoft/vscode/issues/85929
Steps to reproduce:

use the code example from https://github.com/microsoft/vscode/issues/86210 that purposely delays the response from willDeleteFiles handler.

Delete a file in the explorer, while the delay from the above handler happens

Delete the file from terminal

After the willDeleteFiles resolves, it will trigger popup with delete operation failed and should permanently delete the file, and also trigger the onDidDeleteFiles event

When similar thing is performed with the rename handlers, while you try to rename through explorer and delete the file from terminal, the onDidRenameFiles will not resolve, which seems like the behavior that should be followed here as well ?

@deepak1556

After the willDeleteFiles resolves, it will trigger popup with delete operation failed and should permanently delete the file, and also trigger the onDidDeleteFiles event

This sentence reads weird to me, can you clarify exactly what you expect? Do you mean the event should fire even if the file does not exist?

Ah sorry, I was describing what is happening at the moment. When events are delayed in the will* handler, the delete operation still thinks it has to complete the operation on a file that is already deleted and open a dialog asking the user to delete.
I am expecting the event to not fire when the file is already deleted and also it should not trigger a dialog asking to delete something thats already deleted.

Is this just a test case issue or a real world scenario we want to support eventually?
To summarise:

all text file service file operations now wait for events to been handled by extensions
each extension is free to block this operation and alter the file system
text file service continues operation after that happens

I am not even sure how to solve this issue properly because the state of the file system when the operation started might not be the same anymore after the event has fired. The same applies for create and move.
Open for suggestions.

For the delete method at least we could send the event and afterwards do an additional check if the file exists assuming that someone might have deleted it already.

Is this just a test case issue or a real world scenario we want to support eventually?

Didn't think about a real world scenario for this, aim here was to demonstrate an evil scenario. The current api design seems too easy to make evil extensions that will just mess UI with the file operations in the explorer because of the OnWill* handler.
Avoiding OnWill* event emits for explorer UI operations would solve this, as I see the handler is only allowed to delay the operation and not cancel it any way, why would extensions want to delay the UI behavior ?

why would extensions want to delay the UI behavior ?

Because they often need to do some async computation before knowing if this event requires followup work. E.g. before renaming a file a language service computes further edits and that's usually async.
I don't think much is wrong here and disagree that this is a sharp knife for evil extensions. Tho, I think is fishy is this

and also trigger the onDidDeleteFiles event

When deleting fails it should not continue. @bpasero is it that the underlying file service handles the error already and that this never throws?

@jrieken yes, IFileService#del does not throw unless the error is something else than ENOENT. This was like that since the beginning before we had file system providers. Are you suggesting to change that to throw?

Yeah, that's what I am suggesting. Otherwise I don't know how to prevent the firing of a did-delete-event in the case of failure. Generally, file operations like delete are prone for failure and IMO the caller of such methods should handle those failure (and they are likely the best suited for doing so)

Well the alternative solution would be what I suggested earlier: the text file service needs to validate the state of files after the various potentially long running events have been fired. E.g.:

delete: check if file got deleted meanwhile and then ignore operation
move: same?
copy: same I guess

IFileService#del() throws if resource does not exist.


Question/Feature request: Python library interface

I'm developing a GitHub action to check and subit CVE Records.
Right now I call cvelib via the cli interface:
def cve_exec(arguments):
    stream = os.popen("cve {} --raw".format(arguments))
    json_data = json.loads(stream.read())
    stream.close()
    return json_data

But I think it would be better if I called it programatically via an import. Is there any way to do this?

That seems to be ok and a much better way then calling the cli.
Thanks for the clarification.


[Feature] support show data and show tablet for MV

What type of PR is this：

[ ] BugFix
[x] Feature
[ ] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Which issues of this PR fixes ：

Fixes #
Problem Summary(Required) ：

Support show data and show tablet for materialized-view.
Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] I have added user document for my new feature or new function

[FE PR Coverage Check]
:heart_eyes: pass : 2 / 2 (100.00%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/sql/analyzer/PrivilegeChecker.java
1
1
100.00%
[]

:large_blue_circle:
com/starrocks/qe/ShowExecutor.java
1
1
100.00%
[]

[FE PR Coverage Check]
:heart_eyes: pass : 2 / 2 (100.00%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/sql/analyzer/PrivilegeChecker.java
1
1
100.00%
[]

:large_blue_circle:
com/starrocks/qe/ShowExecutor.java
1
1
100.00%
[]

run starrocks_admit_test

@Mergifyio rebase

run starrocks_admit_test

[FE PR Coverage Check]
:heart_eyes: pass : 2 / 2 (100.00%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/sql/analyzer/PrivilegeChecker.java
1
1
100.00%
[]

:large_blue_circle:
com/starrocks/qe/ShowExecutor.java
1
1
100.00%
[]


Sticky split labels go with scroll, how to prevent?

I've set sticky-split-labels, but when I scroll in my calendar, the labels disappear.
I want them to stay sticky on top together with my daylabels, who disappear to.
My code:
<vue-cal
id="vuecal"
:time="true"
:time-from="0 * 60"
:time-step="30"
:disable-views="['years', 'year', 'month']"
:no-event-overlaps="true"
:locale="user_lang"
:events="orderedAppointments"
:on-event-click="onEventclick"
@view-change="logEvents('view-change', $event)"
:split-days="splitDays"
sticky-split-labels
:min-cell-width="minCellWidth"
:min-split-width="minSplitWidth"
:selected-date="selectedDateCal"
:time-cell-height="40"
today-button
@cell-click="showModalAddAppointment($event)"
@ready="scrollToCurrentTime"
style="height: 800px"
>
Current version: 3.9.1
Vue version: 2.6.7

do you fix this problem? cause i have the same

I found out this problem is connected with the variables 'min-Split-Width' and 'min-cell-width' as soon, as these are set in vue-cal the sticky headers dont work as intended anymore. If your vue-cal has enough width to show all content without the need to scroll on x-axis you can try to set the css class .vuecal__weekdays-headings{ position:fixed } but this wont work as soon as you have to scroll on x-axis because with fixed you cant scroll the header. So sadly I dont have a solution to make these headers sticky, when these variables are set and you need to scroll the x-axis.
So this is my call to ask for help and/or a fix for this issue.


Upgrade to new ViteJS major version V3

Hey,
ViteJS V3 has been release 🎉... It could be nice to upgrade Laravel Vite plugin to use it 🙏🏼
Cheers

I believe I read in a comment from Dries that the update for laravel/vite-plugin is being tagged tomorrow.

There is already a PR for this: #77


update import path conventions to be consistently absolute/relative

In aind_data_schema, there are inconsistencies in pathing conventions. Some are absolute while others are relative.
@jtyoung84 has mentioned a preference for absolute paths, and that this could be done sometime as a QOL update.

I'm good with absolute paths.

me too!

Updated the acceptance criteria


Fix cells that made notebooks render horizontally

Hi. I noticed that there is at least one markdown cell with an open <div> tag in each notebook. This caused GitHub repositories to show notebook cells horizontally.
I closed all open <div> tags and the notebooks appear vertically now. This was an issue brought up at the #challenge-fall-2021 channel on Slack and it turned up to be something easy to fix.
Before

After

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

@melipass thank you so much!


IonPyOrderedDict to force sequence in ion serialization and deserialization for simpleion (Feature Request)

Hello,
This is basically a feature request.
We are going to use ion in an application that on one side ion-c is used and the other side is ion-python. The message itself has a field called type and  the value is a SYMBOL.
The ion-c side is assuming specific order in receiving data for STRUCT messages. It assumes it receives the type field first and then based on the type it parses the rest of the message.
Now on the python side, I would like to create a message that follows the sequence that c-ion side expects. If I use normal IonPyDict I cannot specify the the order but If I change internal of IonPyDict to use OrderedDict instead of regular dictionary, I can force the order that I need in the message.

What do you think about it? I believe IonPyOrderedDict could be useful in such a situation.
Is there something wrong with having IonPyOrderedDict?
Is there any better option that I am missing here?

Thanks
Yousof

The whole team talked and we are OK with using IonPyOrderedDict as the default implementation for Ion structs

Thanks @raganhan
I am thinking to open a PR.
Which option do the team prefer to have:
Option 1:
Definition of a new class IonPyOrderedDict and a flag for loads to choose which one to create.
Option 2:
Just simply use OrderedDict instead of dict for the MultiMap class.
Thanks
Yousof

@yosoufe
Let's go with Option 2.

This is resolved by #125. Closing this. Thanks


Version 1.4

Hi, is possible to recover the 1.4 version???
Now I only have 1.5 and V2, and V2 is not working.
Thanks.

use this : https://colab.research.google.com/github/TheLastBen/fast-stable-diffusion/blob/4cdbea3a76b0e20958d90f7000f51e7da9ca1253/fast_stable_diffusion_AUTOMATIC1111.ipynb


Get "Only support 64x64 image" error when dumping network infor of dcgan

When I was dumping the network information of dcgan using the dump_network_info.py (I modified this file to only dump the information of dcgan), I got the following error:

Traceback (most recent call last):
File "dump_network_info.py", line 243, in
dump_network(key, target)
File "dump_network_info.py", line 122, in dump_network
mod, params, inputs = get_network_with_key(network_key)
File "dump_network_info.py", line 103, in get_network_with_key
mod, params = relay.testing.dcgan.get_workload(
File "/usr/tvm/python/tvm/relay/testing/dcgan.py", line 170, in get_workload
net = get_net(batch_size, random_len, oshape=oshape, ngf=ngf, layout=layout, dtype=dtype)
File "/usr/tvm/python/tvm/relay/testing/dcgan.py", line 87, in get_net
assert oshape[-1] == 64, "Only support 64x64 image"
AssertionError: Only support 64x64 image

Can I directly delete the assert statements in the file "/usr/tvm/python/tvm/relay/testing/dcgan.py"?
Thanks!

You can try and verify it, but I guess some shapes will be wrong.


Expected indentation of 4 spaces (indentation)

Codacy detected an issue:
Message: Expected indentation of 4 spaces (indentation)
Currently on:

Commit:  b5604cba1f4d4735fc9c166d7442ce0fb33bffdf
File:    doc/integrations/myDrive/src/styles/components/_MoverMenu.scss
LineNum: 33

For the convenience of the Seagate development team, this issue has been mirrored in a private Seagate Jira Server: https://jts.seagate.com/browse/CORTX-31451. Note that community members will not be able to access that Jira server but that is not a problem since all activity in that Jira mirror will be copied into this GitHub issue.

Amnuay Boottrakoat commented in Jira Server:

correct indent to match coding standard


Hide the fork count only on smaller screens

Re https://github.com/sindresorhus/refined-github/issues/4197#issuecomment-816628465
Test URLs
https://github.com/sindresorhus/refined-github
Screenshot

@sindresorhus ?

Yeah the count is useless, but the link points to the useful fork network. It was suggested to add a link to the network in more-dropdown but at that point we'd just be adding further code for little benefit, so I just suggested we restore this count.


Smallest Common Multiple Test Cases are wrong

Challenge Smallest Common Multiple has an issue.
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:

function smallestCommons(arr) {
  // least common multiple of two numbers can be calculated as the ratio between the product of both numbers and their greates common denominator (gcd).
  //Let's use the Euclid's algorithm to calculate the gcd:
  function gcd(a,b) {
    if (a<1 || b<1) { return "Invalid, argument must be positive integers";}
    while (b!==0) {
      var tmp = a;
      a = b;
      b = tmp % a;
    }
    return a;
  }

  var x = arr[0];
  var y = arr[1];
  return x * y / gcd(x,y);
}

smallestCommons([18, 23]);

The Test Cases specify:
smallestCommons([1, 5]) should return 60. -
smallestCommons([5, 1]) should return 60.
smallestCommons([1, 13]) should return 360360.
smallestCommons([23, 18]) should return 6056820.
Test Cases should specify:
smallestCommons([1, 5]) should return 5.
smallestCommons([5, 1]) should return 5.
smallestCommons([1, 13]) should return 13.
smallestCommons([23, 18]) should return 414.

Hi @cicio. Unfortunately you have misread the instructions; you should find the smallest common multiple of all numbers in the range. Please read the instructions again and if you still need help, visit the HelpJavaScript chat room.
Happy coding!

Hi @BKinahan,
That is right. I apologize for not taking the time to review it properly.
Thank you
Regards


Revert "Require regular expression for github branch"

Reverts openshift-eng/ocp-build-data-validator#121
branch target can be a commit, see https://github.com/openshift-eng/ocp-build-data/blob/openshift-4.11/releases.yml#L372

Codecov Report
Attention: 7 lines in your changes are missing coverage. Please review.

Comparison is base (95eec4d) 64.76% compared to head (6492cf0) 64.19%.
Report is 15 commits behind head on master.

Files
Patch %
Lines

validator/__main__.py
0.00%
7 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #124      +/-   ##
==========================================
- Coverage   64.76%   64.19%   -0.58%
==========================================
  Files          14       14
  Lines         386      391       +5
  Branches       66       67       +1
==========================================
+ Hits          250      251       +1
- Misses        125      129       +4
  Partials       11       11

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


Port problem when using DDP (more than 2 experiments on same server)

Hello, is there any way to use two DDP-based experiments on the same server?
For example,
I have 4-GPUS, and first run the run_downstream.py task with DDP with 2-GPUS like: CUDA_VISIBLE_DEVICES=0,1 python -m torch.distributed.launch --nproc_per_node 2 run_downstream.py ~ ~
Thus the remained GPUs are 2.
So I want to use these 2-GPUS for another experiment with DDP. But I got the error as follows:

Maybe this is due to the same port problem.
But there is no way to change the port in run_downstream.py.
How can I solve it?
Best,

Hi, you can specified the argument --master-port after --nproc_per_node. Since you already launch a DDP training, the default port 29500 is utilized by it and thus the error occurs. You can specified --master-port 29501 (or other port that are not being used) to solve this problem.


To ICS support

Hello,
Thanks for the great script, it works like a charm.
IMHO the only missing feature is the ability to print the ICS back to it's original format. Sometimes you just want to parse the ICS, make some modifications and then write it back to an ICS.
All the best,
G.

Feel free to PR; this library is not currently in active development. Bugs will be fixed but enhancements will be added to a prioritised queue.

Sounds good, I will give it a shot when I get some free time.


Need clarification understanding.

This article is not clear if I am installing the Lync tools or the Skype tools.

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

ID: 3a279530-e333-d1ad-4626-4a4872560594
Version Independent ID: 9c015bec-b047-986c-d986-ea5fd12b543e
Content: Skype for Business Server 2015 Resource Kit Tools Documentation
Content Source: Skype/SfbServer/management-tools/resource-kit-tools.md
Product: skype-for-business-itpro
GitHub Login: @jambirk
Microsoft Alias: jambirk

Thank you for this feedback and for contributing to the wellness of the content! This is a good idea and we have added it into our backlog for triage and prioritization.

@tseward Is investigating this.

Hi
This article is under "Skype For Business 2015" section and also the title states "Skype for Business Server 2015 Resource Kit Tools"
Thank you

@AndreaBarr  @yogkumgit It looks like whatever ambiguity was there was fixed. Let's consider this closed.


Unclear how to configure librdkafka settings in JS

I was unable to find documentation how to configure the librdkafka settings in JS with the v4 runtime.

How can we configure properties such as AutoOffsetReset/auto.offset.reset?
Is there a types package that we can leverage to type the options since there is no kafka specific trigger and we must use the generic trigger?

Thank you in advance for your insight
Investigative information
Please provide the following:

Timestamp: N/A
Function App name: N/A
Function name(s) (as appropriate): N/A
Invocation ID: N/A
Region: N/A

Repro steps
Provide the steps required to reproduce the problem:  N/A

Expected behavior
Provide a description of the expected behavior.
N/A

Actual behavior
Provide a description of the actual behavior observed.

Known workarounds
Provide a description of any known workarounds.
N/A

Related information
Provide any related information

Programming language used : Typescript
Links to source
Bindings used: Kafka
Runtime: "@azure/functions": "^4.0.1",
host.json:

{
  "version": "2.0",
  "logging": {
    "applicationInsights": {
      "samplingSettings": {
        "isEnabled": true,
        "excludedTypes": "Request"
      }
    }
  },
  "extensionBundle": {
    "id": "Microsoft.Azure.Functions.ExtensionBundle",
    "version": "[4.*, 5.0.0)"
  }
}

Hi Team, do you have an update here? Is there any information you're missing from me? TIA for the help

Hi @eric-gonzalez-tfs, sorry for the delay. Unfortunately I'm not super familiar with kafka. I don't see AutoOffsetReset or auto.offset.reset listed in the docs here. Can you give more context on those settings?
We add types for triggers based on usage and customer feedback, so the fact that you filed an issue increased the chances we will add it for Kafka. That being said, we would normally base the types on the docs I just linked, so if those docs aren't useful in the first place we would need to reach out to the kafka team for help

Hi @eric-gonzalez-tfs, sorry for the delay. Unfortunately I'm not super familiar with kafka. I don't see AutoOffsetReset or auto.offset.reset listed in the docs here. Can you give more context on those settings?
We add types for triggers based on usage and customer feedback, so the fact that you filed an issue increased the chances we will add it for Kafka. That being said, we would normally base the types on the docs I just linked, so if those docs aren't useful in the first place we would need to reach out to the kafka team for help

No problem - I'll try my best to elaborate here. One of the features of Kafka is that it can ensure each message is processed based on its unique consumer group name. Every time a message is processed, it's offset is committed so the consumer(s) know where to pick up from when more messages are produced. In the current implementation and the parameters included in my screenshot above, if I were to change the consumerGroup name the Azure Function would begin reading all of the messages on that topic since it's inception. This behavior can be configured by setting AutoOffsetReset or auto.offset.reset to a value other than the default. More info here.
Thanks for the info - It seems like the docs are up to date. However - I have noticed it does not get into the nitty-gritty of the librdkafka configuration. I did find these docs that have a little more info but do not go into how to configure them in the Javascript implementation. It would be nice to include those in the JS docs (assuming they're supported).
Let me know if you need any addt'l info @ejizba, appreciate the help.


@undef/ci test

:memo: TAOS-CI Version: 1.5.20200925. Thank you for submitting PR #2. Please a submit 1commit/1PR (one commit per one PR) policy to get comments quickly from reviewers. Your PR must pass all verificiation processes of cibot before starting a review process from reviewers. If you are new member to join this project, please read manuals in documentation folder and wiki page. In order to monitor a progress status of your PR in more detail, visit http://nnstreamer.mooo.com/.

:octocat: cibot: @zhoonit, nntrainer/models/neuralnet.cpp does not include Doxygen tags such as @file @brief @author @bug. You must include the Doxygen tags in the source code. Please refer to a Doxygen manual at http://github.com/nnstreamer/TAOS-CI/blob/main/ci/doc/doxygen-documentation.md

:octocat: cibot: Oooops. The administrator of CI server must install a debian package to support 'ndk-build' command.


Fix .Q.fu issue when used within scaleSampling

.Q.fu is coded wrongly to take count each x into the function {calcsize[x;typesize x 0;$[1000<count x;0;attrsize each x]]}, causing the typesize to be long type and return incorrect result.
.Q.fu is removed since scaleSampling already does the optimization. Doesn't make sense to have it in there.

Function should work as expected now compare to the old one:
q)n:10000000
q)quote:([]time:`timestamp$abs n?0;sym:n?`4;bid:`float$n?0;ask:`float$n?0;bsize:`long$n?0;asize:`long$n?0;exch:n?.Q.a;exch1:n?.Q.a;str:{10?.Q.a}each til n)
q)objsize quote
1293078816
q)objsize2 quote
1293078816
q)\ts objsize quote
71 5506944
q)\ts objsize2 quote
1588 570426544


❓ Sharing ElasticSearch indexed dataset

Hi there,
First of all, thank you very much for this amazing library. Datasets have become my preferred data structure for basically everything I am currently doing.
Question: I'm working with a dataset and I have an elasticsearch container running at localhost:9200. I added an elasticsearch index and I was wondering

how can I know where it has been saved?

how can I share the indexed dataset with others?

I tried to dig into the docs, but could not find anything about that.
Thank you very much for your help.
Best,
Pietro
Edit: apologies for the wrong label

Hello @pietrolesci , I am not sure to understand what you are trying to do here.
If you're looking for ways to save a dataset on disk, you can you the save_to_disk method:
>>> import datasets
>>> loaded_dataset = datasets.load("dataset_name")
>>> loaded_dataset.save_to_disk("/path/on/your/disk")

The saved dataset can later be retrieved using:
>>> loaded_dataset = datasets.load_from_disk("/path/on/your/disk")

Also, I'd recommend posting your question in the issue section of the elasticsearch repo

Hi @SBrandeis,
Thanks a lot for picking up my request.
Maybe I can clarify my use-case with a bit of context. Say I have the IMDb dataset. I create an ES index on it. Now I can save and reload the dataset from disk normally. Once I reload the dataset, it is easy to retrieve the ES index on my machine. I was wondering: is there a way I can share the (now) indexed version of the IMDb dataset with my colleagues without requiring them to re-index it?
Thanks a lot in advance for your consideration.
Best,
Pietro

Thanks for the clarification.
I am not familiar with ElasticSearch, but if I understand well you're trying to migrate your data along with the ES index.
My advice would be to check out ES documentation, for instance, this might help you: https://www.elastic.co/guide/en/cloud/current/ec-migrate-data.html
Let me know if it helps


APPS-345 Fix syntax error in bwa_mem in ExpertOptions doc

Making a small PR for this (subtask of APPS-320) as it's mergeable on its own.

Can you make the other fixes to the WDL as well (i.e. update the docker image)?

Can you make the other fixes to the WDL as well (i.e. update the docker image)?

Closing, already merged as part of APPS-338

Closing, already merged as part of APPS-338


Added service quota role

This looks great!   We should probably add a root level playbook to run it and then add it to the makefile so a person can run make quota before running make create if they want to run the quotas.

I think it is a good idea to have root level playbook, to support multi-aws-accounts (service quota check/openshift deploy) we can create an AWS profile at the playbook level for each aws account. I added just in case.

As part of the validation I would also include either in this role or another one:
AWS SCP policies check and check for service linked role elasticloadbalancing.amazonaws.com

sorry please ignore this, we'll figure out another way of testing

@diana-sari Still looking for a way to test this?

sorry @vitaliejicol that comment i made was from a long time ago and i can't recall what that was all about again apologies😅


Add Supply Chain subteam

Creates a new Supply Chain subteam to shepherd RFCs through the process, and make governance decisions regarding the design and direction of Sawtooth Supply Chain. A subteam is needed to involve the community in Supply Chain's design, and help keep future growth in line with Sawtooth's goals.

+1

Propose this RFC be merged.
After approval by the root team, this RFC will enter its final comment period.

[X] Shawn Amundson
[x] Tom Barnes
[x] Andi Gunderson
[x] Adam Ludvik
[x] Dan Middleton
[ ] James Mitchell
[x] Kelly Olson
[x] Peter Schwarz

This RFC has entered final comment period, which will end June 8th, at which point this RFC will be merged.


[SPARK-45202][BUILD] Fix lint-js tool and js format

What changes were proposed in this pull request?

This PR fixes lint-js tool, which covers only js files in the core module, and also fixes the js format of the rest modules.
dev/lint-js

/Users/kentyao/spark/sql/core/src/main/resources/org/apache/spark/sql/execution/ui/static/spark-sql-viz.js
   29:10  error  'renderPlanViz' is defined but never used                                      no-unused-vars
   31:18  error  'd3' is not defined                                                            no-undef
   35:11  error  'graphlibDot' is not defined                                                   no-undef
   37:22  error  'dagreD3' is not defined                                                       no-undef
   46:27  error  '$' is not defined                                                             no-undef
   59:38  error  'd3' is not defined                                                            no-undef
   66:21  error  'd3' is not defined                                                            no-undef
   67:3   error  'd3' is not defined                                                            no-undef
   68:20  error  'd' is defined but never used. Allowed unused args must match /^_ignored_.*/u  no-unused-vars
   69:21  error  'd3' is not defined                                                            no-undef
   70:7   error  '$' is not defined                                                             no-undef
  104:55  error  'i' is defined but never used. Allowed unused args must match /^_ignored_.*/u  no-unused-vars
  108:1   error  Expected indentation of 10 spaces but found 12                                 indent
  109:1   error  Expected indentation of 10 spaces but found 12                                 indent
  115:1   error  Expected indentation of 4 spaces but found 6                                   indent
  116:1   error  Expected indentation of 6 spaces but found 8                                   indent
  116:16  error  'd3' is not defined                                                            no-undef
  117:1   error  Expected indentation of 4 spaces but found 6                                   indent
  118:1   error  Expected indentation of 2 spaces but found 4                                   indent
  129:13  error  'd3' is not defined                                                            no-undef
  130:34  error  'd3' is not defined                                                            no-undef
  133:13  error  'd3' is not defined                                                            no-undef
  134:34  error  'd3' is not defined                                                            no-undef
  137:13  error  'd3' is not defined                                                            no-undef
  138:15  error  'd3' is not defined                                                            no-undef
  142:13  error  'd3' is not defined                                                            no-undef
  143:15  error  'd3' is not defined                                                            no-undef
  180:11  error  'd3' is not defined                                                            no-undef
  196:3   error  '$' is not defined                                                             no-undef
  198:26  error  '$' is not defined                                                             no-undef
  199:1   error  Expected indentation of 6 spaces but found 8                                   indent
  200:1   error  Expected indentation of 8 spaces but found 10                                  indent
  201:1   error  Expected indentation of 8 spaces but found 10                                  indent
  201:28  error  'd3' is not defined                                                            no-undef
  201:41  error  '$' is not defined                                                             no-undef
  202:1   error  Expected indentation of 8 spaces but found 10                                  indent
  203:1   error  Expected indentation of 8 spaces but found 10                                  indent
  204:1   error  Expected indentation of 8 spaces but found 10                                  indent
  204:11  error  '$' is not defined                                                             no-undef
  205:1   error  Expected indentation of 6 spaces but found 8                                   indent
  206:1   error  Expected indentation of 8 spaces but found 10                                  indent
  207:1   error  Expected indentation of 6 spaces but found 8                                   indent
  208:1   error  Expected indentation of 4 spaces but found 2                                   indent
  210:22  error  '$' is not defined                                                             no-undef
  212:1   error  Expected indentation of 4 spaces but found 6                                   indent
  212:40  error  '$' is not defined                                                             no-undef
  223:27  error  '$' is not defined                                                             no-undef

✖ 47 problems (47 errors, 0 warnings)
  17 errors and 0 warnings potentially fixable with the `--fix` option.

/Users/kentyao/spark/docs/js/api-docs.js
  20:1   error  '$' is not defined                                                                 no-undef
  21:21  error  '$' is not defined                                                                 no-undef
  29:14  error  '$' is not defined                                                                 no-undef
  32:22  error  'index' is defined but never used. Allowed unused args must match /^_ignored_.*/u  no-unused-vars
  33:19  error  '$' is not defined                                                                 no-undef
  35:5   error  '$' is not defined                                                                 no-undef
  45:1   error  '$' is not defined                                                                 no-undef
  50:5   error  'MathJax' is not defined                                                           no-undef

/Users/kentyao/spark/docs/js/api-javadocs.js
  20:1   error  '$' is not defined                                                                 no-undef
  27:14  error  '$' is not defined                                                                 no-undef
  30:22  error  'index' is defined but never used. Allowed unused args must match /^_ignored_.*/u  no-unused-vars
  31:19  error  '$' is not defined                                                                 no-undef
  33:5   error  '$' is not defined                                                                 no-undef
  37:22  error  'index' is defined but never used. Allowed unused args must match /^_ignored_.*/u  no-unused-vars
  38:9   error  '$' is not defined                                                                 no-undef
  39:7   error  '$' is not defined                                                                 no-undef
  40:16  error  '$' is not defined                                                                 no-undef
  44:30  error  '$' is not defined                                                                 no-undef
  54:16  error  '$' is not defined                                                                 no-undef
  55:7   error  '$' is not defined                                                                 no-undef
  57:7   error  '$' is not defined                                                                 no-undef

/Users/kentyao/spark/docs/js/main.js
   28:3   error  '$' is not defined                no-undef
   29:5   error  '$' is not defined                no-undef
   32:18  error  '$' is not defined                no-undef
   33:5   error  '$' is not defined                no-undef
   36:23  error  '$' is not defined                no-undef
   40:7   error  '$' is not defined                no-undef
   41:7   error  '$' is not defined                no-undef
   43:18  error  '$' is not defined                no-undef
   44:19  error  '$' is not defined                no-undef
   45:20  error  '$' is not defined                no-undef
   50:7   error  '$' is not defined                no-undef
   54:13  error  'buttonLabel' is already defined  no-redeclare
   56:13  error  'buttonLabel' is already defined  no-redeclare
   63:9   error  '$' is not defined                no-undef
   75:3   error  '$' is not defined                no-undef
   79:24  error  '$' is not defined                no-undef
   79:47  error  '$' is not defined                no-undef
   80:5   error  '$' is not defined                no-undef
   80:13  error  '$' is not defined                no-undef
   81:5   error  '$' is not defined                no-undef
   81:27  error  '$' is not defined                no-undef
   89:31  error  '$' is not defined                no-undef
   90:18  error  '$' is not defined                no-undef
   91:5   error  '$' is not defined                no-undef
   95:1   error  '$' is not defined                no-undef
   99:3   error  'anchors' is not defined          no-undef
  102:3   error  'anchors' is not defined          no-undef
  104:3   error  '$' is not defined                no-undef
  110:3   error  '$' is not defined                no-undef
  115:21  error  '$' is not defined                no-undef
  116:27  error  '$' is not defined                no-undef
  117:25  error  '$' is not defined                no-undef
  119:3   error  '$' is not defined                no-undef
  123:25  error  '$' is not defined                no-undef
  129:25  error  '$' is not defined                no-undef

✖ 56 problems (56 errors, 0 warnings)

Why are the changes needed?

bugfix and format fix
Does this PR introduce any user-facing change?

no
How was this patch tested?

dev/lint-js in CI
Was this patch authored or co-authored using generative AI tooling?

no

cc @sarutak @dongjoon-hyun @HyukjinKwon, thanks

The job containing lint-js passed.
Thanks @sarutak @dongjoon-hyun @HyukjinKwon , merged to master


#29-Header-Footer-added-to-App.js-Meysam-Arshadi

Fixes #29

[x]  Header.jsx and Footer.jsx content modified.
[x]  Header and footer added to App.js, so it will be added to all pages.

Checklist:

[ ] My code follows the style guidelines of this project
[x] I have carefully reviewed my own code
[ ] I have commented my code
[ ] I have updated any documentation

Yes @SanaAsaf I had to update the webpack as I was getting the error that I don't have the proper loader.
The PR discretion is updated.


fix : added full-stop mark (.) missing in sentence

Checklist:

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the main branch of freeCodeCamp.
[x] I have tested these changes either locally on my machine, or GitPod.

Closes #XXXXX

I'm not sure that we need this...


Remove INotebookEditor

Code health
Removed some remnants of WebView code

Removed INotebookEditor
Removed methods from INotebookEditorProvider

The remaining methods are used to open & create notebooks (agreed INotebookEditorProvider isn't the best)
But that can wait another day

Codecov Report

Merging #7866 (aa1bdc9) into main (e8cc3cf) will decrease coverage by 0%.
The diff coverage is 38%.

@@          Coverage Diff           @@
##            main   #7866    +/-   ##
======================================
- Coverage     70%     70%    -1%
======================================
  Files        362     361     -1
  Lines      22283   22139   -144
  Branches    3375    3356    -19
======================================
- Hits       15699   15559   -140
+ Misses      5223    5222     -1
+ Partials    1361    1358     -3

Impacted Files
Coverage Δ

...science/interactive-common/notebookUsageTracker.ts
75% <ø> (-2%)
:arrow_down:

src/client/datascience/jupyter/kernels/kernel.ts
73% <ø> (-1%)
:arrow_down:

src/client/datascience/types.ts
100% <ø> (ø)

...rc/client/datascience/commands/notebookCommands.ts
40% <22%> (-18%)
:arrow_down:

src/client/datascience/commands/exportCommands.ts
34% <30%> (+<1%)
:arrow_up:

...e/interactive-ipynb/nativeEditorCommandListener.ts
47% <39%> (+10%)
:arrow_up:

...tascience/kernel-launcher/kernelDaemonPreWarmer.ts
60% <66%> (-32%)
:arrow_down:

...ient/datascience/jupyter/kernels/kernelProvider.ts
97% <100%> (-1%)
:arrow_down:

...ent/datascience/notebook/notebookEditorProvider.ts
95% <100%> (+10%)
:arrow_up:

... and 17 more


Curl transfers not completing

In UrlRequest_Unix.cpp, curl transfers are not always completing. Gary and I looked at this for a while and suspect that we're not using the curl library correctly.
Steps to reproduce the behavior:

On a Linux setup, start a script that runs the unit tests 1000 times.
Eventually, one of the unit tests will get stuck and need to be killed manually.

Expected behavior:
The unit tests should never get stuck and need to be killed manually.
Other:

Platform: Linux

@CedricGuillemet - please check with @bghgary

It's difficult to repro on my side. I'm even able to do 1000 runs without a failure. I let you fix it @docEdub

It's so rare, we are going to wait on fixing it.


[enhancement]: _sigintTimeout should be modifiable by task creator or pipeline

Describe your feature request here
_sigintTimeout should be modifiable by task creator or pipeline
Hi!
Business case
We are working successfully with Azure DevOps pipelines for multiple use cases. One use case is the rollout of infrastructure using terraform. Terraform has a graceful shutdown, when sigint is send. It stops to modify the resources in the cloud and updates the terraform state file, so that the configuration is consistent. After finishing the update, terraform releases the lock on the state file. When sigkill is send, the lock on the state file remains (and the state is not updated resulting in an inconsistent configuration). The next run will not work and the state lock will need to be removed manually. Terraform is quite slow, I would say it usually takes 10-30 seconds for the graceful shutdown depending on the size of the terraform configuration, with up to 1-2 minutes maybe as maximum.
Current technical implementation
When a pipeline is cancelled, Azure Devops does exactly what's expected.
First send a sigint, then wait for 7500ms. If the sigint has not finished by then, a sigkill is send. The 7500ms is hardcoded in the code. This limit is not enough for e.g. terraform to do a graceful shutdown. Here is an open issue from 2020 in the terraform task repository, pointing out this behavior.
Possible implementation
It would be great if the hardcoded timeout would be modifiable up to a certain hard upper limit, maybe 2 minutes or so. Either by the pipeline, which could increase this value, or, if you do not want this, maybe at least task creators could specify how long their graceful shutdown takes.
Best regards,
Stephi

Hi @steph409, thanks for reporting! We are working on more prioritized issues at the moment but will get back to this one soon.

Hi, any update on this issue?

This issue causes serious problems for us when using Terraform. We want to be able to cancel a pipeline, but it SHOULD NOT terminate (sigkill) Terraform. Just ask it to stop nicely and that's it (sigint).

Hi @DenisNikulin5 ,
thanks for working on this issue. I am trying to understand if/how this works now.
I could not find it in the documentation, but I found this issue  describing how to set the KNOB settings.
I configured it as following:

Then, I have a sample pipeline to test it. In this pipeline, I can see the first "initialize job" logs, where I can see some knob settings appear. Unfortunately, I can not see the values I configured on the agent.

My test pipeline code is as following:
pool:
  name: Azure Pipelines
  demands: PROCESS_SIGINT_TIMEOUT # exists check for custom PROCESS_SIGINT_TIMEOUT

stages:
  - stage: test
    jobs:
      - job: test
        steps:
          - task: Bash@3
            timeoutInMinutes: 1
            inputs:
              targetType: "inline"
              script: |
                trap 'echo signal int received!' SIGINT
                trap 'echo signal term received!' SIGTERM

                for i in `seq 300`
                do
                  echo $i
                  sleep 1
                done

            env:
              PROCESS_SIGINT_TIMEOUT: 30000
              PROCESS_SIGTERM_TIMEOUT: 30000
              USE_GRACEFUL_PROCESS_SHUTDOWN: true

To test the signals, I first trigger the pipeline, and then click on "cancel" while it is running. A sample output looks as following:

Now I am unsure if this should be working or what is still missing. From what I can see, there are also a couple of related issues open.
For example, the task lib seems to not pass down the SIGINT correctly: https://github.com/microsoft/azure-pipelines-task-lib/issues/858
Do you have a working sample for the changes you made and how to use them?
Ultimately, I want to use Azure DevOps to have Build-validation pipelines running for infrastructure (terraform) deployments. To allow automatic triggering, they need graceful shutdown, otherwise the terraform backend state will be broken.
Thanks for reading,
Stephi


Batch on retry

'retry slow' and 'retry one at a time' seem to be over engineered.
As reported in #155, (especially when the message sizes are small and buffer size is large), it may take quite long time to recover.
As for strict ordering, as long as onwire_limit is larger than 1, the risk of breaking it is always there.
I might have missed something though, @id please check me.

You are right, I see the same.

Something with tests?

Something wrong with my local testbed.
Had to retry a lot in travis.


IntelliJ Ultimate - 403 Forbidden when downloading

Issue description
Installing package nixos.idea.idea-ultimate fails when downloading IntelliJ tar
$ nix-env -iA nixos.idea.idea-ultimate
installing ‘idea-ultimate-2017.1’
...

trying https://download.jetbrains.com/idea/ideaIU-2017.1.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   154  100   154    0     0    397      0 --:--:-- --:--:-- --:--:--  1026
100  638k  100  638k    0     0   385k      0  0:00:01  0:00:01 --:--:--  385k

curl: (22) The requested URL returned error: 403 Forbidden
error: cannot download ideaIU-2017.1.tar.gz from any mirror
builder for ‘/nix/store/vmi4z22q7xjf56chg0fcy5i0qf2hn2ns-ideaIU-2017.1.tar.gz.drv’ failed with exit code 1

Steps to reproduce
$ nix-env -iA nixos.idea.idea-ultimate

Technical details

System: 17.03.1203.58e227052d (Gorilla)
Nix version: nix-env (Nix) 1.11.8
Nixpkgs version: "17.03.1203.58e227052d"
Sandboxing enabled: build-use-sandbox = false

It's already 2017.4 in the repo

The policy is to keep two last minor versions of each major version, which means that we need to update the expression faster :).


Error Managing Implements

Getting an error when I click on Manage Implements. It says there is an error and to hit F12 for console log. I look in console, and this is what I am getting.

I de-level the actor to 0, and then back to level 1 and there doesn't seem to be any change.
Any thoughts?
Thank you.

I created the sheet again instead of using Pathmuncher to pull from Pathbuilder and that resolved the issue.


Changing MOTD doesn't work

Describe the problem
I ran the latest image with -e MOTD="My Server" and the MOTD doesn't change. It keeps the default one
I tried running the java17 image and the MOTD changes properly. That one was updated a day ago so I guess it was before 977d082638347092261e834d7e5dd2f54db0f5f6 when code related to MOTD was changed
Container definition
podman run -d -it -p 25565:25565 -e EULA=TRUE -e MOTD="My Server" itzg/minecraft-server
podman run -d -it -p 25565:25565 -e EULA=TRUE -e MOTD="My Server" itzg/minecraft-server:java17
Container logs

It seems to be working again. I donno what I did haha sorry

It also depends on OVERRIDE_SERVER_PROPERTIES

I also updated to the latest images and the MOTD isn't being set anymore. OVERRIDE_SERVER_PROPERTIES is set to true and MOTD is set to a string value.
Log:
minecraft-plscraft-s3-1  | [init] Setting motd to 'A Fabric Minecraft Server powered by Docker' in /data/server.properties

MOTD is set to "PlsCraft S3"

MOTD issue seems to be related to the following change in #1259:
-  if [ -z "$MOTD" ]; then
+  if ! [ -v "$MOTD" ]; then

I'm also running into this issue. Still looking into what might be causing it. Using the latest image version
Here are the env variables from my container:
$ env
SERVER_NAME="Mum's House"
MOTD="Central Station Server"
HOSTNAME=cf5f2792f810
LANGUAGE=en_US:en
JAVA_HOME=/opt/java/openjdk
RCON_PASSWORD=minecraft
AUTOPAUSE_PERIOD=10
RCON_PORT=25575
EULA=TRUE
TYPE=PAPER
VIEW_DISTANCE=12
PWD=/data
AUTOSTOP_PERIOD=10
TZ=America/Chicago
JVM_DD_OPTS=disable.watchdog:true
HOME=/root
LANG=en_US.UTF-8
USE_AIKAR_FLAGS=true
AUTOSTOP_TIMEOUT_EST=3600
ENABLE_AUTOSTOP=false
AUTOPAUSE_TIMEOUT_INIT=60
ENABLE_RCON=true
GID=1000
AUTOPAUSE_TIMEOUT_KN=20
MAX_PLAYERS=50
SHLVL=1
INIT_MEMORY=500M
MAX_TICK_TIME=-1
AUTOPAUSE_KNOCK_INTERFACE=eth0
LC_ALL=en_US.UTF-8
PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
OVERRIDE_SERVER_PROPERTIES=true
VERSION=1.18.1
MEMORY=1G
UID=1000
ENABLE_AUTOPAUSE=true
JAVA_VERSION=jdk-17.0.1+12
MAX_MEMORY=2G
AUTOSTOP_TIMEOUT_INIT=1800
AUTOPAUSE_TIMEOUT_EST=120
_=/usr/bin/env

Looks like Stealthii is correct on this one. -v "$MOTD" is used to check if a environment variable is set, and returns 0 if the value is set.
if ! [ -v "$MOTD" ]; then
  # Set a reasonable default MOTD

The above says "if MOTD is set, set a default", and I think we want the opposite here. I've opened #1265 to fix this

Just wanted to mention I'm running into the same issue, and the PR fix looks to be correct

Just wanted to mention I'm running into the same issue, and the PR fix looks to be correct

The fix accidentally worked. I have applied a fix to the fix and published. It's ready to re-test.

That fixed it for me! Thanks for the quick merge