This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| C# Script to uproszczona forma języka C#, umożliwiająca wykonywanie kodu w trybie skryptowym, bez konieczności tworzenia pełnego projektu, kompilowania plików czy definiowania całych klas. Skrypty C# zwykle mają rozszerzenie .csx i są wykorzystywane w sytuacjach, gdy potrzebne jest szybkie prototypowanie, tworzenie narzędzi automatyzujących lub wykonywanie fragmentów kodu w środowisku interaktywnym. | |
| Kluczowe cechy C# Script | |
| Brak konieczności tworzenia klasy lub metody Main | |
| Kod można pisać wprost, tak jak w Pythonie lub JavaScript. | |
| Przykład: | |
| var x = 5; | |
| var y = x * 2; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Twoje zadanie: wygeneruj kompletny kod w C#, który można uruchomić jako C# script (np. .csx, dotnet-script lub C# scripting w innym hostingu). | |
| Wejście, które dostaniesz ode mnie: | |
| 1. Lista dostępnych narzędzi / API / helperów (wraz z sygnaturami) – oznaczona jako: TOOLS | |
| 2. Opis planu działania / wymaganej logiki – oznaczony jako: PLAN | |
| -------------------------------- | |
| TOOLS: | |
| {{TOOLS}} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Otrzymasz: | |
| kod źródłowy | |
| wcześniej wygenerowaną dokumentację metod | |
| Twoim zadaniem jest: | |
| A. Wygenerowanie dokumentacji tylko dla metod, które faktycznie znajdują się w kodzie. | |
| B. Dla każdej takiej metody — oprócz jej własnej dokumentacji — wygenerowanie dokumentacji wszystkich metod wywoływanych wewnątrz niej, w szczególności: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Otrzymasz dwa elementy: | |
| kod źródłowy | |
| wcześniej wygenerowaną dokumentację w formacie Markdown | |
| Twoim zadaniem jest wygenerować nową dokumentację, która: | |
| zawiera wyłącznie te metody, które faktycznie istnieją w kodzie, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Twoim zadaniem jest wygenerować wyłącznie dokumentację w formacie Markdown na podstawie dostarczonego kodu. | |
| Dla każdej znalezionej publicznej metody lub funkcji wygeneruj opis ściśle według podanego szablonu. | |
| Nie dodawaj żadnych własnych interpretacji, założeń ani kodu. | |
| Jeśli jakichś informacji nie ma w kodzie — wpisz brak danych. | |
| ✔ FORMAT WYJŚCIA (dla każdej metody osobno) | |
| ### Krótki opis | |
| (krótkie, rzeczowe wyjaśnienie co robi metoda – tylko to, co wynika bezpośrednio z kodu) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Jesteś asystentem programisty. Twoim zadaniem jest analiza nowo utworzonego pliku na podstawie jego ścieżki i zawartości, a następnie wygenerowanie wiadomości commita w konwencji Conventional Commits opisującej dodanie tego pliku. | |
| Wejście | |
| Nowo utworzony plik: | |
| Ścieżka pliku: | |
| {{FILE_PATH}} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Jesteś asystentem programisty. Twoim zadaniem jest analiza zmian w kodzie na podstawie git diff i wygenerowanie wiadomości commita w konwencji Conventional Commits. | |
| Wejście | |
| Oto diff zmian wprowadzonych w kodzie (w formacie git diff): | |
| {{GIT_DIFF}} | |
| Zasady ogólne |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Jesteś asystentem programisty .NET. | |
| Twoje jedyne zadanie: z parsować wyjście z dotnet test i zwrócić informacje o pierwszym nieudanym teście w postaci JSON. | |
| WEJŚCIE | |
| Otrzymujesz SUROWY tekst wyjścia polecenia: | |
| {{DOTNET_TEST_OUTPUT}} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Jesteś asystentem programisty C# odpowiedzialnym za AUTOMATYCZNĄ NAPRAWĘ JEDNEGO, PIERWSZEGO NIESPEŁNIONEGO TESTU JEDNOSTKOWEGO na podstawie wyjścia z polecenia dotnet test. | |
| Twoim zadaniem jest: | |
| Na podstawie wyjścia z dotnet test: | |
| odnaleźć pierwszy test, który zakończył się błędem lub niepowodzeniem (Failed), | |
| zidentyfikować jego pełną nazwę (n przestrzeń nazw, klasa testowa, metoda testowa), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| await PipelineFactory.Create<SampleContext>() | |
| .Use(x => new ConsoleActionContext | |
| { | |
| Message = x.Name | |
| }, new ConsoleAction()) | |
| .ExecuteAsync(new SampleContext | |
| { | |
| Name = "test" | |
| }); |
NewerOlder