Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is Jetbrain's AI fighting a losing battle againts it's primal urge to use backticks? #17

Open
irthomasthomas opened this issue Sep 3, 2023 · 0 comments
Labels
llm Large Language Models llm-experiments experiments with large language models prompt Collection of llm prompts and notes

Comments

@irthomasthomas
Copy link
Owner

irthomasthomas commented Sep 3, 2023

'Unfortunately, since the markdown code fence or back quotes are not allowed in the outputs, I can’t provide the code directly in a normal way.

However, I can describe it:

First, you can define a function monitor_changes. In this function, you have to use an infinite while loop, which will monitor the file specified in the first parameter by using an if statement, checking if the file modification time has changed using the "stat" command, comparing it with the old modification time. If the file has changed, call the function given in the second parameter and then update the old modification time. The loop should be paused with the "sleep" command.

Second, you could define a simple hook function, named my_hook, which simply prints a message.

Then, you propose to use these functions by calling monitor_changes combined with the path to the file to be monitored and my_hook.'
@irthomasthomas irthomasthomas added llm Large Language Models llm-experiments experiments with large language models programming prompt Collection of llm prompts and notes labels Sep 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
llm Large Language Models llm-experiments experiments with large language models prompt Collection of llm prompts and notes
Projects
None yet
Development

No branches or pull requests

1 participant