file_id
stringlengths
5
10
content
stringlengths
57
33.1k
repo
stringlengths
8
77
path
stringlengths
6
174
token_length
int64
19
8.19k
original_comment
stringlengths
7
10.6k
comment_type
stringclasses
2 values
detected_lang
stringclasses
1 value
prompt
stringlengths
21
33.1k
8281_4
package com.gmail.alikstudio47; import static org.bukkit.ChatColor.AQUA; import static org.bukkit.ChatColor.BLUE; import static org.bukkit.ChatColor.BOLD; import static org.bukkit.ChatColor.DARK_GREEN; import static org.bukkit.ChatColor.GOLD; import static org.bukkit.ChatColor.GRAY; import static org.bukkit.Ch...
alufers/NEXTparkour
src/com/gmail/alikstudio47/ParkourArena.java
3,250
// gracz musi byc usuniety bo bugi :D
line_comment
pl
package com.gmail.alikstudio47; import static org.bukkit.ChatColor.AQUA; import static org.bukkit.ChatColor.BLUE; import static org.bukkit.ChatColor.BOLD; import static org.bukkit.ChatColor.DARK_GREEN; import static org.bukkit.ChatColor.GOLD; import static org.bukkit.ChatColor.GRAY; import static org.bukkit.Ch...
8282_0
package Chapter31_CoreJava2; /** * Typy zmiennych w Javie: * a) class variable * b) instance variable * c) local variable * * Wcześniej zamiennie z 'class variable' używałem pojęcia 'global variable', ale jak doczytałem w Javie de facto nie ma czegoś takiego, * jak zmienne globalne. Nie wgłębiałe...
bojan-wik/SeleniumWithJavaCourse
src/Chapter31_CoreJava2/f_VariablesInJava.java
962
/** * Typy zmiennych w Javie: * a) class variable * b) instance variable * c) local variable * * Wcześniej zamiennie z 'class variable' używałem pojęcia 'global variable', ale jak doczytałem w Javie de facto nie ma czegoś takiego, * jak zmienne globalne. Nie wgłębiałem się w temat, ale pewnie wyni...
block_comment
pl
package Chapter31_CoreJava2; /** * Typy zmiennych w <SUF>*/ public class f_VariablesInJava { /** * a) Class variable: * zmienna, która jest zdefiniowana (zadeklarowana i zainicjalizowana) bezpośrednio na poziomie klasy i ma modifier static. * Zmienna taka nie jest przypisana do żadnego konkretnego...
8282_1
package Chapter31_CoreJava2; /** * Typy zmiennych w Javie: * a) class variable * b) instance variable * c) local variable * * Wcześniej zamiennie z 'class variable' używałem pojęcia 'global variable', ale jak doczytałem w Javie de facto nie ma czegoś takiego, * jak zmienne globalne. Nie wgłębiałe...
bojan-wik/SeleniumWithJavaCourse
src/Chapter31_CoreJava2/f_VariablesInJava.java
962
/** * a) Class variable: * zmienna, która jest zdefiniowana (zadeklarowana i zainicjalizowana) bezpośrednio na poziomie klasy i ma modifier static. * Zmienna taka nie jest przypisana do żadnego konkretnego obiektu danej klasy, będzie miała zawsze taką samą wartość i nie da się jej zmienić. */
block_comment
pl
package Chapter31_CoreJava2; /** * Typy zmiennych w Javie: * a) class variable * b) instance variable * c) local variable * * Wcześniej zamiennie z 'class variable' używałem pojęcia 'global variable', ale jak doczytałem w Javie de facto nie ma czegoś takiego, * jak zmienne globalne. Nie wgłębiałe...
8282_2
package Chapter31_CoreJava2; /** * Typy zmiennych w Javie: * a) class variable * b) instance variable * c) local variable * * Wcześniej zamiennie z 'class variable' używałem pojęcia 'global variable', ale jak doczytałem w Javie de facto nie ma czegoś takiego, * jak zmienne globalne. Nie wgłębiałe...
bojan-wik/SeleniumWithJavaCourse
src/Chapter31_CoreJava2/f_VariablesInJava.java
962
/** * b) Instance variable: * jest to w zasadzie class variables z jedną różnicą - nie ma modifiera static. * Dzięki temu w różnych obiektach tej klasy taka zmienna może mieć przypisane różne wartości. */
block_comment
pl
package Chapter31_CoreJava2; /** * Typy zmiennych w Javie: * a) class variable * b) instance variable * c) local variable * * Wcześniej zamiennie z 'class variable' używałem pojęcia 'global variable', ale jak doczytałem w Javie de facto nie ma czegoś takiego, * jak zmienne globalne. Nie wgłębiałe...
8282_3
package Chapter31_CoreJava2; /** * Typy zmiennych w Javie: * a) class variable * b) instance variable * c) local variable * * Wcześniej zamiennie z 'class variable' używałem pojęcia 'global variable', ale jak doczytałem w Javie de facto nie ma czegoś takiego, * jak zmienne globalne. Nie wgłębiałe...
bojan-wik/SeleniumWithJavaCourse
src/Chapter31_CoreJava2/f_VariablesInJava.java
962
/** * c) Local variable: * zmienna zdefiniowana wewnątrz danej metody/konstruktora/bloku (tutaj wewn. konstruktora) */
block_comment
pl
package Chapter31_CoreJava2; /** * Typy zmiennych w Javie: * a) class variable * b) instance variable * c) local variable * * Wcześniej zamiennie z 'class variable' używałem pojęcia 'global variable', ale jak doczytałem w Javie de facto nie ma czegoś takiego, * jak zmienne globalne. Nie wgłębiałe...
8282_4
package Chapter31_CoreJava2; /** * Typy zmiennych w Javie: * a) class variable * b) instance variable * c) local variable * * Wcześniej zamiennie z 'class variable' używałem pojęcia 'global variable', ale jak doczytałem w Javie de facto nie ma czegoś takiego, * jak zmienne globalne. Nie wgłębiałe...
bojan-wik/SeleniumWithJavaCourse
src/Chapter31_CoreJava2/f_VariablesInJava.java
962
/** * ad a) Class variable - zmienna taka nie jest przypisana do żadnego konkretnego obiektu klasy. * Nie muszę tworzyć obiektu klasy żeby ją wywołać. */
block_comment
pl
package Chapter31_CoreJava2; /** * Typy zmiennych w Javie: * a) class variable * b) instance variable * c) local variable * * Wcześniej zamiennie z 'class variable' używałem pojęcia 'global variable', ale jak doczytałem w Javie de facto nie ma czegoś takiego, * jak zmienne globalne. Nie wgłębiałe...
8282_5
package Chapter31_CoreJava2; /** * Typy zmiennych w Javie: * a) class variable * b) instance variable * c) local variable * * Wcześniej zamiennie z 'class variable' używałem pojęcia 'global variable', ale jak doczytałem w Javie de facto nie ma czegoś takiego, * jak zmienne globalne. Nie wgłębiałe...
bojan-wik/SeleniumWithJavaCourse
src/Chapter31_CoreJava2/f_VariablesInJava.java
962
/** * ad b) Instance variable - w różnych obiektach tej klasy taka zmienna może mieć przypisane różne wartości. * Muszę stworzyć obiekt klasy żeby ją wywołać. */
block_comment
pl
package Chapter31_CoreJava2; /** * Typy zmiennych w Javie: * a) class variable * b) instance variable * c) local variable * * Wcześniej zamiennie z 'class variable' używałem pojęcia 'global variable', ale jak doczytałem w Javie de facto nie ma czegoś takiego, * jak zmienne globalne. Nie wgłębiałe...
8282_6
package Chapter31_CoreJava2; /** * Typy zmiennych w Javie: * a) class variable * b) instance variable * c) local variable * * Wcześniej zamiennie z 'class variable' używałem pojęcia 'global variable', ale jak doczytałem w Javie de facto nie ma czegoś takiego, * jak zmienne globalne. Nie wgłębiałe...
bojan-wik/SeleniumWithJavaCourse
src/Chapter31_CoreJava2/f_VariablesInJava.java
962
/** * Wywołuję wcześniej stworzoną metodę display(), która wyświetla mi wszystkie zmienne. * Piersza zmienna 'race' jako class variable, jest współdzielona przez oba obiekty i jest od nich niezależna. * Pozostałe dwie zmienne 'name' i 'country' zostały zdefiniowane na etapie tworzenia obiektó...
block_comment
pl
package Chapter31_CoreJava2; /** * Typy zmiennych w Javie: * a) class variable * b) instance variable * c) local variable * * Wcześniej zamiennie z 'class variable' używałem pojęcia 'global variable', ale jak doczytałem w Javie de facto nie ma czegoś takiego, * jak zmienne globalne. Nie wgłębiałe...
8283_0
package games; import java.util.*; public class NewQuiz { private static final double SCORE_GOOD_ENOUGH = 60.0; private Random random = new Random(); private Scanner scanner = new Scanner(System.in); private Map<String, Map<String, String>> dictionaries = new HashMap<>(); private static final int ...
Bielwa11/quiz
src/games/NewQuiz.java
1,984
//nic sie nie dzieje, highscore zostaje taki sam.
line_comment
pl
package games; import java.util.*; public class NewQuiz { private static final double SCORE_GOOD_ENOUGH = 60.0; private Random random = new Random(); private Scanner scanner = new Scanner(System.in); private Map<String, Map<String, String>> dictionaries = new HashMap<>(); private static final int ...
8283_1
package games; import java.util.*; public class NewQuiz { private static final double SCORE_GOOD_ENOUGH = 60.0; private Random random = new Random(); private Scanner scanner = new Scanner(System.in); private Map<String, Map<String, String>> dictionaries = new HashMap<>(); private static final int ...
Bielwa11/quiz
src/games/NewQuiz.java
1,984
/* przyklad komentarza */
block_comment
pl
package games; import java.util.*; public class NewQuiz { private static final double SCORE_GOOD_ENOUGH = 60.0; private Random random = new Random(); private Scanner scanner = new Scanner(System.in); private Map<String, Map<String, String>> dictionaries = new HashMap<>(); private static final int ...
8284_3
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package pl.com.softproject.utils.xml; import jakarta.xml.bind.JAXBContext; import jakarta.xml.bind.JAXBException; import jakarta.xml.bind.util.JAXBSource; import org.xml.sax.SAXException; import org.xml.sax.SAXParseExce...
alapierre/java-commons
xml-utils/src/main/java/pl/com/softproject/utils/xml/JAXBXMLValidator.java
849
/** * Validuje XML względem XML Schemy, lokalizacja schemy b�dzie pobrana z atrybutu schemaLocation z dokumentu XML * Metoda z założenia, nigdy nie rzuca wyjątkami. Gdy walidacje nie przejdzie zwraca po prostu "false". * @param <T> * @param jaxbXmlObject - dokument który powstał w wyniku wywołania m...
block_comment
pl
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package pl.com.softproject.utils.xml; import jakarta.xml.bind.JAXBContext; import jakarta.xml.bind.JAXBException; import jakarta.xml.bind.util.JAXBSource; import org.xml.sax.SAXException; import org.xml.sax.SAXParseExce...
8288_2
package pl.my.library.datbase.models; import com.j256.ormlite.field.DataType; import com.j256.ormlite.field.DatabaseField; import com.j256.ormlite.table.DatabaseTable; import java.util.Date; @DatabaseTable(tableName = "BOOKS") public class Book implements BaseModel { public static final String AUTHOR_ID = "AU...
LukasMod/ElementaryJavaFX_LibraryProject
src/main/java/pl/my/library/datbase/models/Book.java
1,165
//utworzy się kolumna z nazwą author_id. Lepiej nazwąć jawną naze, aby uniknąć pomyłek
line_comment
pl
package pl.my.library.datbase.models; import com.j256.ormlite.field.DataType; import com.j256.ormlite.field.DatabaseField; import com.j256.ormlite.table.DatabaseTable; import java.util.Date; @DatabaseTable(tableName = "BOOKS") public class Book implements BaseModel { public static final String AUTHOR_ID = "AU...
8288_3
package pl.my.library.datbase.models; import com.j256.ormlite.field.DataType; import com.j256.ormlite.field.DatabaseField; import com.j256.ormlite.table.DatabaseTable; import java.util.Date; @DatabaseTable(tableName = "BOOKS") public class Book implements BaseModel { public static final String AUTHOR_ID = "AU...
LukasMod/ElementaryJavaFX_LibraryProject
src/main/java/pl/my/library/datbase/models/Book.java
1,165
//foreignAutoCreate - pomagają w obsłudze
line_comment
pl
package pl.my.library.datbase.models; import com.j256.ormlite.field.DataType; import com.j256.ormlite.field.DatabaseField; import com.j256.ormlite.table.DatabaseTable; import java.util.Date; @DatabaseTable(tableName = "BOOKS") public class Book implements BaseModel { public static final String AUTHOR_ID = "AU...
8288_4
package pl.my.library.datbase.models; import com.j256.ormlite.field.DataType; import com.j256.ormlite.field.DatabaseField; import com.j256.ormlite.table.DatabaseTable; import java.util.Date; @DatabaseTable(tableName = "BOOKS") public class Book implements BaseModel { public static final String AUTHOR_ID = "AU...
LukasMod/ElementaryJavaFX_LibraryProject
src/main/java/pl/my/library/datbase/models/Book.java
1,165
//foreignAutoRefresh - pomagają w obsłudze
line_comment
pl
package pl.my.library.datbase.models; import com.j256.ormlite.field.DataType; import com.j256.ormlite.field.DatabaseField; import com.j256.ormlite.table.DatabaseTable; import java.util.Date; @DatabaseTable(tableName = "BOOKS") public class Book implements BaseModel { public static final String AUTHOR_ID = "AU...
8288_5
package pl.my.library.datbase.models; import com.j256.ormlite.field.DataType; import com.j256.ormlite.field.DatabaseField; import com.j256.ormlite.table.DatabaseTable; import java.util.Date; @DatabaseTable(tableName = "BOOKS") public class Book implements BaseModel { public static final String AUTHOR_ID = "AU...
LukasMod/ElementaryJavaFX_LibraryProject
src/main/java/pl/my/library/datbase/models/Book.java
1,165
//nigdy nie może być nullem
line_comment
pl
package pl.my.library.datbase.models; import com.j256.ormlite.field.DataType; import com.j256.ormlite.field.DatabaseField; import com.j256.ormlite.table.DatabaseTable; import java.util.Date; @DatabaseTable(tableName = "BOOKS") public class Book implements BaseModel { public static final String AUTHOR_ID = "AU...
8288_7
package pl.my.library.datbase.models; import com.j256.ormlite.field.DataType; import com.j256.ormlite.field.DatabaseField; import com.j256.ormlite.table.DatabaseTable; import java.util.Date; @DatabaseTable(tableName = "BOOKS") public class Book implements BaseModel { public static final String AUTHOR_ID = "AU...
LukasMod/ElementaryJavaFX_LibraryProject
src/main/java/pl/my/library/datbase/models/Book.java
1,165
//unique = true, zawsze unikalne elementy
line_comment
pl
package pl.my.library.datbase.models; import com.j256.ormlite.field.DataType; import com.j256.ormlite.field.DatabaseField; import com.j256.ormlite.table.DatabaseTable; import java.util.Date; @DatabaseTable(tableName = "BOOKS") public class Book implements BaseModel { public static final String AUTHOR_ID = "AU...
8288_8
package pl.my.library.datbase.models; import com.j256.ormlite.field.DataType; import com.j256.ormlite.field.DatabaseField; import com.j256.ormlite.table.DatabaseTable; import java.util.Date; @DatabaseTable(tableName = "BOOKS") public class Book implements BaseModel { public static final String AUTHOR_ID = "AU...
LukasMod/ElementaryJavaFX_LibraryProject
src/main/java/pl/my/library/datbase/models/Book.java
1,165
//dla Stringów powyżej 256 znaków
line_comment
pl
package pl.my.library.datbase.models; import com.j256.ormlite.field.DataType; import com.j256.ormlite.field.DatabaseField; import com.j256.ormlite.table.DatabaseTable; import java.util.Date; @DatabaseTable(tableName = "BOOKS") public class Book implements BaseModel { public static final String AUTHOR_ID = "AU...
8288_9
package pl.my.library.datbase.models; import com.j256.ormlite.field.DataType; import com.j256.ormlite.field.DatabaseField; import com.j256.ormlite.table.DatabaseTable; import java.util.Date; @DatabaseTable(tableName = "BOOKS") public class Book implements BaseModel { public static final String AUTHOR_ID = "AU...
LukasMod/ElementaryJavaFX_LibraryProject
src/main/java/pl/my/library/datbase/models/Book.java
1,165
//maksymalna ilość znaków (nie działa np. na sqlite, ale na h2 działa)
line_comment
pl
package pl.my.library.datbase.models; import com.j256.ormlite.field.DataType; import com.j256.ormlite.field.DatabaseField; import com.j256.ormlite.table.DatabaseTable; import java.util.Date; @DatabaseTable(tableName = "BOOKS") public class Book implements BaseModel { public static final String AUTHOR_ID = "AU...
8289_0
package bajtTrade.karieraRobotnik; import bajtTrade.przedmiotyOferty.OfertaSpekulant; import java.util.ArrayList; import java.util.List; public class Konserwatysta extends StrZmianyKariery { @Override public boolean czyZmianaKariery(int dzień) { return false; } @Override ...
szwedkarol/mimuw
PO/BajtTradeSzwed/BajtTrade/src/bajtTrade/karieraRobotnik/Konserwatysta.java
214
// Konserwatysta nigdy nie zmienia kariery, więc ta metoda dla niego nie
line_comment
pl
package bajtTrade.karieraRobotnik; import bajtTrade.przedmiotyOferty.OfertaSpekulant; import java.util.ArrayList; import java.util.List; public class Konserwatysta extends StrZmianyKariery { @Override public boolean czyZmianaKariery(int dzień) { return false; } @Override ...
8289_1
package bajtTrade.karieraRobotnik; import bajtTrade.przedmiotyOferty.OfertaSpekulant; import java.util.ArrayList; import java.util.List; public class Konserwatysta extends StrZmianyKariery { @Override public boolean czyZmianaKariery(int dzień) { return false; } @Override ...
szwedkarol/mimuw
PO/BajtTradeSzwed/BajtTrade/src/bajtTrade/karieraRobotnik/Konserwatysta.java
214
// powinna się nigdy wywołać.
line_comment
pl
package bajtTrade.karieraRobotnik; import bajtTrade.przedmiotyOferty.OfertaSpekulant; import java.util.ArrayList; import java.util.List; public class Konserwatysta extends StrZmianyKariery { @Override public boolean czyZmianaKariery(int dzień) { return false; } @Override ...
8290_1
import javafx.util.Pair; import java.security.KeyPair; import java.util.ArrayList; import java.util.HashMap; import java.util.List; public class Main { public static String zwrocImie (Integer case1) { // Integer case1 = 5; String imie = ""; switch (case1) { case 1: imie = "Kasi...
MagdaBial/TestPoz05PodstawyNowy
src/Main.java
1,880
// definicja typu (String), nazwa zmiennej (napis1) + opcjonalnie przydzielenie wartosci
line_comment
pl
import javafx.util.Pair; import java.security.KeyPair; import java.util.ArrayList; import java.util.HashMap; import java.util.List; public class Main { public static String zwrocImie (Integer case1) { // Integer case1 = 5; String imie = ""; switch (case1) { case 1: imie = "Kasi...
8290_2
import javafx.util.Pair; import java.security.KeyPair; import java.util.ArrayList; import java.util.HashMap; import java.util.List; public class Main { public static String zwrocImie (Integer case1) { // Integer case1 = 5; String imie = ""; switch (case1) { case 1: imie = "Kasi...
MagdaBial/TestPoz05PodstawyNowy
src/Main.java
1,880
// Boolean - typ logiczny, zwraca true lub false
line_comment
pl
import javafx.util.Pair; import java.security.KeyPair; import java.util.ArrayList; import java.util.HashMap; import java.util.List; public class Main { public static String zwrocImie (Integer case1) { // Integer case1 = 5; String imie = ""; switch (case1) { case 1: imie = "Kasi...
8290_3
import javafx.util.Pair; import java.security.KeyPair; import java.util.ArrayList; import java.util.HashMap; import java.util.List; public class Main { public static String zwrocImie (Integer case1) { // Integer case1 = 5; String imie = ""; switch (case1) { case 1: imie = "Kasi...
MagdaBial/TestPoz05PodstawyNowy
src/Main.java
1,880
//Integer - typ numeryczny liczb calkowitych, Integer to klasa wrapujaca typ prsty ins (daje metody ulatwiajace prece z danym typem)
line_comment
pl
import javafx.util.Pair; import java.security.KeyPair; import java.util.ArrayList; import java.util.HashMap; import java.util.List; public class Main { public static String zwrocImie (Integer case1) { // Integer case1 = 5; String imie = ""; switch (case1) { case 1: imie = "Kasi...
8290_4
import javafx.util.Pair; import java.security.KeyPair; import java.util.ArrayList; import java.util.HashMap; import java.util.List; public class Main { public static String zwrocImie (Integer case1) { // Integer case1 = 5; String imie = ""; switch (case1) { case 1: imie = "Kasi...
MagdaBial/TestPoz05PodstawyNowy
src/Main.java
1,880
// Long - liczba całkowita, ale duzo dluzsza
line_comment
pl
import javafx.util.Pair; import java.security.KeyPair; import java.util.ArrayList; import java.util.HashMap; import java.util.List; public class Main { public static String zwrocImie (Integer case1) { // Integer case1 = 5; String imie = ""; switch (case1) { case 1: imie = "Kasi...
8290_5
import javafx.util.Pair; import java.security.KeyPair; import java.util.ArrayList; import java.util.HashMap; import java.util.List; public class Main { public static String zwrocImie (Integer case1) { // Integer case1 = 5; String imie = ""; switch (case1) { case 1: imie = "Kasi...
MagdaBial/TestPoz05PodstawyNowy
src/Main.java
1,880
//Float - typ numeryczny zmiennoprzecinkowy
line_comment
pl
import javafx.util.Pair; import java.security.KeyPair; import java.util.ArrayList; import java.util.HashMap; import java.util.List; public class Main { public static String zwrocImie (Integer case1) { // Integer case1 = 5; String imie = ""; switch (case1) { case 1: imie = "Kasi...
8290_6
import javafx.util.Pair; import java.security.KeyPair; import java.util.ArrayList; import java.util.HashMap; import java.util.List; public class Main { public static String zwrocImie (Integer case1) { // Integer case1 = 5; String imie = ""; switch (case1) { case 1: imie = "Kasi...
MagdaBial/TestPoz05PodstawyNowy
src/Main.java
1,880
//Double - zmiennoprzecinkowa, inny zakres, większy zakres
line_comment
pl
import javafx.util.Pair; import java.security.KeyPair; import java.util.ArrayList; import java.util.HashMap; import java.util.List; public class Main { public static String zwrocImie (Integer case1) { // Integer case1 = 5; String imie = ""; switch (case1) { case 1: imie = "Kasi...
8290_7
import javafx.util.Pair; import java.security.KeyPair; import java.util.ArrayList; import java.util.HashMap; import java.util.List; public class Main { public static String zwrocImie (Integer case1) { // Integer case1 = 5; String imie = ""; switch (case1) { case 1: imie = "Kasi...
MagdaBial/TestPoz05PodstawyNowy
src/Main.java
1,880
//Lista = zbior elementow w indeksie
line_comment
pl
import javafx.util.Pair; import java.security.KeyPair; import java.util.ArrayList; import java.util.HashMap; import java.util.List; public class Main { public static String zwrocImie (Integer case1) { // Integer case1 = 5; String imie = ""; switch (case1) { case 1: imie = "Kasi...
8290_8
import javafx.util.Pair; import java.security.KeyPair; import java.util.ArrayList; import java.util.HashMap; import java.util.List; public class Main { public static String zwrocImie (Integer case1) { // Integer case1 = 5; String imie = ""; switch (case1) { case 1: imie = "Kasi...
MagdaBial/TestPoz05PodstawyNowy
src/Main.java
1,880
//HashMap - slownik trzymający pary klucz-wartość
line_comment
pl
import javafx.util.Pair; import java.security.KeyPair; import java.util.ArrayList; import java.util.HashMap; import java.util.List; public class Main { public static String zwrocImie (Integer case1) { // Integer case1 = 5; String imie = ""; switch (case1) { case 1: imie = "Kasi...
8290_9
import javafx.util.Pair; import java.security.KeyPair; import java.util.ArrayList; import java.util.HashMap; import java.util.List; public class Main { public static String zwrocImie (Integer case1) { // Integer case1 = 5; String imie = ""; switch (case1) { case 1: imie = "Kasi...
MagdaBial/TestPoz05PodstawyNowy
src/Main.java
1,880
//Pair - slownik tylko jedna para klucz wartosc
line_comment
pl
import javafx.util.Pair; import java.security.KeyPair; import java.util.ArrayList; import java.util.HashMap; import java.util.List; public class Main { public static String zwrocImie (Integer case1) { // Integer case1 = 5; String imie = ""; switch (case1) { case 1: imie = "Kasi...
8290_10
import javafx.util.Pair; import java.security.KeyPair; import java.util.ArrayList; import java.util.HashMap; import java.util.List; public class Main { public static String zwrocImie (Integer case1) { // Integer case1 = 5; String imie = ""; switch (case1) { case 1: imie = "Kasi...
MagdaBial/TestPoz05PodstawyNowy
src/Main.java
1,880
//Warunek początkowy; warunek końcowy; modyfikator licznika
line_comment
pl
import javafx.util.Pair; import java.security.KeyPair; import java.util.ArrayList; import java.util.HashMap; import java.util.List; public class Main { public static String zwrocImie (Integer case1) { // Integer case1 = 5; String imie = ""; switch (case1) { case 1: imie = "Kasi...
8290_11
import javafx.util.Pair; import java.security.KeyPair; import java.util.ArrayList; import java.util.HashMap; import java.util.List; public class Main { public static String zwrocImie (Integer case1) { // Integer case1 = 5; String imie = ""; switch (case1) { case 1: imie = "Kasi...
MagdaBial/TestPoz05PodstawyNowy
src/Main.java
1,880
//warunek końcowy (wartość końcowa licznika;
line_comment
pl
import javafx.util.Pair; import java.security.KeyPair; import java.util.ArrayList; import java.util.HashMap; import java.util.List; public class Main { public static String zwrocImie (Integer case1) { // Integer case1 = 5; String imie = ""; switch (case1) { case 1: imie = "Kasi...
8290_12
import javafx.util.Pair; import java.security.KeyPair; import java.util.ArrayList; import java.util.HashMap; import java.util.List; public class Main { public static String zwrocImie (Integer case1) { // Integer case1 = 5; String imie = ""; switch (case1) { case 1: imie = "Kasi...
MagdaBial/TestPoz05PodstawyNowy
src/Main.java
1,880
//modyfikator licznika i++ oznacza, że i będzie większe o 1 po przejściu pętli
line_comment
pl
import javafx.util.Pair; import java.security.KeyPair; import java.util.ArrayList; import java.util.HashMap; import java.util.List; public class Main { public static String zwrocImie (Integer case1) { // Integer case1 = 5; String imie = ""; switch (case1) { case 1: imie = "Kasi...
8290_13
import javafx.util.Pair; import java.security.KeyPair; import java.util.ArrayList; import java.util.HashMap; import java.util.List; public class Main { public static String zwrocImie (Integer case1) { // Integer case1 = 5; String imie = ""; switch (case1) { case 1: imie = "Kasi...
MagdaBial/TestPoz05PodstawyNowy
src/Main.java
1,880
//Break to specjalne slowo, które pozwala zakończyć działanie petli
line_comment
pl
import javafx.util.Pair; import java.security.KeyPair; import java.util.ArrayList; import java.util.HashMap; import java.util.List; public class Main { public static String zwrocImie (Integer case1) { // Integer case1 = 5; String imie = ""; switch (case1) { case 1: imie = "Kasi...
8290_14
import javafx.util.Pair; import java.security.KeyPair; import java.util.ArrayList; import java.util.HashMap; import java.util.List; public class Main { public static String zwrocImie (Integer case1) { // Integer case1 = 5; String imie = ""; switch (case1) { case 1: imie = "Kasi...
MagdaBial/TestPoz05PodstawyNowy
src/Main.java
1,880
//Continue pozwala przejść do kolejnej interakcji z pominięciem kodu pod tym słówkiem
line_comment
pl
import javafx.util.Pair; import java.security.KeyPair; import java.util.ArrayList; import java.util.HashMap; import java.util.List; public class Main { public static String zwrocImie (Integer case1) { // Integer case1 = 5; String imie = ""; switch (case1) { case 1: imie = "Kasi...
8290_15
import javafx.util.Pair; import java.security.KeyPair; import java.util.ArrayList; import java.util.HashMap; import java.util.List; public class Main { public static String zwrocImie (Integer case1) { // Integer case1 = 5; String imie = ""; switch (case1) { case 1: imie = "Kasi...
MagdaBial/TestPoz05PodstawyNowy
src/Main.java
1,880
//Petla do while - zawsze wykona się chociaż jedna interakcja
line_comment
pl
import javafx.util.Pair; import java.security.KeyPair; import java.util.ArrayList; import java.util.HashMap; import java.util.List; public class Main { public static String zwrocImie (Integer case1) { // Integer case1 = 5; String imie = ""; switch (case1) { case 1: imie = "Kasi...
8290_20
import javafx.util.Pair; import java.security.KeyPair; import java.util.ArrayList; import java.util.HashMap; import java.util.List; public class Main { public static String zwrocImie (Integer case1) { // Integer case1 = 5; String imie = ""; switch (case1) { case 1: imie = "Kasi...
MagdaBial/TestPoz05PodstawyNowy
src/Main.java
1,880
//Instrukcja warunkowa switch case, na koncu każdego swich case powinno się znaleźć słówko break
line_comment
pl
import javafx.util.Pair; import java.security.KeyPair; import java.util.ArrayList; import java.util.HashMap; import java.util.List; public class Main { public static String zwrocImie (Integer case1) { // Integer case1 = 5; String imie = ""; switch (case1) { case 1: imie = "Kasi...
8291_0
package pl.north93.northplatform.itemshop.controller.handlers; import java.util.Map; import java.util.concurrent.TimeUnit; import lombok.extern.slf4j.Slf4j; import pl.north93.northplatform.api.global.component.annotations.bean.Inject; import pl.north93.northplatform.api.global.network.players.IPlayersManager; import ...
northpl93/NorthPlatform
Sources/ItemShop/src/main/java/pl/north93/northplatform/itemshop/controller/handlers/GroupDataHandler.java
788
// jesli poprzednia grupa nigdy nie wygasa, lub zmieniamy grupe to odliczamy czas od teraz
line_comment
pl
package pl.north93.northplatform.itemshop.controller.handlers; import java.util.Map; import java.util.concurrent.TimeUnit; import lombok.extern.slf4j.Slf4j; import pl.north93.northplatform.api.global.component.annotations.bean.Inject; import pl.north93.northplatform.api.global.network.players.IPlayersManager; import ...
8291_1
package pl.north93.northplatform.itemshop.controller.handlers; import java.util.Map; import java.util.concurrent.TimeUnit; import lombok.extern.slf4j.Slf4j; import pl.north93.northplatform.api.global.component.annotations.bean.Inject; import pl.north93.northplatform.api.global.network.players.IPlayersManager; import ...
northpl93/NorthPlatform
Sources/ItemShop/src/main/java/pl/north93/northplatform/itemshop/controller/handlers/GroupDataHandler.java
788
// wydluzamy czas posiadania tej samej grupy
line_comment
pl
package pl.north93.northplatform.itemshop.controller.handlers; import java.util.Map; import java.util.concurrent.TimeUnit; import lombok.extern.slf4j.Slf4j; import pl.north93.northplatform.api.global.component.annotations.bean.Inject; import pl.north93.northplatform.api.global.network.players.IPlayersManager; import ...
8292_1
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
slawomirmarczynski/java
calculator/src/calculator/Expression.java
2,614
/** * Klasa, której obiekty mogą reprezentować wyrażenie rozumiane jako dwie liczby * rozdzielone operatorem. Uwaga: jest bardzo uproszczona, aby być w pełni * użyteczna powinna być znacznie bardziej skomplikowana. * * @author Sławomir Marczyński */
block_comment
pl
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
8292_3
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
slawomirmarczynski/java
calculator/src/calculator/Expression.java
2,614
// Private bo są tylko "do użytku wewnętrznego" przez klasę Expression
line_comment
pl
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
8292_4
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
slawomirmarczynski/java
calculator/src/calculator/Expression.java
2,614
// i dlatego celowo zrobiliśmy je niewidocznymi z zewnątrz. Mogłoby się
line_comment
pl
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
8292_5
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
slawomirmarczynski/java
calculator/src/calculator/Expression.java
2,614
// wydawać że to złośliwość wobec programistów piszących inne fragmenty
line_comment
pl
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
8292_6
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
slawomirmarczynski/java
calculator/src/calculator/Expression.java
2,614
// programu... nie mogą zajrzeć do ani do a, ani do b, ani do operand.
line_comment
pl
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
8292_7
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
slawomirmarczynski/java
calculator/src/calculator/Expression.java
2,614
// W rzeczywistości jest to udogodnienie - bo jeżeli w ten sposób
line_comment
pl
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
8292_8
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
slawomirmarczynski/java
calculator/src/calculator/Expression.java
2,614
// określiliśmy a, b i operand jako "szczegóły jakie są nieistotne na
line_comment
pl
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
8292_9
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
slawomirmarczynski/java
calculator/src/calculator/Expression.java
2,614
// zewnąrz klasy" to: uwalniamy innych programistów od myślenia co oznaczają
line_comment
pl
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
8292_10
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
slawomirmarczynski/java
calculator/src/calculator/Expression.java
2,614
// a, b i operand; dajemy sobie szansę na zmianę nazw, albo nawet usunięcie
line_comment
pl
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
8292_11
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
slawomirmarczynski/java
calculator/src/calculator/Expression.java
2,614
// tych zmiennych z programu bez konsekwencji mogących powstać w innych
line_comment
pl
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
8292_12
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
slawomirmarczynski/java
calculator/src/calculator/Expression.java
2,614
// Dlaczego final? Bo wartości te pozostają niezmienne (po ustaleniu ich
line_comment
pl
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
8292_13
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
slawomirmarczynski/java
calculator/src/calculator/Expression.java
2,614
// wartości w konstruktorze) i choć możnaby final pominąć, to final jest
line_comment
pl
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
8292_14
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
slawomirmarczynski/java
calculator/src/calculator/Expression.java
2,614
// przyjętym sposobem zwrócenia uwagi na ten fakt.
line_comment
pl
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
8292_15
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
slawomirmarczynski/java
calculator/src/calculator/Expression.java
2,614
// Prywatny konstruktor (z parametrami) klasy Expression. Jeżeli nie byłoby
line_comment
pl
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
8292_16
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
slawomirmarczynski/java
calculator/src/calculator/Expression.java
2,614
// żadnego konstruktora to automatycznie jest przyjmowane że istnieje
line_comment
pl
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
8292_17
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
slawomirmarczynski/java
calculator/src/calculator/Expression.java
2,614
// publiczny bezparametrowy konstruktor domyślny. Czyli po pierwsze
line_comment
pl
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
8292_18
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
slawomirmarczynski/java
calculator/src/calculator/Expression.java
2,614
// blokujemy możliwość tworzenia nowych wyrażeń jako new Expression().
line_comment
pl
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
8292_19
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
slawomirmarczynski/java
calculator/src/calculator/Expression.java
2,614
// Po drugie - bo konstruktor jest prywatny - nie będzie możliwości przez
line_comment
pl
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
8292_20
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
slawomirmarczynski/java
calculator/src/calculator/Expression.java
2,614
// przypadek wywołać tego konstruktora.
line_comment
pl
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
8292_21
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
slawomirmarczynski/java
calculator/src/calculator/Expression.java
2,614
// I teraz ktoś dociekliwy mógłby zapytać: w jaki sposób będą tworzone
line_comment
pl
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
8292_22
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
slawomirmarczynski/java
calculator/src/calculator/Expression.java
2,614
// obiekty klasy Expression skoro nie ma żadnego publicznego konstruktora?
line_comment
pl
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
8292_23
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
slawomirmarczynski/java
calculator/src/calculator/Expression.java
2,614
// Rozwiązeniem jest użycie statycznej metody create jako fabryki obiektów.
line_comment
pl
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
8292_24
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
slawomirmarczynski/java
calculator/src/calculator/Expression.java
2,614
// Jeszcze jedna ciekawostka - nie jest złym pomysłem dokumentowanie
line_comment
pl
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
8292_25
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
slawomirmarczynski/java
calculator/src/calculator/Expression.java
2,614
// składowych prywatnych - ale można tego nie robić, bo i tak nie są one
line_comment
pl
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
8292_26
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
slawomirmarczynski/java
calculator/src/calculator/Expression.java
2,614
// częścią interfejsu klasy, czyli i tak nikt "z zewnątrz" ich nie
line_comment
pl
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
8292_27
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
slawomirmarczynski/java
calculator/src/calculator/Expression.java
2,614
// potrzebuje. I dlatego tym razem nie ma komentarza "z gwiazdkami" /** */
line_comment
pl
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
8292_28
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
slawomirmarczynski/java
calculator/src/calculator/Expression.java
2,614
// Mamy póla (dostępnye wewnątrz klasy zmienne) i nazwy parametrów.
line_comment
pl
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
8292_29
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
slawomirmarczynski/java
calculator/src/calculator/Expression.java
2,614
// Czy mogą one być jednakowe? Tak. Ale aby je rozróżnić trzeba dopisać
line_comment
pl
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
8292_30
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
slawomirmarczynski/java
calculator/src/calculator/Expression.java
2,614
// przed nazwami pól słowo this. W ten sposób instrukcją this.a = a;
line_comment
pl
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
8292_31
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
slawomirmarczynski/java
calculator/src/calculator/Expression.java
2,614
// zapisujemy w polu a wartość parametru a, przy tym nie potrzebujemy
line_comment
pl
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
8292_32
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
slawomirmarczynski/java
calculator/src/calculator/Expression.java
2,614
// sztucznie zmieniać nazw.
line_comment
pl
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
8292_33
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
slawomirmarczynski/java
calculator/src/calculator/Expression.java
2,614
/** * Fabryka obiektów Expression. * * @param string łańcuch znaków zawierający wyrażenie * @return wyrażenie jako obiekt Expression */
block_comment
pl
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
8292_34
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
slawomirmarczynski/java
calculator/src/calculator/Expression.java
2,614
// Jeżeli popatrzymy na Calculator.java to znajdziemy tam obiekt
line_comment
pl
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
8292_35
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
slawomirmarczynski/java
calculator/src/calculator/Expression.java
2,614
// klasy Scanner nazywający się scanner. Co absolutnie nam nie
line_comment
pl
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
8292_36
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
slawomirmarczynski/java
calculator/src/calculator/Expression.java
2,614
// przeszkadza aby tu, czyli w innym miejscu programu, utworzyć sobie
line_comment
pl
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
8292_37
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
slawomirmarczynski/java
calculator/src/calculator/Expression.java
2,614
// inny obiekt klasy Scanner. W jednym programie może być wiele obiektów
line_comment
pl
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
8292_38
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
slawomirmarczynski/java
calculator/src/calculator/Expression.java
2,614
// tego samego typu, a każdy z nich zachowuje odrębność i może robić
line_comment
pl
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
8292_39
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
slawomirmarczynski/java
calculator/src/calculator/Expression.java
2,614
// coś innego, choć zgodnie ze specjalizacją klasy. Tym razem obiekt
line_comment
pl
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
8292_40
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
slawomirmarczynski/java
calculator/src/calculator/Expression.java
2,614
// nie nazywa się scanner (choć mógłby), bo raczej trudno coś pomylić
line_comment
pl
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
8292_41
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
slawomirmarczynski/java
calculator/src/calculator/Expression.java
2,614
// w dwóch linijkach. Krótka nazwa jest wystarczająca.
line_comment
pl
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
8292_42
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
slawomirmarczynski/java
calculator/src/calculator/Expression.java
2,614
// W zasadzie to już było return, więc formalnie nigdy tu nie będziemy.
line_comment
pl
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
8292_43
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
slawomirmarczynski/java
calculator/src/calculator/Expression.java
2,614
// Ale zastanówmy się co stanie się po return? Zmienna sc jest zmienną
line_comment
pl
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
8292_44
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
slawomirmarczynski/java
calculator/src/calculator/Expression.java
2,614
// lokalną, więc przestanie istnieć. Skoro nie istnieje sc to obiekt
line_comment
pl
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
8292_45
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
slawomirmarczynski/java
calculator/src/calculator/Expression.java
2,614
// który był przechowywany za pomocą sc przestanie być potrzebny.
line_comment
pl
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
8292_46
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
slawomirmarczynski/java
calculator/src/calculator/Expression.java
2,614
// W językach takich jak C++ taki obiekt trzeba usunąć "ręcznie"
line_comment
pl
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
8292_47
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
slawomirmarczynski/java
calculator/src/calculator/Expression.java
2,614
// z pamięci. W Javie takie obiekty są automatycznie przeznaczane do
line_comment
pl
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
8292_48
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
slawomirmarczynski/java
calculator/src/calculator/Expression.java
2,614
// "odśmiecenia", czyli umieszczane w spisie niepotrzebnych nieużytków.
line_comment
pl
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
8292_49
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
slawomirmarczynski/java
calculator/src/calculator/Expression.java
2,614
// Od czasu do czasu aktywowany jest mechanizm tzw. śmieciarki, a wtedy
line_comment
pl
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
8292_50
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
slawomirmarczynski/java
calculator/src/calculator/Expression.java
2,614
// te obiekty które mają być usunięte są usuwane. Dowcip w tym że nie
line_comment
pl
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
8292_51
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
slawomirmarczynski/java
calculator/src/calculator/Expression.java
2,614
// mamy pewności kiedy się to stanie, bo cały proces odśmiecania jest
line_comment
pl
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
8292_52
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
slawomirmarczynski/java
calculator/src/calculator/Expression.java
2,614
// automatyczny i nie potrzebuje (zwykle) dodatkowej obsługi. Tak jest
line_comment
pl
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
8292_53
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
slawomirmarczynski/java
calculator/src/calculator/Expression.java
2,614
// wygodnie. Skutkiem tego jest niemożliwość używania tzw. destruktorów
line_comment
pl
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
8292_54
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
slawomirmarczynski/java
calculator/src/calculator/Expression.java
2,614
// w Javie. W Javie nie ma destruktorów takich jakie są w C++.
line_comment
pl
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
8292_55
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
slawomirmarczynski/java
calculator/src/calculator/Expression.java
2,614
/** * Przedstawia wyrażenie, jako łańcuch znaków, w postaci czytelnej dla * człowieka. * * @return łańcuch znaków, taki jak np. "1+2" */
block_comment
pl
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
8292_56
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
slawomirmarczynski/java
calculator/src/calculator/Expression.java
2,614
/** * Zwraca wartość wyrażenia jako liczbę podwójnej precyzji (czyli double). * @return */
block_comment
pl
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
8292_57
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
slawomirmarczynski/java
calculator/src/calculator/Expression.java
2,614
// Dlaczego na początku wpisujemy do result zero? Moglibyśmy tego nie
line_comment
pl
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
8292_58
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
slawomirmarczynski/java
calculator/src/calculator/Expression.java
2,614
// robić, ale kompilator protestuje wtedy że możliwa jest (z jego punktu
line_comment
pl
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
8292_59
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
slawomirmarczynski/java
calculator/src/calculator/Expression.java
2,614
// widzenia) sytuacja w której zwracana wartość będzie nieokreślona.
line_comment
pl
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
8292_60
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
slawomirmarczynski/java
calculator/src/calculator/Expression.java
2,614
// Trochę problematyczne: bo niby dlaczego gdy wyrażenie nie pasuje
line_comment
pl
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
8292_61
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
slawomirmarczynski/java
calculator/src/calculator/Expression.java
2,614
// do wyrażonych oczekiwań nie potraktować tego jako błędu i zgłosić
line_comment
pl
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
8292_62
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
slawomirmarczynski/java
calculator/src/calculator/Expression.java
2,614
// wyjątek? Zamiast tego problem jest wygaszany, a value() zwróci
line_comment
pl
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
8292_63
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
slawomirmarczynski/java
calculator/src/calculator/Expression.java
2,614
// zero jako wynik.
line_comment
pl
/* * The MIT License * * Copyright 2016, 2021 Sławomir Marczyński. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...