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
3951_17
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/sensors/Sensor.java
2,769
// cokolwiek co jest obiektem. Zakładamy że ma ona przechowywać albo wartość
line_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3951_18
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/sensors/Sensor.java
2,769
// ostatniego aktualnie pomiaru, albo null gdy nic nie jest zmierzone.
line_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3951_19
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/sensors/Sensor.java
2,769
// Zakładamy też że każda subklasa klasy Sensor, każda na swój sposób, musi
line_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3951_20
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/sensors/Sensor.java
2,769
// zadbać aby wartość zmiennej value była aktualizowana. A to oznacza
line_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3951_21
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/sensors/Sensor.java
2,769
// że każda subklasa musi mieć dostęp do value, więc value nie może być
line_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3951_22
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/sensors/Sensor.java
2,769
// prywatna. Z drugiej strony value nie powinno być modyfikowane przez
line_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3951_23
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/sensors/Sensor.java
2,769
// cokolwiek co nie jest sensorem, więc nie może być public. Odpada też
line_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3951_24
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/sensors/Sensor.java
2,769
// "domyślny dostęp" (taki jaki w Javie jest), bo oznacza to że value byłoby
line_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3951_25
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/sensors/Sensor.java
2,769
// niedostępne dla subklas klasy Sensor definiowanych poza pakietem sensors.
line_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3951_26
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/sensors/Sensor.java
2,769
// Dlatego właśnie jest protected. Pech w tym że protected daje dostęp
line_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3951_27
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/sensors/Sensor.java
2,769
// do value wszystkim klasom wewnątrz pakietu sensor.sensors. Dlatego
line_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3951_28
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/sensors/Sensor.java
2,769
// w pakiecie sensor.sensors są tylko obiekty będące sensorami i nic więcej.
line_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3951_29
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/sensors/Sensor.java
2,769
// To nadal nie jest idealne rozwiązanie, bo możliwe jest że ktoś stworzy
line_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3951_30
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/sensors/Sensor.java
2,769
// pakiet o takiej samej nazwie, tj. sensor.sensors, i w ten sposób zepsuje
line_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3951_31
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/sensors/Sensor.java
2,769
// nasze rozwiązanie. Można próbować temu zapobiec, ale to pociąga za sobą
line_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3951_32
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/sensors/Sensor.java
2,769
// dalszą komplikację programu.
line_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3951_33
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/sensors/Sensor.java
2,769
/** * Konstruktor klasy abstrakcyjnej, nie służy do samodzielnego tworzenia * obiektów klasy Sensor (bo ta jest abstrakcyjna), lecz do wywołania gdy * konstruktor subklasy będzie tworzył obiekt konkretny. * * @param name nazwa czujnika. */
block_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3951_34
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/sensors/Sensor.java
2,769
/** * Włączenie czujnika. * * Koncepcja jest taka, że czujnik może (choć nie musi) być wyłączany * i włączany, np. dla oszczędzania energii. Jak to konkretnie będzie * określi się w subklasach. Dlaczego więc turnOn() nie jest metodą * abstrakcyjną? Ułatwiamy sobie życie w przypadku gdyby ...
block_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3951_35
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/sensors/Sensor.java
2,769
/** * Wyłączenie czujnika, patrz też turnOn(). */
block_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3951_36
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/sensors/Sensor.java
2,769
/** * Pomiar tego co ma mierzyć czujnik. Ta metoda jest najbardziej tajemnicza. * * Po prostu absolutnie nie wiemy, w tej chwili, co takiego ma w niej być. * Wiemy tylko co ma robić - zapoczątkować proces pomiaru - pomiaru który * po pewnym czasie się skończy i wtedy zmienna value powinna przy...
block_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3951_37
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/sensors/Sensor.java
2,769
/** * Metoda zwracająca nazwę czujnika. * * Można byłoby wprost użyć name (zadeklarowane jako final), ale wtedy * programiści używający (sub)klasy Sensor mogliby nie skojarzyć że jest * to coś co udostępnia nazwę. Mogliby myśleć że w name trzeba wpisać * nazwę czy jakoś tak. Dlatego chyba...
block_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3951_38
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/sensors/Sensor.java
2,769
/** * Metoda zwracająca wynik pomiaru lub null gdy nie ma (jeszcze) wyniku. * * Dlaczego nie jest final? Mogłaby być. Ale nie chcemy zablokować sobie * możliwości całkowitego nadpisania jej "nową lepszą wersją" realizującą * zupełnie inny pomysł (np. obliczającą średnią z kilku ostatnich pomia...
block_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3953_1
package dzikizachod; /** * * @author squar */ public class Szeryf extends Gracz { public Szeryf() { super(5, new StrategiaSzeryfaDomyslna()); } public Szeryf(Strategia strategia) { super(5, strategia); } @Override public String toString() { return "Szer...
Squar89/Dziki-zachod
src/dzikizachod/Szeryf.java
179
/* Każdy gracz wie kto jest szeryfem, więc ta metoda może być publiczna */
block_comment
pl
package dzikizachod; /** * * @author squar */ public class Szeryf extends Gracz { public Szeryf() { super(5, new StrategiaSzeryfaDomyslna()); } public Szeryf(Strategia strategia) { super(5, strategia); } @Override public String toString() { return "Szer...
3954_0
package com.HighLand; import java.util.Random; public class DiceRoller { //Random random; to jest druga metoda, tutaj deklarujesz zmienne jako global dla całej klasy, więc później metoda utworzona poza DiceRoller (tutaj był to roll) też to widzi, //int number; DiceRoller() { Random random = new R...
sewerynstawiarski/Learning-Programming-Academy
KursYouTube/DiceRoller.java
171
//Random random; to jest druga metoda, tutaj deklarujesz zmienne jako global dla całej klasy, więc później metoda utworzona poza DiceRoller (tutaj był to roll) też to widzi,
line_comment
pl
package com.HighLand; import java.util.Random; public class DiceRoller { //Random random; <SUF> //int number; DiceRoller() { Random random = new Random(); int number = 0; roll(random, number); } void roll(Random random, int number) { number=random.nextInt(6)+1; ...
3955_0
package pl.net.bluesoft.rnd.processtool.ui.process; import static com.vaadin.ui.Label.CONTENT_XHTML; import static org.aperteworkflow.util.vaadin.VaadinExceptionHandler.Util.withErrorHandling; import static pl.net.bluesoft.util.lang.Formats.nvl; import java.io.ByteArrayOutputStream; import java.io.PrintWriter;...
bluesoft-rnd/aperte-workflow-core
core/base-gui/src/main/java/pl/net/bluesoft/rnd/processtool/ui/process/ProcessDataPane.java
7,459
/** * Główny panel widoku zawartości kroku procesu * * @author tlipski@bluesoft.net.pl, mpawlak@bluesoft.net.pl */
block_comment
pl
package pl.net.bluesoft.rnd.processtool.ui.process; import static com.vaadin.ui.Label.CONTENT_XHTML; import static org.aperteworkflow.util.vaadin.VaadinExceptionHandler.Util.withErrorHandling; import static pl.net.bluesoft.util.lang.Formats.nvl; import java.io.ByteArrayOutputStream; import java.io.PrintWriter;...
3955_1
package pl.net.bluesoft.rnd.processtool.ui.process; import static com.vaadin.ui.Label.CONTENT_XHTML; import static org.aperteworkflow.util.vaadin.VaadinExceptionHandler.Util.withErrorHandling; import static pl.net.bluesoft.util.lang.Formats.nvl; import java.io.ByteArrayOutputStream; import java.io.PrintWriter;...
bluesoft-rnd/aperte-workflow-core
core/base-gui/src/main/java/pl/net/bluesoft/rnd/processtool/ui/process/ProcessDataPane.java
7,459
/** Odśwież odśwież widok po zmianie kroku lub procesu */
block_comment
pl
package pl.net.bluesoft.rnd.processtool.ui.process; import static com.vaadin.ui.Label.CONTENT_XHTML; import static org.aperteworkflow.util.vaadin.VaadinExceptionHandler.Util.withErrorHandling; import static pl.net.bluesoft.util.lang.Formats.nvl; import java.io.ByteArrayOutputStream; import java.io.PrintWriter;...
3955_2
package pl.net.bluesoft.rnd.processtool.ui.process; import static com.vaadin.ui.Label.CONTENT_XHTML; import static org.aperteworkflow.util.vaadin.VaadinExceptionHandler.Util.withErrorHandling; import static pl.net.bluesoft.util.lang.Formats.nvl; import java.io.ByteArrayOutputStream; import java.io.PrintWriter;...
bluesoft-rnd/aperte-workflow-core
core/base-gui/src/main/java/pl/net/bluesoft/rnd/processtool/ui/process/ProcessDataPane.java
7,459
/* Jeżeli wstrzymujemy proces glowny, albo zamykamy podproces, sprobuj wrocic * do odpowiedniego procesu */
block_comment
pl
package pl.net.bluesoft.rnd.processtool.ui.process; import static com.vaadin.ui.Label.CONTENT_XHTML; import static org.aperteworkflow.util.vaadin.VaadinExceptionHandler.Util.withErrorHandling; import static pl.net.bluesoft.util.lang.Formats.nvl; import java.io.ByteArrayOutputStream; import java.io.PrintWriter;...
3955_3
package pl.net.bluesoft.rnd.processtool.ui.process; import static com.vaadin.ui.Label.CONTENT_XHTML; import static org.aperteworkflow.util.vaadin.VaadinExceptionHandler.Util.withErrorHandling; import static pl.net.bluesoft.util.lang.Formats.nvl; import java.io.ByteArrayOutputStream; import java.io.PrintWriter;...
bluesoft-rnd/aperte-workflow-core
core/base-gui/src/main/java/pl/net/bluesoft/rnd/processtool/ui/process/ProcessDataPane.java
7,459
/* Nie zmienilismy procesu, tak wiec chowamy ten widok */
block_comment
pl
package pl.net.bluesoft.rnd.processtool.ui.process; import static com.vaadin.ui.Label.CONTENT_XHTML; import static org.aperteworkflow.util.vaadin.VaadinExceptionHandler.Util.withErrorHandling; import static pl.net.bluesoft.util.lang.Formats.nvl; import java.io.ByteArrayOutputStream; import java.io.PrintWriter;...
3955_4
package pl.net.bluesoft.rnd.processtool.ui.process; import static com.vaadin.ui.Label.CONTENT_XHTML; import static org.aperteworkflow.util.vaadin.VaadinExceptionHandler.Util.withErrorHandling; import static pl.net.bluesoft.util.lang.Formats.nvl; import java.io.ByteArrayOutputStream; import java.io.PrintWriter;...
bluesoft-rnd/aperte-workflow-core
core/base-gui/src/main/java/pl/net/bluesoft/rnd/processtool/ui/process/ProcessDataPane.java
7,459
/* Zacznij od nowa z nowym przypisanym taskiem */
block_comment
pl
package pl.net.bluesoft.rnd.processtool.ui.process; import static com.vaadin.ui.Label.CONTENT_XHTML; import static org.aperteworkflow.util.vaadin.VaadinExceptionHandler.Util.withErrorHandling; import static pl.net.bluesoft.util.lang.Formats.nvl; import java.io.ByteArrayOutputStream; import java.io.PrintWriter;...
3955_6
package pl.net.bluesoft.rnd.processtool.ui.process; import static com.vaadin.ui.Label.CONTENT_XHTML; import static org.aperteworkflow.util.vaadin.VaadinExceptionHandler.Util.withErrorHandling; import static pl.net.bluesoft.util.lang.Formats.nvl; import java.io.ByteArrayOutputStream; import java.io.PrintWriter;...
bluesoft-rnd/aperte-workflow-core
core/base-gui/src/main/java/pl/net/bluesoft/rnd/processtool/ui/process/ProcessDataPane.java
7,459
/** Metoda w przypadku wstrzymywania procesu przelacza widok na podproces * lub w przypadku zamkniecia podprocesu, na proces glowny * * @return true jeżeli nastąpiło przełączenie */
block_comment
pl
package pl.net.bluesoft.rnd.processtool.ui.process; import static com.vaadin.ui.Label.CONTENT_XHTML; import static org.aperteworkflow.util.vaadin.VaadinExceptionHandler.Util.withErrorHandling; import static pl.net.bluesoft.util.lang.Formats.nvl; import java.io.ByteArrayOutputStream; import java.io.PrintWriter;...
3955_7
package pl.net.bluesoft.rnd.processtool.ui.process; import static com.vaadin.ui.Label.CONTENT_XHTML; import static org.aperteworkflow.util.vaadin.VaadinExceptionHandler.Util.withErrorHandling; import static pl.net.bluesoft.util.lang.Formats.nvl; import java.io.ByteArrayOutputStream; import java.io.PrintWriter;...
bluesoft-rnd/aperte-workflow-core
core/base-gui/src/main/java/pl/net/bluesoft/rnd/processtool/ui/process/ProcessDataPane.java
7,459
/* Proces główny względem wstrzymywanego procesu */
block_comment
pl
package pl.net.bluesoft.rnd.processtool.ui.process; import static com.vaadin.ui.Label.CONTENT_XHTML; import static org.aperteworkflow.util.vaadin.VaadinExceptionHandler.Util.withErrorHandling; import static pl.net.bluesoft.util.lang.Formats.nvl; import java.io.ByteArrayOutputStream; import java.io.PrintWriter;...
3955_8
package pl.net.bluesoft.rnd.processtool.ui.process; import static com.vaadin.ui.Label.CONTENT_XHTML; import static org.aperteworkflow.util.vaadin.VaadinExceptionHandler.Util.withErrorHandling; import static pl.net.bluesoft.util.lang.Formats.nvl; import java.io.ByteArrayOutputStream; import java.io.PrintWriter;...
bluesoft-rnd/aperte-workflow-core
core/base-gui/src/main/java/pl/net/bluesoft/rnd/processtool/ui/process/ProcessDataPane.java
7,459
/* Zamykany proces jest podprocesem, wybierz do otwoarcia jego rodzica */
block_comment
pl
package pl.net.bluesoft.rnd.processtool.ui.process; import static com.vaadin.ui.Label.CONTENT_XHTML; import static org.aperteworkflow.util.vaadin.VaadinExceptionHandler.Util.withErrorHandling; import static pl.net.bluesoft.util.lang.Formats.nvl; import java.io.ByteArrayOutputStream; import java.io.PrintWriter;...
3955_9
package pl.net.bluesoft.rnd.processtool.ui.process; import static com.vaadin.ui.Label.CONTENT_XHTML; import static org.aperteworkflow.util.vaadin.VaadinExceptionHandler.Util.withErrorHandling; import static pl.net.bluesoft.util.lang.Formats.nvl; import java.io.ByteArrayOutputStream; import java.io.PrintWriter;...
bluesoft-rnd/aperte-workflow-core
core/base-gui/src/main/java/pl/net/bluesoft/rnd/processtool/ui/process/ProcessDataPane.java
7,459
/* Przełącz się na proces głowny */
block_comment
pl
package pl.net.bluesoft.rnd.processtool.ui.process; import static com.vaadin.ui.Label.CONTENT_XHTML; import static org.aperteworkflow.util.vaadin.VaadinExceptionHandler.Util.withErrorHandling; import static pl.net.bluesoft.util.lang.Formats.nvl; import java.io.ByteArrayOutputStream; import java.io.PrintWriter;...
3955_10
package pl.net.bluesoft.rnd.processtool.ui.process; import static com.vaadin.ui.Label.CONTENT_XHTML; import static org.aperteworkflow.util.vaadin.VaadinExceptionHandler.Util.withErrorHandling; import static pl.net.bluesoft.util.lang.Formats.nvl; import java.io.ByteArrayOutputStream; import java.io.PrintWriter;...
bluesoft-rnd/aperte-workflow-core
core/base-gui/src/main/java/pl/net/bluesoft/rnd/processtool/ui/process/ProcessDataPane.java
7,459
/* Zamykany proces jest procesem glownym dla innych procesow */
block_comment
pl
package pl.net.bluesoft.rnd.processtool.ui.process; import static com.vaadin.ui.Label.CONTENT_XHTML; import static org.aperteworkflow.util.vaadin.VaadinExceptionHandler.Util.withErrorHandling; import static pl.net.bluesoft.util.lang.Formats.nvl; import java.io.ByteArrayOutputStream; import java.io.PrintWriter;...
3955_11
package pl.net.bluesoft.rnd.processtool.ui.process; import static com.vaadin.ui.Label.CONTENT_XHTML; import static org.aperteworkflow.util.vaadin.VaadinExceptionHandler.Util.withErrorHandling; import static pl.net.bluesoft.util.lang.Formats.nvl; import java.io.ByteArrayOutputStream; import java.io.PrintWriter;...
bluesoft-rnd/aperte-workflow-core
core/base-gui/src/main/java/pl/net/bluesoft/rnd/processtool/ui/process/ProcessDataPane.java
7,459
/* Pobierz podprocesy skorelowane z zamykanym procesem */
block_comment
pl
package pl.net.bluesoft.rnd.processtool.ui.process; import static com.vaadin.ui.Label.CONTENT_XHTML; import static org.aperteworkflow.util.vaadin.VaadinExceptionHandler.Util.withErrorHandling; import static pl.net.bluesoft.util.lang.Formats.nvl; import java.io.ByteArrayOutputStream; import java.io.PrintWriter;...
3955_12
package pl.net.bluesoft.rnd.processtool.ui.process; import static com.vaadin.ui.Label.CONTENT_XHTML; import static org.aperteworkflow.util.vaadin.VaadinExceptionHandler.Util.withErrorHandling; import static pl.net.bluesoft.util.lang.Formats.nvl; import java.io.ByteArrayOutputStream; import java.io.PrintWriter;...
bluesoft-rnd/aperte-workflow-core
core/base-gui/src/main/java/pl/net/bluesoft/rnd/processtool/ui/process/ProcessDataPane.java
7,459
/* Tylko jeden proces powinien być aktywny, przełącz się na * niego */
block_comment
pl
package pl.net.bluesoft.rnd.processtool.ui.process; import static com.vaadin.ui.Label.CONTENT_XHTML; import static org.aperteworkflow.util.vaadin.VaadinExceptionHandler.Util.withErrorHandling; import static pl.net.bluesoft.util.lang.Formats.nvl; import java.io.ByteArrayOutputStream; import java.io.PrintWriter;...
3955_13
package pl.net.bluesoft.rnd.processtool.ui.process; import static com.vaadin.ui.Label.CONTENT_XHTML; import static org.aperteworkflow.util.vaadin.VaadinExceptionHandler.Util.withErrorHandling; import static pl.net.bluesoft.util.lang.Formats.nvl; import java.io.ByteArrayOutputStream; import java.io.PrintWriter;...
bluesoft-rnd/aperte-workflow-core
core/base-gui/src/main/java/pl/net/bluesoft/rnd/processtool/ui/process/ProcessDataPane.java
7,459
/* Zatrzymywany proces nie posiada ani aktywnego procesu głównego, ani * aktywnych podprocesów. Zamknij więc widok */
block_comment
pl
package pl.net.bluesoft.rnd.processtool.ui.process; import static com.vaadin.ui.Label.CONTENT_XHTML; import static org.aperteworkflow.util.vaadin.VaadinExceptionHandler.Util.withErrorHandling; import static pl.net.bluesoft.util.lang.Formats.nvl; import java.io.ByteArrayOutputStream; import java.io.PrintWriter;...
3956_0
package com.company; import jdk.jshell.Snippet; import java.io.IOException; public class Main { public static void main(String[] args) { Student student1 = new Student("Damian", "Leszczyński", "25395", 85, 4); Student student2 = new Student("Karol", "Szmajda", "52375", 1000, 500); Studen...
Zajecia-PJATK/laboratoria-s25938pj
Laboratorium_2/Zadanie8.java
1,167
//Utawianie w przypadku podania wszystkich danych
line_comment
pl
package com.company; import jdk.jshell.Snippet; import java.io.IOException; public class Main { public static void main(String[] args) { Student student1 = new Student("Damian", "Leszczyński", "25395", 85, 4); Student student2 = new Student("Karol", "Szmajda", "52375", 1000, 500); Studen...
3956_1
package com.company; import jdk.jshell.Snippet; import java.io.IOException; public class Main { public static void main(String[] args) { Student student1 = new Student("Damian", "Leszczyński", "25395", 85, 4); Student student2 = new Student("Karol", "Szmajda", "52375", 1000, 500); Studen...
Zajecia-PJATK/laboratoria-s25938pj
Laboratorium_2/Zadanie8.java
1,167
//Ustawienie w przypadku niepodania imienia i nazwiska
line_comment
pl
package com.company; import jdk.jshell.Snippet; import java.io.IOException; public class Main { public static void main(String[] args) { Student student1 = new Student("Damian", "Leszczyński", "25395", 85, 4); Student student2 = new Student("Karol", "Szmajda", "52375", 1000, 500); Studen...
3956_2
package com.company; import jdk.jshell.Snippet; import java.io.IOException; public class Main { public static void main(String[] args) { Student student1 = new Student("Damian", "Leszczyński", "25395", 85, 4); Student student2 = new Student("Karol", "Szmajda", "52375", 1000, 500); Studen...
Zajecia-PJATK/laboratoria-s25938pj
Laboratorium_2/Zadanie8.java
1,167
//Nie może być mniejsza obecność od 0
line_comment
pl
package com.company; import jdk.jshell.Snippet; import java.io.IOException; public class Main { public static void main(String[] args) { Student student1 = new Student("Damian", "Leszczyński", "25395", 85, 4); Student student2 = new Student("Karol", "Szmajda", "52375", 1000, 500); Studen...
3956_3
package com.company; import jdk.jshell.Snippet; import java.io.IOException; public class Main { public static void main(String[] args) { Student student1 = new Student("Damian", "Leszczyński", "25395", 85, 4); Student student2 = new Student("Karol", "Szmajda", "52375", 1000, 500); Studen...
Zajecia-PJATK/laboratoria-s25938pj
Laboratorium_2/Zadanie8.java
1,167
//nie może bycć większa obecność od 100
line_comment
pl
package com.company; import jdk.jshell.Snippet; import java.io.IOException; public class Main { public static void main(String[] args) { Student student1 = new Student("Damian", "Leszczyński", "25395", 85, 4); Student student2 = new Student("Karol", "Szmajda", "52375", 1000, 500); Studen...
3956_4
package com.company; import jdk.jshell.Snippet; import java.io.IOException; public class Main { public static void main(String[] args) { Student student1 = new Student("Damian", "Leszczyński", "25395", 85, 4); Student student2 = new Student("Karol", "Szmajda", "52375", 1000, 500); Studen...
Zajecia-PJATK/laboratoria-s25938pj
Laboratorium_2/Zadanie8.java
1,167
//Najwyższa ocena to 5, więc nie może być wieksza
line_comment
pl
package com.company; import jdk.jshell.Snippet; import java.io.IOException; public class Main { public static void main(String[] args) { Student student1 = new Student("Damian", "Leszczyński", "25395", 85, 4); Student student2 = new Student("Karol", "Szmajda", "52375", 1000, 500); Studen...
3956_5
package com.company; import jdk.jshell.Snippet; import java.io.IOException; public class Main { public static void main(String[] args) { Student student1 = new Student("Damian", "Leszczyński", "25395", 85, 4); Student student2 = new Student("Karol", "Szmajda", "52375", 1000, 500); Studen...
Zajecia-PJATK/laboratoria-s25938pj
Laboratorium_2/Zadanie8.java
1,167
//Najmniejsza ocena to 2, więc nie może być mniejsza
line_comment
pl
package com.company; import jdk.jshell.Snippet; import java.io.IOException; public class Main { public static void main(String[] args) { Student student1 = new Student("Damian", "Leszczyński", "25395", 85, 4); Student student2 = new Student("Karol", "Szmajda", "52375", 1000, 500); Studen...
3957_0
import java.util.Scanner; public class Zadanie10 { /* Zmodyfikuj kod z poprzedniego zadania, w taki sposób, aby użytkownik samodzielnie podawał ilość wyświetlonych komunikatów. */ public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.println("Ile razy p...
PJONTAZ99/ZadaniazJAVASDA
src/main/java/Zadanie10.java
212
/* Zmodyfikuj kod z poprzedniego zadania, w taki sposób, aby użytkownik samodzielnie podawał ilość wyświetlonych komunikatów. */
block_comment
pl
import java.util.Scanner; public class Zadanie10 { /* Zmodyfikuj kod z <SUF>*/ public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.println("Ile razy powtórzyć?"); int user = scanner.nextInt(); for (int i = 1; i <user +1; i++) {//user oznacza max po...
3957_1
import java.util.Scanner; public class Zadanie10 { /* Zmodyfikuj kod z poprzedniego zadania, w taki sposób, aby użytkownik samodzielnie podawał ilość wyświetlonych komunikatów. */ public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.println("Ile razy p...
PJONTAZ99/ZadaniazJAVASDA
src/main/java/Zadanie10.java
212
//user oznacza max powtórzeń więc jest +1 bo indexy są liczone od 0
line_comment
pl
import java.util.Scanner; public class Zadanie10 { /* Zmodyfikuj kod z poprzedniego zadania, w taki sposób, aby użytkownik samodzielnie podawał ilość wyświetlonych komunikatów. */ public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.println("Ile razy p...
3960_0
package org.iesparser.parser; import org.iesparser.data.PhotometricData; /** * Klasa bazowa parsera - beda ją rozszerzać poszczególne parsery, np. osobne * klasy do IES86, IES95 (czy jakos tak). Dla każdego pliku trzeba stworzyć nowy * parser - związane jest to z tym, że każdy parser jest przeznaczony tylko dla *...
rzeszut/iesparser
src/main/java/org/iesparser/parser/Parser.java
291
/** * Klasa bazowa parsera - beda ją rozszerzać poszczególne parsery, np. osobne * klasy do IES86, IES95 (czy jakos tak). Dla każdego pliku trzeba stworzyć nowy * parser - związane jest to z tym, że każdy parser jest przeznaczony tylko dla * jednego formatu, więc nie można go użyć do sparsowania czegoś, co może być...
block_comment
pl
package org.iesparser.parser; import org.iesparser.data.PhotometricData; /** * Klasa bazowa parsera <SUF>*/ public interface Parser { /** * Metoda parsuje plik (podany gdzieś w konstruktorze) i zwraca obiekt * PhotometricData zawierający wszystkie dane wczytane z pliku. Może się * zmienić. *...
3960_1
package org.iesparser.parser; import org.iesparser.data.PhotometricData; /** * Klasa bazowa parsera - beda ją rozszerzać poszczególne parsery, np. osobne * klasy do IES86, IES95 (czy jakos tak). Dla każdego pliku trzeba stworzyć nowy * parser - związane jest to z tym, że każdy parser jest przeznaczony tylko dla *...
rzeszut/iesparser
src/main/java/org/iesparser/parser/Parser.java
291
/** * Metoda parsuje plik (podany gdzieś w konstruktorze) i zwraca obiekt * PhotometricData zawierający wszystkie dane wczytane z pliku. Może się * zmienić. * * @return wczytane do obiektu dane z pliku */
block_comment
pl
package org.iesparser.parser; import org.iesparser.data.PhotometricData; /** * Klasa bazowa parsera - beda ją rozszerzać poszczególne parsery, np. osobne * klasy do IES86, IES95 (czy jakos tak). Dla każdego pliku trzeba stworzyć nowy * parser - związane jest to z tym, że każdy parser jest przeznaczony tylko dla *...
3961_0
/** * <h1>Zanim zaczniesz pracować z tym pakietem!</h1> * Po pierwsze - przepraszam. * Nie chciało mi się wszędzie pisać "byłeś/łaś", lub "robiłeś/łaś", więc * zwracam się do czytającego jakby był mężczyzną. Wszystkie panie urażone tym faktem * przepraszam i zapraszam do postawienia <i>Pull Requesta</i> z poprawką...
WojTechM/GenerykiWJavie
src/main/java/warsztatywprowadzajace/package-info.java
301
/** * <h1>Zanim zaczniesz pracować z tym pakietem!</h1> * Po pierwsze - przepraszam. * Nie chciało mi się wszędzie pisać "byłeś/łaś", lub "robiłeś/łaś", więc * zwracam się do czytającego jakby był mężczyzną. Wszystkie panie urażone tym faktem * przepraszam i zapraszam do postawienia <i>Pull Requesta</i> z poprawką...
block_comment
pl
/** * <h1>Zanim zaczniesz pracować <SUF>*/ package warsztatywprowadzajace;
3962_0
package com.kursjava; public class DebuggowaniePrzyklad { public static void main(String[] args) { int[] liczby = new int[] { 2, 10, 0, -25, 2, 100 }; System.out.println(znajdz(10, liczby)); System.out.println(znajdz(2, liczby)); System.out.println(znajdz(-33, liczby)); } /* W tej metodzie ...
przemyslaw-kruglej/kursjava_przyklady
intellij_idea_w_akcji_przyklady/com/kursjava/DebuggowaniePrzyklad.java
459
/* W tej metodzie są trzy celowe problemy związane ze zmienną pętli: 1. Inicjalizujemy ją wartością 1, zamiast 0, więc zawsze pominiemy pierwszy element tablicy. 2. Jeżeli tablica posiada tylko jeden element, to w związku z punktem nr 1, wyjdziemy w pierwszym obiegu pętli po...
block_comment
pl
package com.kursjava; public class DebuggowaniePrzyklad { public static void main(String[] args) { int[] liczby = new int[] { 2, 10, 0, -25, 2, 100 }; System.out.println(znajdz(10, liczby)); System.out.println(znajdz(2, liczby)); System.out.println(znajdz(-33, liczby)); } /* W tej metodzie ...
3963_0
package pl.trammer.ludwik.ludproxy; import java.io.File; import java.io.IOException; import java.util.*; import pl.trammer.ludwik.ludproxy.errors.*; import jdbm.PrimaryHashMap; import jdbm.RecordManager; import jdbm.RecordManagerFactory; /** * Klasa pozwalająca umieszczać i pobierać z cache obiekty {@link ServerRes...
ludwiktrammer/ludproxy
src/pl/trammer/ludwik/ludproxy/Cache.java
2,722
/** * Klasa pozwalająca umieszczać i pobierać z cache obiekty {@link ServerResponse}, * czyli odpowiedzi serwera. Stan cache zapamiętywany jest między uruchomieniami programu, * dzięki bibliotece <a href="http://code.google.com/p/jdbm2/">JDBM2</a>. * <p> * Wszystkie metody klasy są statyczne. * * @author Ludwik...
block_comment
pl
package pl.trammer.ludwik.ludproxy; import java.io.File; import java.io.IOException; import java.util.*; import pl.trammer.ludwik.ludproxy.errors.*; import jdbm.PrimaryHashMap; import jdbm.RecordManager; import jdbm.RecordManagerFactory; /** * Klasa pozwalająca umieszczać <SUF>*/ public class Cache { private stati...
3963_1
package pl.trammer.ludwik.ludproxy; import java.io.File; import java.io.IOException; import java.util.*; import pl.trammer.ludwik.ludproxy.errors.*; import jdbm.PrimaryHashMap; import jdbm.RecordManager; import jdbm.RecordManagerFactory; /** * Klasa pozwalająca umieszczać i pobierać z cache obiekty {@link ServerRes...
ludwiktrammer/ludproxy
src/pl/trammer/ludwik/ludproxy/Cache.java
2,722
/** * Statyczna metoda, która pozwala zapisywać odpowidzi od serwera * (obiekty {@link ServerResponse}) do późniejszego wykorzystania. * <p> * Odpowiedź nie zostanie zapisana jeśli powstała w reakcji na zapytanie * inne niż {@code GET}, jeśli ma status odpowiedzi inny niż * 200, 203, 300, 301 lub 410 lub z...
block_comment
pl
package pl.trammer.ludwik.ludproxy; import java.io.File; import java.io.IOException; import java.util.*; import pl.trammer.ludwik.ludproxy.errors.*; import jdbm.PrimaryHashMap; import jdbm.RecordManager; import jdbm.RecordManagerFactory; /** * Klasa pozwalająca umieszczać i pobierać z cache obiekty {@link ServerRes...
3963_2
package pl.trammer.ludwik.ludproxy; import java.io.File; import java.io.IOException; import java.util.*; import pl.trammer.ludwik.ludproxy.errors.*; import jdbm.PrimaryHashMap; import jdbm.RecordManager; import jdbm.RecordManagerFactory; /** * Klasa pozwalająca umieszczać i pobierać z cache obiekty {@link ServerRes...
ludwiktrammer/ludproxy
src/pl/trammer/ludwik/ludproxy/Cache.java
2,722
// Etag lub Last-Modified inne niż ostatnio, więc nasza kopia jest nieaktulna! Wywalamy ją!
line_comment
pl
package pl.trammer.ludwik.ludproxy; import java.io.File; import java.io.IOException; import java.util.*; import pl.trammer.ludwik.ludproxy.errors.*; import jdbm.PrimaryHashMap; import jdbm.RecordManager; import jdbm.RecordManagerFactory; /** * Klasa pozwalająca umieszczać i pobierać z cache obiekty {@link ServerRes...
3963_3
package pl.trammer.ludwik.ludproxy; import java.io.File; import java.io.IOException; import java.util.*; import pl.trammer.ludwik.ludproxy.errors.*; import jdbm.PrimaryHashMap; import jdbm.RecordManager; import jdbm.RecordManagerFactory; /** * Klasa pozwalająca umieszczać i pobierać z cache obiekty {@link ServerRes...
ludwiktrammer/ludproxy
src/pl/trammer/ludwik/ludproxy/Cache.java
2,722
/* * Odbyło się zapytanie inne niż GET lub HEAD i mogło zmodyfikować ten zasób, * więc oznaczamy go jako nieświeży! */
block_comment
pl
package pl.trammer.ludwik.ludproxy; import java.io.File; import java.io.IOException; import java.util.*; import pl.trammer.ludwik.ludproxy.errors.*; import jdbm.PrimaryHashMap; import jdbm.RecordManager; import jdbm.RecordManagerFactory; /** * Klasa pozwalająca umieszczać i pobierać z cache obiekty {@link ServerRes...
3963_4
package pl.trammer.ludwik.ludproxy; import java.io.File; import java.io.IOException; import java.util.*; import pl.trammer.ludwik.ludproxy.errors.*; import jdbm.PrimaryHashMap; import jdbm.RecordManager; import jdbm.RecordManagerFactory; /** * Klasa pozwalająca umieszczać i pobierać z cache obiekty {@link ServerRes...
ludwiktrammer/ludproxy
src/pl/trammer/ludwik/ludproxy/Cache.java
2,722
// Odpowiedzi o statusach poza wymienionymi nie mogą być cachowane!
line_comment
pl
package pl.trammer.ludwik.ludproxy; import java.io.File; import java.io.IOException; import java.util.*; import pl.trammer.ludwik.ludproxy.errors.*; import jdbm.PrimaryHashMap; import jdbm.RecordManager; import jdbm.RecordManagerFactory; /** * Klasa pozwalająca umieszczać i pobierać z cache obiekty {@link ServerRes...
3963_5
package pl.trammer.ludwik.ludproxy; import java.io.File; import java.io.IOException; import java.util.*; import pl.trammer.ludwik.ludproxy.errors.*; import jdbm.PrimaryHashMap; import jdbm.RecordManager; import jdbm.RecordManagerFactory; /** * Klasa pozwalająca umieszczać i pobierać z cache obiekty {@link ServerRes...
ludwiktrammer/ludproxy
src/pl/trammer/ludwik/ludproxy/Cache.java
2,722
/* * Doszliśmy do końca, czyli zapytanie jest GET, status odpowiedzi to * 200, 203, 300, 301, 410, a Cache-Control się nie sprzeciwia. * Uf! Możemy zapisać! */
block_comment
pl
package pl.trammer.ludwik.ludproxy; import java.io.File; import java.io.IOException; import java.util.*; import pl.trammer.ludwik.ludproxy.errors.*; import jdbm.PrimaryHashMap; import jdbm.RecordManager; import jdbm.RecordManagerFactory; /** * Klasa pozwalająca umieszczać i pobierać z cache obiekty {@link ServerRes...
3963_6
package pl.trammer.ludwik.ludproxy; import java.io.File; import java.io.IOException; import java.util.*; import pl.trammer.ludwik.ludproxy.errors.*; import jdbm.PrimaryHashMap; import jdbm.RecordManager; import jdbm.RecordManagerFactory; /** * Klasa pozwalająca umieszczać i pobierać z cache obiekty {@link ServerRes...
ludwiktrammer/ludproxy
src/pl/trammer/ludwik/ludproxy/Cache.java
2,722
/** * Statyczna metoda, która zwraca przechowywane w cache wcześniejsze odpowiedzi od serwera, * pasujące do nagłówka nowego zapytania. * <p> * Jeśli metoda nowego zapytania różni się od {@code GET} lub {@code HEAD}, * korzystanie z cache zostało zabronione w nagłówku nowego zapytania * (poprzez nagłówki {@...
block_comment
pl
package pl.trammer.ludwik.ludproxy; import java.io.File; import java.io.IOException; import java.util.*; import pl.trammer.ludwik.ludproxy.errors.*; import jdbm.PrimaryHashMap; import jdbm.RecordManager; import jdbm.RecordManagerFactory; /** * Klasa pozwalająca umieszczać i pobierać z cache obiekty {@link ServerRes...
3963_7
package pl.trammer.ludwik.ludproxy; import java.io.File; import java.io.IOException; import java.util.*; import pl.trammer.ludwik.ludproxy.errors.*; import jdbm.PrimaryHashMap; import jdbm.RecordManager; import jdbm.RecordManagerFactory; /** * Klasa pozwalająca umieszczać i pobierać z cache obiekty {@link ServerRes...
ludwiktrammer/ludproxy
src/pl/trammer/ludwik/ludproxy/Cache.java
2,722
// zwracamy odpowiedzi tylko dla GET i HEAD, inne mogą mieć "efekty uboczne",
line_comment
pl
package pl.trammer.ludwik.ludproxy; import java.io.File; import java.io.IOException; import java.util.*; import pl.trammer.ludwik.ludproxy.errors.*; import jdbm.PrimaryHashMap; import jdbm.RecordManager; import jdbm.RecordManagerFactory; /** * Klasa pozwalająca umieszczać i pobierać z cache obiekty {@link ServerRes...
3963_8
package pl.trammer.ludwik.ludproxy; import java.io.File; import java.io.IOException; import java.util.*; import pl.trammer.ludwik.ludproxy.errors.*; import jdbm.PrimaryHashMap; import jdbm.RecordManager; import jdbm.RecordManagerFactory; /** * Klasa pozwalająca umieszczać i pobierać z cache obiekty {@link ServerRes...
ludwiktrammer/ludproxy
src/pl/trammer/ludwik/ludproxy/Cache.java
2,722
// więc powinny być każdorazowo przesyłane do serwera.
line_comment
pl
package pl.trammer.ludwik.ludproxy; import java.io.File; import java.io.IOException; import java.util.*; import pl.trammer.ludwik.ludproxy.errors.*; import jdbm.PrimaryHashMap; import jdbm.RecordManager; import jdbm.RecordManagerFactory; /** * Klasa pozwalająca umieszczać i pobierać z cache obiekty {@link ServerRes...
3963_9
package pl.trammer.ludwik.ludproxy; import java.io.File; import java.io.IOException; import java.util.*; import pl.trammer.ludwik.ludproxy.errors.*; import jdbm.PrimaryHashMap; import jdbm.RecordManager; import jdbm.RecordManagerFactory; /** * Klasa pozwalająca umieszczać i pobierać z cache obiekty {@link ServerRes...
ludwiktrammer/ludproxy
src/pl/trammer/ludwik/ludproxy/Cache.java
2,722
// Czy klient nie zabronił użycia cache?
line_comment
pl
package pl.trammer.ludwik.ludproxy; import java.io.File; import java.io.IOException; import java.util.*; import pl.trammer.ludwik.ludproxy.errors.*; import jdbm.PrimaryHashMap; import jdbm.RecordManager; import jdbm.RecordManagerFactory; /** * Klasa pozwalająca umieszczać i pobierać z cache obiekty {@link ServerRes...
3963_10
package pl.trammer.ludwik.ludproxy; import java.io.File; import java.io.IOException; import java.util.*; import pl.trammer.ludwik.ludproxy.errors.*; import jdbm.PrimaryHashMap; import jdbm.RecordManager; import jdbm.RecordManagerFactory; /** * Klasa pozwalająca umieszczać i pobierać z cache obiekty {@link ServerRes...
ludwiktrammer/ludproxy
src/pl/trammer/ludwik/ludproxy/Cache.java
2,722
// Nie było w cache
line_comment
pl
package pl.trammer.ludwik.ludproxy; import java.io.File; import java.io.IOException; import java.util.*; import pl.trammer.ludwik.ludproxy.errors.*; import jdbm.PrimaryHashMap; import jdbm.RecordManager; import jdbm.RecordManagerFactory; /** * Klasa pozwalająca umieszczać i pobierać z cache obiekty {@link ServerRes...
3963_11
package pl.trammer.ludwik.ludproxy; import java.io.File; import java.io.IOException; import java.util.*; import pl.trammer.ludwik.ludproxy.errors.*; import jdbm.PrimaryHashMap; import jdbm.RecordManager; import jdbm.RecordManagerFactory; /** * Klasa pozwalająca umieszczać i pobierać z cache obiekty {@link ServerRes...
ludwiktrammer/ludproxy
src/pl/trammer/ludwik/ludproxy/Cache.java
2,722
// Jeśli mamy doczynienia z HEAD to trzeba zwrócić odpowiedź bez treści!
line_comment
pl
package pl.trammer.ludwik.ludproxy; import java.io.File; import java.io.IOException; import java.util.*; import pl.trammer.ludwik.ludproxy.errors.*; import jdbm.PrimaryHashMap; import jdbm.RecordManager; import jdbm.RecordManagerFactory; /** * Klasa pozwalająca umieszczać i pobierać z cache obiekty {@link ServerRes...
3963_12
package pl.trammer.ludwik.ludproxy; import java.io.File; import java.io.IOException; import java.util.*; import pl.trammer.ludwik.ludproxy.errors.*; import jdbm.PrimaryHashMap; import jdbm.RecordManager; import jdbm.RecordManagerFactory; /** * Klasa pozwalająca umieszczać i pobierać z cache obiekty {@link ServerRes...
ludwiktrammer/ludproxy
src/pl/trammer/ludwik/ludproxy/Cache.java
2,722
/** * Statyczna metoda, która zwraca obiekt odpowiedzi serwera (klasy {@link ServerResponse} * pasujący do podanego adressu URL. * <p> * Podany URL nie jest w żaden sposób normalizowany, więc musi być w formie zwracanej * przez {@link RequestHeader#getUrl()} (m.in. domena musi być zapisana małymi literami). ...
block_comment
pl
package pl.trammer.ludwik.ludproxy; import java.io.File; import java.io.IOException; import java.util.*; import pl.trammer.ludwik.ludproxy.errors.*; import jdbm.PrimaryHashMap; import jdbm.RecordManager; import jdbm.RecordManagerFactory; /** * Klasa pozwalająca umieszczać i pobierać z cache obiekty {@link ServerRes...
3963_13
package pl.trammer.ludwik.ludproxy; import java.io.File; import java.io.IOException; import java.util.*; import pl.trammer.ludwik.ludproxy.errors.*; import jdbm.PrimaryHashMap; import jdbm.RecordManager; import jdbm.RecordManagerFactory; /** * Klasa pozwalająca umieszczać i pobierać z cache obiekty {@link ServerRes...
ludwiktrammer/ludproxy
src/pl/trammer/ludwik/ludproxy/Cache.java
2,722
/** * Zwraca wszystkie adresy przechowywane w tej chwili w cache. * @return zbiór obiektów String zawierających adresy stron przechowywanych w Cache */
block_comment
pl
package pl.trammer.ludwik.ludproxy; import java.io.File; import java.io.IOException; import java.util.*; import pl.trammer.ludwik.ludproxy.errors.*; import jdbm.PrimaryHashMap; import jdbm.RecordManager; import jdbm.RecordManagerFactory; /** * Klasa pozwalająca umieszczać i pobierać z cache obiekty {@link ServerRes...
3963_14
package pl.trammer.ludwik.ludproxy; import java.io.File; import java.io.IOException; import java.util.*; import pl.trammer.ludwik.ludproxy.errors.*; import jdbm.PrimaryHashMap; import jdbm.RecordManager; import jdbm.RecordManagerFactory; /** * Klasa pozwalająca umieszczać i pobierać z cache obiekty {@link ServerRes...
ludwiktrammer/ludproxy
src/pl/trammer/ludwik/ludproxy/Cache.java
2,722
/** * Usuwa wszystkie elementy zapisane w cache. */
block_comment
pl
package pl.trammer.ludwik.ludproxy; import java.io.File; import java.io.IOException; import java.util.*; import pl.trammer.ludwik.ludproxy.errors.*; import jdbm.PrimaryHashMap; import jdbm.RecordManager; import jdbm.RecordManagerFactory; /** * Klasa pozwalająca umieszczać i pobierać z cache obiekty {@link ServerRes...
3965_0
package org.example; public class MainMerge { static void sort(int[] numbers, int start, int end) { //Jeśli start == koniec, znaczy to, że w tablicy został tylko jeden element i sortowanie się zatrzymuje. if(start < end) { //Określenie środka tablicy. int middle = (start +...
Hiroten31/Studies
Dyskretna/Pierwszy/MainMerge.java
982
//Jeśli start == koniec, znaczy to, że w tablicy został tylko jeden element i sortowanie się zatrzymuje.
line_comment
pl
package org.example; public class MainMerge { static void sort(int[] numbers, int start, int end) { //Jeśli start <SUF> if(start < end) { //Określenie środka tablicy. int middle = (start + end)/2; //Sortowanie lewej połowy tablicy. sort(numbers, sta...
3965_1
package org.example; public class MainMerge { static void sort(int[] numbers, int start, int end) { //Jeśli start == koniec, znaczy to, że w tablicy został tylko jeden element i sortowanie się zatrzymuje. if(start < end) { //Określenie środka tablicy. int middle = (start +...
Hiroten31/Studies
Dyskretna/Pierwszy/MainMerge.java
982
//Określenie środka tablicy.
line_comment
pl
package org.example; public class MainMerge { static void sort(int[] numbers, int start, int end) { //Jeśli start == koniec, znaczy to, że w tablicy został tylko jeden element i sortowanie się zatrzymuje. if(start < end) { //Określenie środka <SUF> int middle = (start + en...
3965_2
package org.example; public class MainMerge { static void sort(int[] numbers, int start, int end) { //Jeśli start == koniec, znaczy to, że w tablicy został tylko jeden element i sortowanie się zatrzymuje. if(start < end) { //Określenie środka tablicy. int middle = (start +...
Hiroten31/Studies
Dyskretna/Pierwszy/MainMerge.java
982
//Sortowanie lewej połowy tablicy.
line_comment
pl
package org.example; public class MainMerge { static void sort(int[] numbers, int start, int end) { //Jeśli start == koniec, znaczy to, że w tablicy został tylko jeden element i sortowanie się zatrzymuje. if(start < end) { //Określenie środka tablicy. int middle = (start +...
3965_3
package org.example; public class MainMerge { static void sort(int[] numbers, int start, int end) { //Jeśli start == koniec, znaczy to, że w tablicy został tylko jeden element i sortowanie się zatrzymuje. if(start < end) { //Określenie środka tablicy. int middle = (start +...
Hiroten31/Studies
Dyskretna/Pierwszy/MainMerge.java
982
//Sortowanie prawej połowy tablicy.
line_comment
pl
package org.example; public class MainMerge { static void sort(int[] numbers, int start, int end) { //Jeśli start == koniec, znaczy to, że w tablicy został tylko jeden element i sortowanie się zatrzymuje. if(start < end) { //Określenie środka tablicy. int middle = (start +...
3965_4
package org.example; public class MainMerge { static void sort(int[] numbers, int start, int end) { //Jeśli start == koniec, znaczy to, że w tablicy został tylko jeden element i sortowanie się zatrzymuje. if(start < end) { //Określenie środka tablicy. int middle = (start +...
Hiroten31/Studies
Dyskretna/Pierwszy/MainMerge.java
982
//Wywołanie metody scalającej posortowane połówki.
line_comment
pl
package org.example; public class MainMerge { static void sort(int[] numbers, int start, int end) { //Jeśli start == koniec, znaczy to, że w tablicy został tylko jeden element i sortowanie się zatrzymuje. if(start < end) { //Określenie środka tablicy. int middle = (start +...
3965_5
package org.example; public class MainMerge { static void sort(int[] numbers, int start, int end) { //Jeśli start == koniec, znaczy to, że w tablicy został tylko jeden element i sortowanie się zatrzymuje. if(start < end) { //Określenie środka tablicy. int middle = (start +...
Hiroten31/Studies
Dyskretna/Pierwszy/MainMerge.java
982
//Utworzenie tymczasowej tablicy i skopiowanie do niej elementów głównej tablicy.
line_comment
pl
package org.example; public class MainMerge { static void sort(int[] numbers, int start, int end) { //Jeśli start == koniec, znaczy to, że w tablicy został tylko jeden element i sortowanie się zatrzymuje. if(start < end) { //Określenie środka tablicy. int middle = (start +...
3965_6
package org.example; public class MainMerge { static void sort(int[] numbers, int start, int end) { //Jeśli start == koniec, znaczy to, że w tablicy został tylko jeden element i sortowanie się zatrzymuje. if(start < end) { //Określenie środka tablicy. int middle = (start +...
Hiroten31/Studies
Dyskretna/Pierwszy/MainMerge.java
982
//Zmienne wskazujące na pierwsze elementy scalonych połówek oraz na początek tablicy tymczasowej.
line_comment
pl
package org.example; public class MainMerge { static void sort(int[] numbers, int start, int end) { //Jeśli start == koniec, znaczy to, że w tablicy został tylko jeden element i sortowanie się zatrzymuje. if(start < end) { //Określenie środka tablicy. int middle = (start +...
3965_7
package org.example; public class MainMerge { static void sort(int[] numbers, int start, int end) { //Jeśli start == koniec, znaczy to, że w tablicy został tylko jeden element i sortowanie się zatrzymuje. if(start < end) { //Określenie środka tablicy. int middle = (start +...
Hiroten31/Studies
Dyskretna/Pierwszy/MainMerge.java
982
//Porównywanie elementów obydwu połówek.
line_comment
pl
package org.example; public class MainMerge { static void sort(int[] numbers, int start, int end) { //Jeśli start == koniec, znaczy to, że w tablicy został tylko jeden element i sortowanie się zatrzymuje. if(start < end) { //Określenie środka tablicy. int middle = (start +...
3965_8
package org.example; public class MainMerge { static void sort(int[] numbers, int start, int end) { //Jeśli start == koniec, znaczy to, że w tablicy został tylko jeden element i sortowanie się zatrzymuje. if(start < end) { //Określenie środka tablicy. int middle = (start +...
Hiroten31/Studies
Dyskretna/Pierwszy/MainMerge.java
982
//Mniejsze elementy są pokolei umieszczane w tablicy od lewej strony.
line_comment
pl
package org.example; public class MainMerge { static void sort(int[] numbers, int start, int end) { //Jeśli start == koniec, znaczy to, że w tablicy został tylko jeden element i sortowanie się zatrzymuje. if(start < end) { //Określenie środka tablicy. int middle = (start +...
3965_9
package org.example; public class MainMerge { static void sort(int[] numbers, int start, int end) { //Jeśli start == koniec, znaczy to, że w tablicy został tylko jeden element i sortowanie się zatrzymuje. if(start < end) { //Określenie środka tablicy. int middle = (start +...
Hiroten31/Studies
Dyskretna/Pierwszy/MainMerge.java
982
//Porównywanie pokolei elementów połówek od lewej strony.
line_comment
pl
package org.example; public class MainMerge { static void sort(int[] numbers, int start, int end) { //Jeśli start == koniec, znaczy to, że w tablicy został tylko jeden element i sortowanie się zatrzymuje. if(start < end) { //Określenie środka tablicy. int middle = (start +...
3965_10
package org.example; public class MainMerge { static void sort(int[] numbers, int start, int end) { //Jeśli start == koniec, znaczy to, że w tablicy został tylko jeden element i sortowanie się zatrzymuje. if(start < end) { //Określenie środka tablicy. int middle = (start +...
Hiroten31/Studies
Dyskretna/Pierwszy/MainMerge.java
982
//Element na miejscu zmiennej X był mniejszy, więc po podstawieniu go do orginalnej tablicy, jest brany kolejne element, większy od wstawionego.
line_comment
pl
package org.example; public class MainMerge { static void sort(int[] numbers, int start, int end) { //Jeśli start == koniec, znaczy to, że w tablicy został tylko jeden element i sortowanie się zatrzymuje. if(start < end) { //Określenie środka tablicy. int middle = (start +...
3965_11
package org.example; public class MainMerge { static void sort(int[] numbers, int start, int end) { //Jeśli start == koniec, znaczy to, że w tablicy został tylko jeden element i sortowanie się zatrzymuje. if(start < end) { //Określenie środka tablicy. int middle = (start +...
Hiroten31/Studies
Dyskretna/Pierwszy/MainMerge.java
982
//Element na miejscu zmiennej Y był mniejszy, więc po podstawieniu go do orginalnej tablicy, jest brany kolejne element, większy od wstawionego.
line_comment
pl
package org.example; public class MainMerge { static void sort(int[] numbers, int start, int end) { //Jeśli start == koniec, znaczy to, że w tablicy został tylko jeden element i sortowanie się zatrzymuje. if(start < end) { //Określenie środka tablicy. int middle = (start +...
3965_12
package org.example; public class MainMerge { static void sort(int[] numbers, int start, int end) { //Jeśli start == koniec, znaczy to, że w tablicy został tylko jeden element i sortowanie się zatrzymuje. if(start < end) { //Określenie środka tablicy. int middle = (start +...
Hiroten31/Studies
Dyskretna/Pierwszy/MainMerge.java
982
//Przesunięcie miejsca w które wstawiane są mniejsze elementy.
line_comment
pl
package org.example; public class MainMerge { static void sort(int[] numbers, int start, int end) { //Jeśli start == koniec, znaczy to, że w tablicy został tylko jeden element i sortowanie się zatrzymuje. if(start < end) { //Określenie środka tablicy. int middle = (start +...
3965_13
package org.example; public class MainMerge { static void sort(int[] numbers, int start, int end) { //Jeśli start == koniec, znaczy to, że w tablicy został tylko jeden element i sortowanie się zatrzymuje. if(start < end) { //Określenie środka tablicy. int middle = (start +...
Hiroten31/Studies
Dyskretna/Pierwszy/MainMerge.java
982
//Wstawienie pozostałych elementów z lewej połowy do głownej tablicy, aż do napotkania połowy tablicy.
line_comment
pl
package org.example; public class MainMerge { static void sort(int[] numbers, int start, int end) { //Jeśli start == koniec, znaczy to, że w tablicy został tylko jeden element i sortowanie się zatrzymuje. if(start < end) { //Określenie środka tablicy. int middle = (start +...
3965_14
package org.example; public class MainMerge { static void sort(int[] numbers, int start, int end) { //Jeśli start == koniec, znaczy to, że w tablicy został tylko jeden element i sortowanie się zatrzymuje. if(start < end) { //Określenie środka tablicy. int middle = (start +...
Hiroten31/Studies
Dyskretna/Pierwszy/MainMerge.java
982
//Wstawienie pozostałych elementów z prawej połowy do głownej tablicy, aż do napotkania końca tablicy.
line_comment
pl
package org.example; public class MainMerge { static void sort(int[] numbers, int start, int end) { //Jeśli start == koniec, znaczy to, że w tablicy został tylko jeden element i sortowanie się zatrzymuje. if(start < end) { //Określenie środka tablicy. int middle = (start +...
3966_0
package myPackage; import java.util.LinkedList; public class A { void metodaA(final double var) { //zmienna final typu prymitywnego double jest stała var=1; } void metodaB(final LinkedList<Double> list) { //zmienna LinkedList jest obiektem, więc stała jest tylko referencja do obiektu //Więc to można ...
Sophistic4ted/JavaLab
Lab3/1/A.java
172
//zmienna final typu prymitywnego double jest stała
line_comment
pl
package myPackage; import java.util.LinkedList; public class A { void metodaA(final double var) { //zmienna final <SUF> var=1; } void metodaB(final LinkedList<Double> list) { //zmienna LinkedList jest obiektem, więc stała jest tylko referencja do obiektu //Więc to można list.add(2.0); list.remove(2...
3966_1
package myPackage; import java.util.LinkedList; public class A { void metodaA(final double var) { //zmienna final typu prymitywnego double jest stała var=1; } void metodaB(final LinkedList<Double> list) { //zmienna LinkedList jest obiektem, więc stała jest tylko referencja do obiektu //Więc to można ...
Sophistic4ted/JavaLab
Lab3/1/A.java
172
//zmienna LinkedList jest obiektem, więc stała jest tylko referencja do obiektu
line_comment
pl
package myPackage; import java.util.LinkedList; public class A { void metodaA(final double var) { //zmienna final typu prymitywnego double jest stała var=1; } void metodaB(final LinkedList<Double> list) { //zmienna LinkedList <SUF> //Więc to można list.add(2.0); list.remove(2.0); //A tego już nie...
3966_2
package myPackage; import java.util.LinkedList; public class A { void metodaA(final double var) { //zmienna final typu prymitywnego double jest stała var=1; } void metodaB(final LinkedList<Double> list) { //zmienna LinkedList jest obiektem, więc stała jest tylko referencja do obiektu //Więc to można ...
Sophistic4ted/JavaLab
Lab3/1/A.java
172
//Więc to można
line_comment
pl
package myPackage; import java.util.LinkedList; public class A { void metodaA(final double var) { //zmienna final typu prymitywnego double jest stała var=1; } void metodaB(final LinkedList<Double> list) { //zmienna LinkedList jest obiektem, więc stała jest tylko referencja do obiektu //Więc to <SUF> l...
3966_3
package myPackage; import java.util.LinkedList; public class A { void metodaA(final double var) { //zmienna final typu prymitywnego double jest stała var=1; } void metodaB(final LinkedList<Double> list) { //zmienna LinkedList jest obiektem, więc stała jest tylko referencja do obiektu //Więc to można ...
Sophistic4ted/JavaLab
Lab3/1/A.java
172
//A tego już nie
line_comment
pl
package myPackage; import java.util.LinkedList; public class A { void metodaA(final double var) { //zmienna final typu prymitywnego double jest stała var=1; } void metodaB(final LinkedList<Double> list) { //zmienna LinkedList jest obiektem, więc stała jest tylko referencja do obiektu //Więc to można ...
3967_0
package pl.edu.uwm.obiektowe.s155376.kolo2; import java.math.BigDecimal; public class Liczba <T extends Number> implements Comparable<Liczba<T>> { public Liczba(T value) { this.value = value; } public T getValue() { return value; } @Override public int compareTo(Liczba o) { ...
AdrianAlbrecht/PO_20-21
Kolo_2/src/pl/edu/uwm/obiektowe/s155376/kolo2/Liczba.java
197
//.doubleValue() zmienia float 2.2 na 2.200000cośtam więc nie jest równe 0 :(
line_comment
pl
package pl.edu.uwm.obiektowe.s155376.kolo2; import java.math.BigDecimal; public class Liczba <T extends Number> implements Comparable<Liczba<T>> { public Liczba(T value) { this.value = value; } public T getValue() { return value; } @Override public int compareTo(Liczba o) { ...
3969_0
package warsztatywprowadzajace; /** * <h1>Typy ograniczone.</h1> * <p> * Mamy takie klasy: * <ul> * <li>Wokalista</li> * <li>ElvisPresley</li> * </ul> * Niektórzy twierdzą, że Elvis nadal żyje, ponieważ został sklonowany. * <p> * Zatem sprawimy, że nasza klasa ElvisPresley również będzie Klonable. ...
WojTechM/GenerykiWJavie
src/main/java/warsztatywprowadzajace/Zadanie4.java
1,704
/** * <h1>Typy ograniczone.</h1> * <p> * Mamy takie klasy: * <ul> * <li>Wokalista</li> * <li>ElvisPresley</li> * </ul> * Niektórzy twierdzą, że Elvis nadal żyje, ponieważ został sklonowany. * <p> * Zatem sprawimy, że nasza klasa ElvisPresley również będzie Klonable. * <p><br/> * <b>Ważna notka:</b><...
block_comment
pl
package warsztatywprowadzajace; /** * <h1>Typy ograniczone.</h1> <SUF>*/ public class Zadanie4 { interface Klonable<T> { T klonuj(); } static class Wokalista { // Nie ruszać! } static class ElvisPresley extends Wokalista implements Klonable<ElvisPresley> { // Nie rusza...
3969_1
package warsztatywprowadzajace; /** * <h1>Typy ograniczone.</h1> * <p> * Mamy takie klasy: * <ul> * <li>Wokalista</li> * <li>ElvisPresley</li> * </ul> * Niektórzy twierdzą, że Elvis nadal żyje, ponieważ został sklonowany. * <p> * Zatem sprawimy, że nasza klasa ElvisPresley również będzie Klonable. ...
WojTechM/GenerykiWJavie
src/main/java/warsztatywprowadzajace/Zadanie4.java
1,704
// Cała logika tego zadania znajdzie się w metodzie 'klonujWokalistę'.
line_comment
pl
package warsztatywprowadzajace; /** * <h1>Typy ograniczone.</h1> * <p> * Mamy takie klasy: * <ul> * <li>Wokalista</li> * <li>ElvisPresley</li> * </ul> * Niektórzy twierdzą, że Elvis nadal żyje, ponieważ został sklonowany. * <p> * Zatem sprawimy, że nasza klasa ElvisPresley również będzie Klonable. ...
3969_2
package warsztatywprowadzajace; /** * <h1>Typy ograniczone.</h1> * <p> * Mamy takie klasy: * <ul> * <li>Wokalista</li> * <li>ElvisPresley</li> * </ul> * Niektórzy twierdzą, że Elvis nadal żyje, ponieważ został sklonowany. * <p> * Zatem sprawimy, że nasza klasa ElvisPresley również będzie Klonable. ...
WojTechM/GenerykiWJavie
src/main/java/warsztatywprowadzajace/Zadanie4.java
1,704
// 'main' powstał tylko żeby ułatwić Ci testowanie twoich rozwiązań.
line_comment
pl
package warsztatywprowadzajace; /** * <h1>Typy ograniczone.</h1> * <p> * Mamy takie klasy: * <ul> * <li>Wokalista</li> * <li>ElvisPresley</li> * </ul> * Niektórzy twierdzą, że Elvis nadal żyje, ponieważ został sklonowany. * <p> * Zatem sprawimy, że nasza klasa ElvisPresley również będzie Klonable. ...
3969_3
package warsztatywprowadzajace; /** * <h1>Typy ograniczone.</h1> * <p> * Mamy takie klasy: * <ul> * <li>Wokalista</li> * <li>ElvisPresley</li> * </ul> * Niektórzy twierdzą, że Elvis nadal żyje, ponieważ został sklonowany. * <p> * Zatem sprawimy, że nasza klasa ElvisPresley również będzie Klonable. ...
WojTechM/GenerykiWJavie
src/main/java/warsztatywprowadzajace/Zadanie4.java
1,704
/* Popatrz na to rzutowanie. Po kiego grzyba ono tu jest? Jak je usuniesz, to dostaniesz błąd. Zrób to, i przeczytaj opis błędu. Metoda 'klonuj' zwraca Object, a nie Klonable. No i w sumie to ma to sens. Jak zerkniesz na interfejs Klonable to zobaczysz typ zwrotny 'T', którym może być c...
block_comment
pl
package warsztatywprowadzajace; /** * <h1>Typy ograniczone.</h1> * <p> * Mamy takie klasy: * <ul> * <li>Wokalista</li> * <li>ElvisPresley</li> * </ul> * Niektórzy twierdzą, że Elvis nadal żyje, ponieważ został sklonowany. * <p> * Zatem sprawimy, że nasza klasa ElvisPresley również będzie Klonable. ...
3970_1
/* * Copyright (C) 2019-2021 FratikB0T Contributors * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This p...
fratik/FratikB0T
fratikcoiny/src/main/java/pl/fratik/fratikcoiny/commands/PremiaAdminCommand.java
1,818
// filter wyżej sprawdza, ale potem IDE się pluje więc niech zostanie
line_comment
pl
/* * Copyright (C) 2019-2021 FratikB0T Contributors * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This p...
3971_0
public class clientWallet { public static void clientWalletCheck(String login) { int walletCatch; DataBase wallet = new DataBase("SELECT wallet FROM jdbc.customers WHERE login ='"+login+"';"); walletCatch = wallet.walletUser(); System.out.println("Your current funds: "+walletCatc...
Rolaski/Java-Studies
Shop Project/src/clientWallet.java
309
//żeby wpłacić hajs trzeba wiedzieć ile użytkownik go ma
line_comment
pl
public class clientWallet { public static void clientWalletCheck(String login) { int walletCatch; DataBase wallet = new DataBase("SELECT wallet FROM jdbc.customers WHERE login ='"+login+"';"); walletCatch = wallet.walletUser(); System.out.println("Your current funds: "+walletCatc...
3971_1
public class clientWallet { public static void clientWalletCheck(String login) { int walletCatch; DataBase wallet = new DataBase("SELECT wallet FROM jdbc.customers WHERE login ='"+login+"';"); walletCatch = wallet.walletUser(); System.out.println("Your current funds: "+walletCatc...
Rolaski/Java-Studies
Shop Project/src/clientWallet.java
309
//więc sprawdzimy i dodamy nową kwotę a sumę wrzucamy do bazy
line_comment
pl
public class clientWallet { public static void clientWalletCheck(String login) { int walletCatch; DataBase wallet = new DataBase("SELECT wallet FROM jdbc.customers WHERE login ='"+login+"';"); walletCatch = wallet.walletUser(); System.out.println("Your current funds: "+walletCatc...
3973_1
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/sensors/PressureSensor.java
622
/** * Sensor ciśnienia powietrza. Ok, to tylko przykład. * "Prawdziwy program" mógłby w tym miejscu użyć w nazwie klasy czegoś * identyfikującego konkretny podzespół elektroniczny, a nawet wersję tegoż. */
block_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3973_2
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/sensors/PressureSensor.java
622
// To jest tylko demo i dlatego metoda measurement() nie robi tego
line_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3973_3
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/sensors/PressureSensor.java
622
// co powinna robić, tylko wstawia "przypadkową wartość" (stałą, więc
line_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3973_4
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/sensors/PressureSensor.java
622
// za każdym razem tę samą) abyśmy mogli zobaczyć efekty działania
line_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3974_1
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/sensors/HumiditySensor.java
620
/** * Sensor wilgotności powietrza. Ok, to tylko przykład. * "Prawdziwy program" mógłby w tym miejscu użyć w nazwie klasy czegoś * identyfikującego konkretny podzespół elektroniczny, a nawet wersję tegoż. */
block_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3974_2
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/sensors/HumiditySensor.java
620
// To jest tylko demo i dlatego metoda measurement() nie robi tego
line_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3974_3
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/sensors/HumiditySensor.java
620
// co powinna robić, tylko wstawia "przypadkową wartość" (stałą, więc
line_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3974_4
/* * The MIT License * * Copyright 2023 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 * to use, c...
slawomirmarczynski/java
sensor/src/sensor/sensors/HumiditySensor.java
620
// za każdym razem tę samą) abyśmy mogli zobaczyć efekty działania
line_comment
pl
/* * The MIT License * * Copyright 2023 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 * to use, c...
3976_0
package org.example; public class MainBinarny { static int search(int[] numbers, int indexStart, int target, int indexEnd) { int middle; //Sprawdzenie czy liczba nie jest mniejsza od najmniejszej, albo większa od największej. Czyli czy znajduję się w tablicy. if(target < numbers[indexStar...
Hiroten31/Studies
Dyskretna/Pierwszy/MainBinarny.java
836
//Sprawdzenie czy liczba nie jest mniejsza od najmniejszej, albo większa od największej. Czyli czy znajduję się w tablicy.
line_comment
pl
package org.example; public class MainBinarny { static int search(int[] numbers, int indexStart, int target, int indexEnd) { int middle; //Sprawdzenie czy <SUF> if(target < numbers[indexStart] || target > numbers[indexEnd]){ return -1; } //Określenie środkoweg...