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 |
|---|---|---|---|---|---|---|---|---|
8247_9 | package pl.north93.northplatform.api.chat.global;
import javax.annotation.Nullable;
import java.util.Collection;
import java.util.Locale;
import net.md_5.bungee.api.chat.BaseComponent;
import pl.north93.northplatform.api.global.network.players.Identity;
/**
* Reprezentuje pokój czatu.
* <p>
* Ten obiekt nie jest... | northpl93/NorthPlatform | Sources/API/Chat/src/main/java/pl/north93/northplatform/api/chat/global/ChatRoom.java | 1,557 | /**
* Zwraca obiekt odpowiedzialny za formatowanie czatu w tym pokoju.
*
* @throws ChatRoomNotFoundException Jeśli pokój reprezentowany przez tą instancję został usunięty.
* @return Obiekt odpowiedzialny za formatowanie czatu w tym pokoju.
*/ | block_comment | pl | package pl.north93.northplatform.api.chat.global;
import javax.annotation.Nullable;
import java.util.Collection;
import java.util.Locale;
import net.md_5.bungee.api.chat.BaseComponent;
import pl.north93.northplatform.api.global.network.players.Identity;
/**
* Reprezentuje pokój czatu.
* <p>
* Ten obiekt nie jest... |
8247_10 | package pl.north93.northplatform.api.chat.global;
import javax.annotation.Nullable;
import java.util.Collection;
import java.util.Locale;
import net.md_5.bungee.api.chat.BaseComponent;
import pl.north93.northplatform.api.global.network.players.Identity;
/**
* Reprezentuje pokój czatu.
* <p>
* Ten obiekt nie jest... | northpl93/NorthPlatform | Sources/API/Chat/src/main/java/pl/north93/northplatform/api/chat/global/ChatRoom.java | 1,557 | /**
* Ustawia obiekt odpowiedzialny za formatowanie czatu w tym pokoju.
* Klasa obiektu musi być dostępna na bungeecordzie!
*
* @throws ChatRoomNotFoundException Jeśli pokój reprezentowany przez tą instancję został usunięty.
* @param chatFormatter Nowy obiekt formatujący czat.
*/ | block_comment | pl | package pl.north93.northplatform.api.chat.global;
import javax.annotation.Nullable;
import java.util.Collection;
import java.util.Locale;
import net.md_5.bungee.api.chat.BaseComponent;
import pl.north93.northplatform.api.global.network.players.Identity;
/**
* Reprezentuje pokój czatu.
* <p>
* Ten obiekt nie jest... |
8247_11 | package pl.north93.northplatform.api.chat.global;
import javax.annotation.Nullable;
import java.util.Collection;
import java.util.Locale;
import net.md_5.bungee.api.chat.BaseComponent;
import pl.north93.northplatform.api.global.network.players.Identity;
/**
* Reprezentuje pokój czatu.
* <p>
* Ten obiekt nie jest... | northpl93/NorthPlatform | Sources/API/Chat/src/main/java/pl/north93/northplatform/api/chat/global/ChatRoom.java | 1,557 | /**
* Rozgłasza wiadomość do wszystkich użytkowników w pokoju, bez
* zawracania uwagi na język.
*
* @param component Wiadomość do rozgłoszenia.
*/ | block_comment | pl | package pl.north93.northplatform.api.chat.global;
import javax.annotation.Nullable;
import java.util.Collection;
import java.util.Locale;
import net.md_5.bungee.api.chat.BaseComponent;
import pl.north93.northplatform.api.global.network.players.Identity;
/**
* Reprezentuje pokój czatu.
* <p>
* Ten obiekt nie jest... |
8247_12 | package pl.north93.northplatform.api.chat.global;
import javax.annotation.Nullable;
import java.util.Collection;
import java.util.Locale;
import net.md_5.bungee.api.chat.BaseComponent;
import pl.north93.northplatform.api.global.network.players.Identity;
/**
* Reprezentuje pokój czatu.
* <p>
* Ten obiekt nie jest... | northpl93/NorthPlatform | Sources/API/Chat/src/main/java/pl/north93/northplatform/api/chat/global/ChatRoom.java | 1,557 | /**
* Rozgłasza wiadomość do użytkowników w pokoju korzystających z podanego języka.
*
* @param locale Język wiadomości, wiadomość otrzymają tylko gracze z ustawionym tym językiem.
* @param component Wiadomość do rozgłoszenia.
*/ | block_comment | pl | package pl.north93.northplatform.api.chat.global;
import javax.annotation.Nullable;
import java.util.Collection;
import java.util.Locale;
import net.md_5.bungee.api.chat.BaseComponent;
import pl.north93.northplatform.api.global.network.players.Identity;
/**
* Reprezentuje pokój czatu.
* <p>
* Ten obiekt nie jest... |
8248_0 | package pl.sdacademy.optional;
import pl.sdacademy.user.User;
import java.util.Optional;
public class Main {
public static void main(String[] args) {
String napis = "Jakis nie";
napis = null;
Optional<String> opcjonalnyNapis = Optional.ofNullable(napis); //nowy optional możemy utworzyć za... | mikewojtyna/sdacademy-examples | 24_programowanie_funkcyjne/src/main/java/pl/sdacademy/optional/Main.java | 1,060 | //nowy optional możemy utworzyć za pomocą metod: empty(), of(object) i ofNullable(object). Pierwsza utworzy pusty optional - czyli taki trzymający obiekt null. Druga utworzy Optional z potencjalną zawartością, ale jeżeli przekażemy jej null, wyrzuci wyjątek. Ostatnia utworzy Optional z potencjalną zawartością - może to... | line_comment | pl | package pl.sdacademy.optional;
import pl.sdacademy.user.User;
import java.util.Optional;
public class Main {
public static void main(String[] args) {
String napis = "Jakis nie";
napis = null;
Optional<String> opcjonalnyNapis = Optional.ofNullable(napis); //nowy optional <SUF>
Syst... |
8248_1 | package pl.sdacademy.optional;
import pl.sdacademy.user.User;
import java.util.Optional;
public class Main {
public static void main(String[] args) {
String napis = "Jakis nie";
napis = null;
Optional<String> opcjonalnyNapis = Optional.ofNullable(napis); //nowy optional możemy utworzyć za... | mikewojtyna/sdacademy-examples | 24_programowanie_funkcyjne/src/main/java/pl/sdacademy/optional/Main.java | 1,060 | //wartość trzymaną przez optional mozemy pobrać za pomocą metody get(), ale jeśli w środku znajdował się null - metoda wyrzuci wyjątek. Dzięki metodzie orElse możemy ustawić wartość (obiekt), który będzie zwracany w przypadku, gdy w Optionalu znajduje się null. W wyniku tego metoda orElse nigdy nie zwróci wartości null... | line_comment | pl | package pl.sdacademy.optional;
import pl.sdacademy.user.User;
import java.util.Optional;
public class Main {
public static void main(String[] args) {
String napis = "Jakis nie";
napis = null;
Optional<String> opcjonalnyNapis = Optional.ofNullable(napis); //nowy optional możemy utworzyć za... |
8248_2 | package pl.sdacademy.optional;
import pl.sdacademy.user.User;
import java.util.Optional;
public class Main {
public static void main(String[] args) {
String napis = "Jakis nie";
napis = null;
Optional<String> opcjonalnyNapis = Optional.ofNullable(napis); //nowy optional możemy utworzyć za... | mikewojtyna/sdacademy-examples | 24_programowanie_funkcyjne/src/main/java/pl/sdacademy/optional/Main.java | 1,060 | //metoda map służy do wykonania jakiejś operacji na zawartości, o ile ta zawartość istnieje (w przeciwnym wypadku po prostu nic się nie stanie). Metoda map przyjmuje obiekt Function - może być to jakaś lambda przyjmująca jeden argument (który jest zawartością Optionala) i zwracającą obiekt tego samego typu. W środku wi... | line_comment | pl | package pl.sdacademy.optional;
import pl.sdacademy.user.User;
import java.util.Optional;
public class Main {
public static void main(String[] args) {
String napis = "Jakis nie";
napis = null;
Optional<String> opcjonalnyNapis = Optional.ofNullable(napis); //nowy optional możemy utworzyć za... |
8248_3 | package pl.sdacademy.optional;
import pl.sdacademy.user.User;
import java.util.Optional;
public class Main {
public static void main(String[] args) {
String napis = "Jakis nie";
napis = null;
Optional<String> opcjonalnyNapis = Optional.ofNullable(napis); //nowy optional możemy utworzyć za... | mikewojtyna/sdacademy-examples | 24_programowanie_funkcyjne/src/main/java/pl/sdacademy/optional/Main.java | 1,060 | // metoda filter przyjmuje lambdę Predicate (przyjmującą jeden argument i zwracającą wartośc logiczną - boolean). Jeśli obiekt w optionalu spełnia warunek (czyli lambda dla tego obiektu zwróci prawdę), obiekt pozostanie w optionalu, w przeciwnym wypdaku zostanie zastąpiony nullem | line_comment | pl | package pl.sdacademy.optional;
import pl.sdacademy.user.User;
import java.util.Optional;
public class Main {
public static void main(String[] args) {
String napis = "Jakis nie";
napis = null;
Optional<String> opcjonalnyNapis = Optional.ofNullable(napis); //nowy optional możemy utworzyć za... |
8248_4 | package pl.sdacademy.optional;
import pl.sdacademy.user.User;
import java.util.Optional;
public class Main {
public static void main(String[] args) {
String napis = "Jakis nie";
napis = null;
Optional<String> opcjonalnyNapis = Optional.ofNullable(napis); //nowy optional możemy utworzyć za... | mikewojtyna/sdacademy-examples | 24_programowanie_funkcyjne/src/main/java/pl/sdacademy/optional/Main.java | 1,060 | //metoda ifPresent optionala przyjmuje obiekt typu Function (czyli np. lambdę przyjmującą jeden argument i nic nie zwracającą). Lambda na obiekcie zostanie wykonana tylko wtedy, kiedy ten obiekt istnieje, czyli w optionalu jest coś innego niż null | line_comment | pl | package pl.sdacademy.optional;
import pl.sdacademy.user.User;
import java.util.Optional;
public class Main {
public static void main(String[] args) {
String napis = "Jakis nie";
napis = null;
Optional<String> opcjonalnyNapis = Optional.ofNullable(napis); //nowy optional możemy utworzyć za... |
8248_5 | package pl.sdacademy.optional;
import pl.sdacademy.user.User;
import java.util.Optional;
public class Main {
public static void main(String[] args) {
String napis = "Jakis nie";
napis = null;
Optional<String> opcjonalnyNapis = Optional.ofNullable(napis); //nowy optional możemy utworzyć za... | mikewojtyna/sdacademy-examples | 24_programowanie_funkcyjne/src/main/java/pl/sdacademy/optional/Main.java | 1,060 | //zad 1 utwórz optional dla usera "ktoś" | line_comment | pl | package pl.sdacademy.optional;
import pl.sdacademy.user.User;
import java.util.Optional;
public class Main {
public static void main(String[] args) {
String napis = "Jakis nie";
napis = null;
Optional<String> opcjonalnyNapis = Optional.ofNullable(napis); //nowy optional możemy utworzyć za... |
8248_6 | package pl.sdacademy.optional;
import pl.sdacademy.user.User;
import java.util.Optional;
public class Main {
public static void main(String[] args) {
String napis = "Jakis nie";
napis = null;
Optional<String> opcjonalnyNapis = Optional.ofNullable(napis); //nowy optional możemy utworzyć za... | mikewojtyna/sdacademy-examples | 24_programowanie_funkcyjne/src/main/java/pl/sdacademy/optional/Main.java | 1,060 | //zad 2 jeżeli user w optionalu jest = null, wyświetl usera z danymi | line_comment | pl | package pl.sdacademy.optional;
import pl.sdacademy.user.User;
import java.util.Optional;
public class Main {
public static void main(String[] args) {
String napis = "Jakis nie";
napis = null;
Optional<String> opcjonalnyNapis = Optional.ofNullable(napis); //nowy optional możemy utworzyć za... |
8248_7 | package pl.sdacademy.optional;
import pl.sdacademy.user.User;
import java.util.Optional;
public class Main {
public static void main(String[] args) {
String napis = "Jakis nie";
napis = null;
Optional<String> opcjonalnyNapis = Optional.ofNullable(napis); //nowy optional możemy utworzyć za... | mikewojtyna/sdacademy-examples | 24_programowanie_funkcyjne/src/main/java/pl/sdacademy/optional/Main.java | 1,060 | // (imie="NN", nazwisko="NN", wiek=-1) | line_comment | pl | package pl.sdacademy.optional;
import pl.sdacademy.user.User;
import java.util.Optional;
public class Main {
public static void main(String[] args) {
String napis = "Jakis nie";
napis = null;
Optional<String> opcjonalnyNapis = Optional.ofNullable(napis); //nowy optional możemy utworzyć za... |
8248_8 | package pl.sdacademy.optional;
import pl.sdacademy.user.User;
import java.util.Optional;
public class Main {
public static void main(String[] args) {
String napis = "Jakis nie";
napis = null;
Optional<String> opcjonalnyNapis = Optional.ofNullable(napis); //nowy optional możemy utworzyć za... | mikewojtyna/sdacademy-examples | 24_programowanie_funkcyjne/src/main/java/pl/sdacademy/optional/Main.java | 1,060 | //zad 3 pewna baza danych potrzebuje imiona i nazwiska pisane z wielkiej litery. | line_comment | pl | package pl.sdacademy.optional;
import pl.sdacademy.user.User;
import java.util.Optional;
public class Main {
public static void main(String[] args) {
String napis = "Jakis nie";
napis = null;
Optional<String> opcjonalnyNapis = Optional.ofNullable(napis); //nowy optional możemy utworzyć za... |
8248_9 | package pl.sdacademy.optional;
import pl.sdacademy.user.User;
import java.util.Optional;
public class Main {
public static void main(String[] args) {
String napis = "Jakis nie";
napis = null;
Optional<String> opcjonalnyNapis = Optional.ofNullable(napis); //nowy optional możemy utworzyć za... | mikewojtyna/sdacademy-examples | 24_programowanie_funkcyjne/src/main/java/pl/sdacademy/optional/Main.java | 1,060 | // Przetworz usera na string ale pisany wielkimi literami. | line_comment | pl | package pl.sdacademy.optional;
import pl.sdacademy.user.User;
import java.util.Optional;
public class Main {
public static void main(String[] args) {
String napis = "Jakis nie";
napis = null;
Optional<String> opcjonalnyNapis = Optional.ofNullable(napis); //nowy optional możemy utworzyć za... |
8248_10 | package pl.sdacademy.optional;
import pl.sdacademy.user.User;
import java.util.Optional;
public class Main {
public static void main(String[] args) {
String napis = "Jakis nie";
napis = null;
Optional<String> opcjonalnyNapis = Optional.ofNullable(napis); //nowy optional możemy utworzyć za... | mikewojtyna/sdacademy-examples | 24_programowanie_funkcyjne/src/main/java/pl/sdacademy/optional/Main.java | 1,060 | // Wyswietl go jeżeli nie jest nullem | line_comment | pl | package pl.sdacademy.optional;
import pl.sdacademy.user.User;
import java.util.Optional;
public class Main {
public static void main(String[] args) {
String napis = "Jakis nie";
napis = null;
Optional<String> opcjonalnyNapis = Optional.ofNullable(napis); //nowy optional możemy utworzyć za... |
8248_11 | package pl.sdacademy.optional;
import pl.sdacademy.user.User;
import java.util.Optional;
public class Main {
public static void main(String[] args) {
String napis = "Jakis nie";
napis = null;
Optional<String> opcjonalnyNapis = Optional.ofNullable(napis); //nowy optional możemy utworzyć za... | mikewojtyna/sdacademy-examples | 24_programowanie_funkcyjne/src/main/java/pl/sdacademy/optional/Main.java | 1,060 | //zad 4 Sprawdz czy user ktos jest starszy niz 20 lat, potem niz 30 lat. | line_comment | pl | package pl.sdacademy.optional;
import pl.sdacademy.user.User;
import java.util.Optional;
public class Main {
public static void main(String[] args) {
String napis = "Jakis nie";
napis = null;
Optional<String> opcjonalnyNapis = Optional.ofNullable(napis); //nowy optional możemy utworzyć za... |
8248_12 | package pl.sdacademy.optional;
import pl.sdacademy.user.User;
import java.util.Optional;
public class Main {
public static void main(String[] args) {
String napis = "Jakis nie";
napis = null;
Optional<String> opcjonalnyNapis = Optional.ofNullable(napis); //nowy optional możemy utworzyć za... | mikewojtyna/sdacademy-examples | 24_programowanie_funkcyjne/src/main/java/pl/sdacademy/optional/Main.java | 1,060 | // Jesli nie spełnia tego warunku - usuń go. | line_comment | pl | package pl.sdacademy.optional;
import pl.sdacademy.user.User;
import java.util.Optional;
public class Main {
public static void main(String[] args) {
String napis = "Jakis nie";
napis = null;
Optional<String> opcjonalnyNapis = Optional.ofNullable(napis); //nowy optional możemy utworzyć za... |
8249_0 | package Simulation;
import java.awt.Point;
import java.util.ArrayList;
import java.util.Collections;
import Model.Car;
import Model.Direction;
import Model.LightsInfo;
class WorldMap
{
private final int SIZE = 46;
private final int NR_CROSSING = 9;
private ArrayList<Car> cars;
private Car carTable[][... | OstryDzik/TrafficControl | src/Simulation/WorldMap.java | 3,989 | //jesli jest bezposrednio przed skrzyzowaniem - nie wjezdza | line_comment | pl | package Simulation;
import java.awt.Point;
import java.util.ArrayList;
import java.util.Collections;
import Model.Car;
import Model.Direction;
import Model.LightsInfo;
class WorldMap
{
private final int SIZE = 46;
private final int NR_CROSSING = 9;
private ArrayList<Car> cars;
private Car carTable[][... |
8249_1 | package Simulation;
import java.awt.Point;
import java.util.ArrayList;
import java.util.Collections;
import Model.Car;
import Model.Direction;
import Model.LightsInfo;
class WorldMap
{
private final int SIZE = 46;
private final int NR_CROSSING = 9;
private ArrayList<Car> cars;
private Car carTable[][... | OstryDzik/TrafficControl | src/Simulation/WorldMap.java | 3,989 | // jesli juz jest na skrzyzowaniu to wyjedz bez wzgledu na swiatla | line_comment | pl | package Simulation;
import java.awt.Point;
import java.util.ArrayList;
import java.util.Collections;
import Model.Car;
import Model.Direction;
import Model.LightsInfo;
class WorldMap
{
private final int SIZE = 46;
private final int NR_CROSSING = 9;
private ArrayList<Car> cars;
private Car carTable[][... |
8249_2 | package Simulation;
import java.awt.Point;
import java.util.ArrayList;
import java.util.Collections;
import Model.Car;
import Model.Direction;
import Model.LightsInfo;
class WorldMap
{
private final int SIZE = 46;
private final int NR_CROSSING = 9;
private ArrayList<Car> cars;
private Car carTable[][... | OstryDzik/TrafficControl | src/Simulation/WorldMap.java | 3,989 | // jesli jest przed skrzyzowaniem | line_comment | pl | package Simulation;
import java.awt.Point;
import java.util.ArrayList;
import java.util.Collections;
import Model.Car;
import Model.Direction;
import Model.LightsInfo;
class WorldMap
{
private final int SIZE = 46;
private final int NR_CROSSING = 9;
private ArrayList<Car> cars;
private Car carTable[][... |
8249_3 | package Simulation;
import java.awt.Point;
import java.util.ArrayList;
import java.util.Collections;
import Model.Car;
import Model.Direction;
import Model.LightsInfo;
class WorldMap
{
private final int SIZE = 46;
private final int NR_CROSSING = 9;
private ArrayList<Car> cars;
private Car carTable[][... | OstryDzik/TrafficControl | src/Simulation/WorldMap.java | 3,989 | //skrzyzowanie jest zajete | line_comment | pl | package Simulation;
import java.awt.Point;
import java.util.ArrayList;
import java.util.Collections;
import Model.Car;
import Model.Direction;
import Model.LightsInfo;
class WorldMap
{
private final int SIZE = 46;
private final int NR_CROSSING = 9;
private ArrayList<Car> cars;
private Car carTable[][... |
8249_4 | package Simulation;
import java.awt.Point;
import java.util.ArrayList;
import java.util.Collections;
import Model.Car;
import Model.Direction;
import Model.LightsInfo;
class WorldMap
{
private final int SIZE = 46;
private final int NR_CROSSING = 9;
private ArrayList<Car> cars;
private Car carTable[][... | OstryDzik/TrafficControl | src/Simulation/WorldMap.java | 3,989 | //nie wjezdza bo nie ma jak wyjechac | line_comment | pl | package Simulation;
import java.awt.Point;
import java.util.ArrayList;
import java.util.Collections;
import Model.Car;
import Model.Direction;
import Model.LightsInfo;
class WorldMap
{
private final int SIZE = 46;
private final int NR_CROSSING = 9;
private ArrayList<Car> cars;
private Car carTable[][... |
8249_5 | package Simulation;
import java.awt.Point;
import java.util.ArrayList;
import java.util.Collections;
import Model.Car;
import Model.Direction;
import Model.LightsInfo;
class WorldMap
{
private final int SIZE = 46;
private final int NR_CROSSING = 9;
private ArrayList<Car> cars;
private Car carTable[][... | OstryDzik/TrafficControl | src/Simulation/WorldMap.java | 3,989 | // p nie jest skrzyzowaniem | line_comment | pl | package Simulation;
import java.awt.Point;
import java.util.ArrayList;
import java.util.Collections;
import Model.Car;
import Model.Direction;
import Model.LightsInfo;
class WorldMap
{
private final int SIZE = 46;
private final int NR_CROSSING = 9;
private ArrayList<Car> cars;
private Car carTable[][... |
8249_6 | package Simulation;
import java.awt.Point;
import java.util.ArrayList;
import java.util.Collections;
import Model.Car;
import Model.Direction;
import Model.LightsInfo;
class WorldMap
{
private final int SIZE = 46;
private final int NR_CROSSING = 9;
private ArrayList<Car> cars;
private Car carTable[][... | OstryDzik/TrafficControl | src/Simulation/WorldMap.java | 3,989 | //lista punktow z ktorych ruszyly sie samochody w tym wywolaniu | line_comment | pl | package Simulation;
import java.awt.Point;
import java.util.ArrayList;
import java.util.Collections;
import Model.Car;
import Model.Direction;
import Model.LightsInfo;
class WorldMap
{
private final int SIZE = 46;
private final int NR_CROSSING = 9;
private ArrayList<Car> cars;
private Car carTable[][... |
8249_7 | package Simulation;
import java.awt.Point;
import java.util.ArrayList;
import java.util.Collections;
import Model.Car;
import Model.Direction;
import Model.LightsInfo;
class WorldMap
{
private final int SIZE = 46;
private final int NR_CROSSING = 9;
private ArrayList<Car> cars;
private Car carTable[][... | OstryDzik/TrafficControl | src/Simulation/WorldMap.java | 3,989 | // System.out.println("z listy zabronionych - nie wolno przesunac"); | line_comment | pl | package Simulation;
import java.awt.Point;
import java.util.ArrayList;
import java.util.Collections;
import Model.Car;
import Model.Direction;
import Model.LightsInfo;
class WorldMap
{
private final int SIZE = 46;
private final int NR_CROSSING = 9;
private ArrayList<Car> cars;
private Car carTable[][... |
8249_8 | package Simulation;
import java.awt.Point;
import java.util.ArrayList;
import java.util.Collections;
import Model.Car;
import Model.Direction;
import Model.LightsInfo;
class WorldMap
{
private final int SIZE = 46;
private final int NR_CROSSING = 9;
private ArrayList<Car> cars;
private Car carTable[][... | OstryDzik/TrafficControl | src/Simulation/WorldMap.java | 3,989 | // mozna przesunac samochod | line_comment | pl | package Simulation;
import java.awt.Point;
import java.util.ArrayList;
import java.util.Collections;
import Model.Car;
import Model.Direction;
import Model.LightsInfo;
class WorldMap
{
private final int SIZE = 46;
private final int NR_CROSSING = 9;
private ArrayList<Car> cars;
private Car carTable[][... |
8249_9 | package Simulation;
import java.awt.Point;
import java.util.ArrayList;
import java.util.Collections;
import Model.Car;
import Model.Direction;
import Model.LightsInfo;
class WorldMap
{
private final int SIZE = 46;
private final int NR_CROSSING = 9;
private ArrayList<Car> cars;
private Car carTable[][... | OstryDzik/TrafficControl | src/Simulation/WorldMap.java | 3,989 | // System.out.println("samochod obecnie" + car.getX() + "," | line_comment | pl | package Simulation;
import java.awt.Point;
import java.util.ArrayList;
import java.util.Collections;
import Model.Car;
import Model.Direction;
import Model.LightsInfo;
class WorldMap
{
private final int SIZE = 46;
private final int NR_CROSSING = 9;
private ArrayList<Car> cars;
private Car carTable[][... |
8249_10 | package Simulation;
import java.awt.Point;
import java.util.ArrayList;
import java.util.Collections;
import Model.Car;
import Model.Direction;
import Model.LightsInfo;
class WorldMap
{
private final int SIZE = 46;
private final int NR_CROSSING = 9;
private ArrayList<Car> cars;
private Car carTable[][... | OstryDzik/TrafficControl | src/Simulation/WorldMap.java | 3,989 | // po dekrementacji do zera zmiana kierunku | line_comment | pl | package Simulation;
import java.awt.Point;
import java.util.ArrayList;
import java.util.Collections;
import Model.Car;
import Model.Direction;
import Model.LightsInfo;
class WorldMap
{
private final int SIZE = 46;
private final int NR_CROSSING = 9;
private ArrayList<Car> cars;
private Car carTable[][... |
8249_11 | package Simulation;
import java.awt.Point;
import java.util.ArrayList;
import java.util.Collections;
import Model.Car;
import Model.Direction;
import Model.LightsInfo;
class WorldMap
{
private final int SIZE = 46;
private final int NR_CROSSING = 9;
private ArrayList<Car> cars;
private Car carTable[][... | OstryDzik/TrafficControl | src/Simulation/WorldMap.java | 3,989 | // System.out.println("zmiana kierunku samochodu"); | line_comment | pl | package Simulation;
import java.awt.Point;
import java.util.ArrayList;
import java.util.Collections;
import Model.Car;
import Model.Direction;
import Model.LightsInfo;
class WorldMap
{
private final int SIZE = 46;
private final int NR_CROSSING = 9;
private ArrayList<Car> cars;
private Car carTable[][... |
8249_12 | package Simulation;
import java.awt.Point;
import java.util.ArrayList;
import java.util.Collections;
import Model.Car;
import Model.Direction;
import Model.LightsInfo;
class WorldMap
{
private final int SIZE = 46;
private final int NR_CROSSING = 9;
private ArrayList<Car> cars;
private Car carTable[][... | OstryDzik/TrafficControl | src/Simulation/WorldMap.java | 3,989 | //nie powinno tu nigdy dojsc | line_comment | pl | package Simulation;
import java.awt.Point;
import java.util.ArrayList;
import java.util.Collections;
import Model.Car;
import Model.Direction;
import Model.LightsInfo;
class WorldMap
{
private final int SIZE = 46;
private final int NR_CROSSING = 9;
private ArrayList<Car> cars;
private Car carTable[][... |
8249_13 | package Simulation;
import java.awt.Point;
import java.util.ArrayList;
import java.util.Collections;
import Model.Car;
import Model.Direction;
import Model.LightsInfo;
class WorldMap
{
private final int SIZE = 46;
private final int NR_CROSSING = 9;
private ArrayList<Car> cars;
private Car carTable[][... | OstryDzik/TrafficControl | src/Simulation/WorldMap.java | 3,989 | //no kurde inaczej sie nie dalo | line_comment | pl | package Simulation;
import java.awt.Point;
import java.util.ArrayList;
import java.util.Collections;
import Model.Car;
import Model.Direction;
import Model.LightsInfo;
class WorldMap
{
private final int SIZE = 46;
private final int NR_CROSSING = 9;
private ArrayList<Car> cars;
private Car carTable[][... |
8250_0 | package kvadrato.game.components;
import java.util.Map;
import java.util.TreeMap;
import java.util.function.Function;
import kvadrato.utils.GameException;
import kvadrato.game.Component;
import kvadrato.game.Entity;
import kvadrato.game.collision.ElementaryShape;
import kvadrato.game.collision.CollisionOccurrence;
/... | PieroganoReggiano/Kvadrato | src/kvadrato/game/components/Collider.java | 789 | /**
* Komponent odpowiadający za możliwość zderzania obiektu z innymi rzeczami
* i posiadanie przezeń kształtu.
*/ | block_comment | pl | package kvadrato.game.components;
import java.util.Map;
import java.util.TreeMap;
import java.util.function.Function;
import kvadrato.utils.GameException;
import kvadrato.game.Component;
import kvadrato.game.Entity;
import kvadrato.game.collision.ElementaryShape;
import kvadrato.game.collision.CollisionOccurrence;
/... |
8250_1 | package kvadrato.game.components;
import java.util.Map;
import java.util.TreeMap;
import java.util.function.Function;
import kvadrato.utils.GameException;
import kvadrato.game.Component;
import kvadrato.game.Entity;
import kvadrato.game.collision.ElementaryShape;
import kvadrato.game.collision.CollisionOccurrence;
/... | PieroganoReggiano/Kvadrato | src/kvadrato/game/components/Collider.java | 789 | /**
* Mapa z kolizjami, które trzeba odsłużyć w następnej funkcji doThings().
* Jest ona czyszczona w funkcji update().
*/ | block_comment | pl | package kvadrato.game.components;
import java.util.Map;
import java.util.TreeMap;
import java.util.function.Function;
import kvadrato.utils.GameException;
import kvadrato.game.Component;
import kvadrato.game.Entity;
import kvadrato.game.collision.ElementaryShape;
import kvadrato.game.collision.CollisionOccurrence;
/... |
8250_2 | package kvadrato.game.components;
import java.util.Map;
import java.util.TreeMap;
import java.util.function.Function;
import kvadrato.utils.GameException;
import kvadrato.game.Component;
import kvadrato.game.Entity;
import kvadrato.game.collision.ElementaryShape;
import kvadrato.game.collision.CollisionOccurrence;
/... | PieroganoReggiano/Kvadrato | src/kvadrato/game/components/Collider.java | 789 | /**
* Funkcja, która jeśli istnieje, to jest wywoływana dla jdnostki. Pierwszy
* argument to ta jednostka, drugi to tamta inna, a trzeci to obiekt
* z kolizją.
*/ | block_comment | pl | package kvadrato.game.components;
import java.util.Map;
import java.util.TreeMap;
import java.util.function.Function;
import kvadrato.utils.GameException;
import kvadrato.game.Component;
import kvadrato.game.Entity;
import kvadrato.game.collision.ElementaryShape;
import kvadrato.game.collision.CollisionOccurrence;
/... |
8250_3 | package kvadrato.game.components;
import java.util.Map;
import java.util.TreeMap;
import java.util.function.Function;
import kvadrato.utils.GameException;
import kvadrato.game.Component;
import kvadrato.game.Entity;
import kvadrato.game.collision.ElementaryShape;
import kvadrato.game.collision.CollisionOccurrence;
/... | PieroganoReggiano/Kvadrato | src/kvadrato/game/components/Collider.java | 789 | /**
* Funkcja zwracająca kształt obiektu.
*/ | block_comment | pl | package kvadrato.game.components;
import java.util.Map;
import java.util.TreeMap;
import java.util.function.Function;
import kvadrato.utils.GameException;
import kvadrato.game.Component;
import kvadrato.game.Entity;
import kvadrato.game.collision.ElementaryShape;
import kvadrato.game.collision.CollisionOccurrence;
/... |
8250_4 | package kvadrato.game.components;
import java.util.Map;
import java.util.TreeMap;
import java.util.function.Function;
import kvadrato.utils.GameException;
import kvadrato.game.Component;
import kvadrato.game.Entity;
import kvadrato.game.collision.ElementaryShape;
import kvadrato.game.collision.CollisionOccurrence;
/... | PieroganoReggiano/Kvadrato | src/kvadrato/game/components/Collider.java | 789 | /**
* Zwraca aktualny kształt obiektu.
* Jeśli dało null, to znaczy, że obiekt się z niczym nie zderza.
*/ | block_comment | pl | package kvadrato.game.components;
import java.util.Map;
import java.util.TreeMap;
import java.util.function.Function;
import kvadrato.utils.GameException;
import kvadrato.game.Component;
import kvadrato.game.Entity;
import kvadrato.game.collision.ElementaryShape;
import kvadrato.game.collision.CollisionOccurrence;
/... |
8250_5 | package kvadrato.game.components;
import java.util.Map;
import java.util.TreeMap;
import java.util.function.Function;
import kvadrato.utils.GameException;
import kvadrato.game.Component;
import kvadrato.game.Entity;
import kvadrato.game.collision.ElementaryShape;
import kvadrato.game.collision.CollisionOccurrence;
/... | PieroganoReggiano/Kvadrato | src/kvadrato/game/components/Collider.java | 789 | /**
* Dodaje kolizję do obsłużenia w następnym kroku.
*/ | block_comment | pl | package kvadrato.game.components;
import java.util.Map;
import java.util.TreeMap;
import java.util.function.Function;
import kvadrato.utils.GameException;
import kvadrato.game.Component;
import kvadrato.game.Entity;
import kvadrato.game.collision.ElementaryShape;
import kvadrato.game.collision.CollisionOccurrence;
/... |
8250_6 | package kvadrato.game.components;
import java.util.Map;
import java.util.TreeMap;
import java.util.function.Function;
import kvadrato.utils.GameException;
import kvadrato.game.Component;
import kvadrato.game.Entity;
import kvadrato.game.collision.ElementaryShape;
import kvadrato.game.collision.CollisionOccurrence;
/... | PieroganoReggiano/Kvadrato | src/kvadrato/game/components/Collider.java | 789 | // Fix może być pusty, bo nigdy nie bęzie w liście jednostki, której nie ma | line_comment | pl | package kvadrato.game.components;
import java.util.Map;
import java.util.TreeMap;
import java.util.function.Function;
import kvadrato.utils.GameException;
import kvadrato.game.Component;
import kvadrato.game.Entity;
import kvadrato.game.collision.ElementaryShape;
import kvadrato.game.collision.CollisionOccurrence;
/... |
8251_1 | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... | slawomirmarczynski/java | tcp/src/Program.java | 7,148 | /**
* Prosty program ilustrujący jak nawiązać łączność jednocześnie tworząc serwer
* TCP (wielowątkowo zapewniający łączność z wieloma klientami) i jednocześnie
* tworząc klienta TCP (nawiązującego łączność ze wskazanym serwerem TCP).
*
* @author Sławomir Marczyński
* @version 0.3
*/ | block_comment | pl | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... |
8251_2 | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... | slawomirmarczynski/java | tcp/src/Program.java | 7,148 | // Pozyskanie danych nt. parametrów połączenia. Następnie próba otwarcia | line_comment | pl | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... |
8251_3 | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... | slawomirmarczynski/java | tcp/src/Program.java | 7,148 | // nowego serwera TCP (jeżeli nie był otwarty, tj. jeżeli port nie był | line_comment | pl | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... |
8251_4 | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... | slawomirmarczynski/java | tcp/src/Program.java | 7,148 | // zajęty). Niezależnie od ustanowienia serwera otwarcie łącza TCP jako | line_comment | pl | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... |
8251_5 | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... | slawomirmarczynski/java | tcp/src/Program.java | 7,148 | // klient: być może połączenie będzie z innym komputerem, albo z inną | line_comment | pl | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... |
8251_6 | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... | slawomirmarczynski/java | tcp/src/Program.java | 7,148 | // instancją programu, albo z tą samą instancją. | line_comment | pl | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... |
8251_7 | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... | slawomirmarczynski/java | tcp/src/Program.java | 7,148 | // Udało się pomyślnie uzyskać dane nt. konfiguracji. Kolejnym | line_comment | pl | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... |
8251_8 | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... | slawomirmarczynski/java | tcp/src/Program.java | 7,148 | // etapami są próba otwarcia servera i próba otwarcia klienta. | line_comment | pl | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... |
8251_9 | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... | slawomirmarczynski/java | tcp/src/Program.java | 7,148 | // Aby zwolnić zasoby (takie jak port) wzorzec RAII wymaga wywołania | line_comment | pl | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... |
8251_10 | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... | slawomirmarczynski/java | tcp/src/Program.java | 7,148 | // metod close() dla serwera i dla klienta. Najłatwiej zagwarantować | line_comment | pl | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... |
8251_11 | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... | slawomirmarczynski/java | tcp/src/Program.java | 7,148 | // to przez użycie try-with-resources. Ale nie jest prosto mieszać | line_comment | pl | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... |
8251_12 | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... | slawomirmarczynski/java | tcp/src/Program.java | 7,148 | // try-with-resources z if-else, więc zamiast tego użyte jest | line_comment | pl | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... |
8251_14 | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... | slawomirmarczynski/java | tcp/src/Program.java | 7,148 | // nie rzucają wyjątków (nie powinny). | line_comment | pl | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... |
8251_15 | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... | slawomirmarczynski/java | tcp/src/Program.java | 7,148 | // Dodajemy otwarcie dialogu modalnego do kolejki wątku EDT. | line_comment | pl | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... |
8251_16 | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... | slawomirmarczynski/java | tcp/src/Program.java | 7,148 | // Dialog, gdy zostanie aktywowany, zablokuje wątek EDT (jest | line_comment | pl | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... |
8251_17 | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... | slawomirmarczynski/java | tcp/src/Program.java | 7,148 | // modalny) . Zablokowany wątek EDT zatrzyma wykonanie obecnego | line_comment | pl | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... |
8251_18 | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... | slawomirmarczynski/java | tcp/src/Program.java | 7,148 | // wątku (nie-EDT). Zatrzymanie wykonania w dwóch wątkach (EDT i | line_comment | pl | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... |
8251_19 | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... | slawomirmarczynski/java | tcp/src/Program.java | 7,148 | // głównym) nie zablokuje jednak servera, ani klienta - te mają | line_comment | pl | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... |
8251_20 | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... | slawomirmarczynski/java | tcp/src/Program.java | 7,148 | // zupełnie własne niezależne i niezależne wątki. | line_comment | pl | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... |
8251_21 | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... | slawomirmarczynski/java | tcp/src/Program.java | 7,148 | // Jeżeli tu jesteśmy, to coś poszło nie tak z invokeAndWait(). | line_comment | pl | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... |
8251_22 | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... | slawomirmarczynski/java | tcp/src/Program.java | 7,148 | // Zasadniczo nigdy nie powinniśmy się tu znaleźć. Teoretycznie. | line_comment | pl | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... |
8251_23 | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... | slawomirmarczynski/java | tcp/src/Program.java | 7,148 | /*
* Cokolwiek się zdarzy musimy zamknąć to co musimy zamknąć.
*/ | block_comment | pl | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... |
8251_24 | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... | slawomirmarczynski/java | tcp/src/Program.java | 7,148 | /**
* Klasa Debug jest aby łatwiej wychwycić co w programie się dzieje.
*
* @author Sławomir Marczyński
* @version 0.1
*/ | block_comment | pl | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... |
8251_25 | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... | slawomirmarczynski/java | tcp/src/Program.java | 7,148 | /**
* Aby włączyć debugowanie musi być debug = true; Aby wyłączyć debugowanie
* należy dać debug = false;
*/ | block_comment | pl | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... |
8251_26 | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... | slawomirmarczynski/java | tcp/src/Program.java | 7,148 | /**
* Łańcuch tekstu wysłany do output jest po prostu wyświetlany na konsoli,
* ale tylko wtedy, gdy debug = true. Gdy (wcześniej w klasie) ustawimy
* debug = false to nic się nie wyświetli. W ten sposób łatwo pozbyć z
* całego programu wszystkich komunikatów diagnostycznych.
*
* @param st... | block_comment | pl | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... |
8251_27 | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... | slawomirmarczynski/java | tcp/src/Program.java | 7,148 | /**
* Obiekt klasy Configuration, jeżeli zostaną skonstruowane, przechowują nazwę
* hosta i numer portu pozyskane za pomocą ConfigurationGUI, .
*
* Obiekt klasy ConfigurationGUI jest tworzony ad hoc i ma dostęp, do pól
* nieprywatnych obiektu Configuration. ConfigurationGUI jest klasą pochodną od
* JDialog i dlat... | block_comment | pl | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... |
8251_28 | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... | slawomirmarczynski/java | tcp/src/Program.java | 7,148 | // Można ew. zamiast hostName i portNumber od razu użyć InetSocketAddress, | line_comment | pl | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... |
8251_29 | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... | slawomirmarczynski/java | tcp/src/Program.java | 7,148 | // ew. podobnej gotowej klasy. Ale czy byłoby to lepsze niż to co jest? | line_comment | pl | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... |
8251_30 | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... | slawomirmarczynski/java | tcp/src/Program.java | 7,148 | /*
* Zablokowany konstruktor, tworzenie obiektów będzie możliwe tylko poprzez
* fabrykę obiektów, tj. metodę statyczną create.
*/ | block_comment | pl | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... |
8251_31 | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... | slawomirmarczynski/java | tcp/src/Program.java | 7,148 | /**
* Fabryka obiektów Configuration
*
* @return Obiekt klasy Configuration, albo null jeżeli nie udało się
* takiego obiektu utworzyć.
*/ | block_comment | pl | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... |
8251_32 | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... | slawomirmarczynski/java | tcp/src/Program.java | 7,148 | // Nie sprawdzamy szczegółowo - c przeszkodziło utworzyć obiekt | line_comment | pl | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... |
8251_33 | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... | slawomirmarczynski/java | tcp/src/Program.java | 7,148 | // konfiguracja i tak zmusza nas do zwrócenia null, bo obiektu nie | line_comment | pl | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... |
8251_34 | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... | slawomirmarczynski/java | tcp/src/Program.java | 7,148 | // udało się utworzyć. | line_comment | pl | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... |
8251_35 | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... | slawomirmarczynski/java | tcp/src/Program.java | 7,148 | /**
* ConfigurationGUI jest klasą dialogu modalnego.
*
* Tworzy graficzny interfejs użytkownika; przekształca podane przez użytkownika
* dane na nazwę hosta i numer portu wpisywane bezpośrednio do obiektu klasy
* Configuration. Ponieważ jest to dialog modalny, to setVisble(true) jest
* operacją blokującą (prawidł... | block_comment | pl | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... |
8251_37 | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... | slawomirmarczynski/java | tcp/src/Program.java | 7,148 | // TODO Nie jest sprawdzana poprawność danych wpisanych przez | line_comment | pl | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... |
8251_38 | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... | slawomirmarczynski/java | tcp/src/Program.java | 7,148 | // użytkownika i dlatego nie da się zapobiec np. próbie przetłumaczenia | line_comment | pl | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... |
8251_39 | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... | slawomirmarczynski/java | tcp/src/Program.java | 7,148 | // napisu "AZ?" na numer portu... itp. itd. Jedną z możliwosci byłoby | line_comment | pl | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... |
8251_40 | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... | slawomirmarczynski/java | tcp/src/Program.java | 7,148 | // sprawdzanie poprawności w tym miejscu (tj. na ActionPreformed). Inną | line_comment | pl | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... |
8251_41 | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... | slawomirmarczynski/java | tcp/src/Program.java | 7,148 | // sprawdzanie w czasie pisania, na bieżąco. | line_comment | pl | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... |
8251_42 | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... | slawomirmarczynski/java | tcp/src/Program.java | 7,148 | /**
* Klasa obiektów będących klientami łączącymi się z serwerem. Każdy taki obiekt
* ma własny wątek, pozwalający na asynchroniczną transmisję danych.
*
* @author Sławomir Marczyński
*/ | block_comment | pl | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... |
8251_45 | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... | slawomirmarczynski/java | tcp/src/Program.java | 7,148 | // Nie ma komunikatu? Nie odpowiadamy! | line_comment | pl | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... |
8251_46 | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... | slawomirmarczynski/java | tcp/src/Program.java | 7,148 | /**
* Klasa Server tworzy wątek, w którym tworzone są nowe Connections. Jest to
* oddzielny wątek, zajmuje się on tylko i wyłącznie tworzeniem Connections
* (które nota bene każde tworzy swój własny wątek). Klasa Server nie
* czyta/pisze z TCP, to jest zarezerwowane dla Connections.
*
* @author Sławomir Marczyńsk... | block_comment | pl | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... |
8251_47 | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... | slawomirmarczynski/java | tcp/src/Program.java | 7,148 | /*
* Lista ArrayList zawiera wszystkie nawiązane połączenia. Jest pomocna przy
* zamykaniu serwera - zamknięcie serwera pociaga za sobą zamknięcie, jedno
* po drugim, wszystkich connections. Co pociągać powinno zamknięcie gniazd.
*/ | block_comment | pl | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... |
8251_48 | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... | slawomirmarczynski/java | tcp/src/Program.java | 7,148 | /*
* Prywatny konstrukor blokuje możliwość wywołania konstruktora spoza
* wnętrza klasy (nie jest tworzony konstruktor domyślny).
*/ | block_comment | pl | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... |
8251_49 | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... | slawomirmarczynski/java | tcp/src/Program.java | 7,148 | /**
* Tworzenie obiektu Server, z podanym numerem portu, w fabryce. Obiekt ten
* ma interfejs Runnable, dlatego może być przekazany do wywoływania w innym
* wątku (Thread).
*
* @param portNumber numer portu
* @return utworzony obiekt typu Server.
*/ | block_comment | pl | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... |
8251_51 | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... | slawomirmarczynski/java | tcp/src/Program.java | 7,148 | /**
* Najważniejsza metoda klasy - czekanie na połączenia przychodzące.
*/ | block_comment | pl | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... |
8251_52 | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... | slawomirmarczynski/java | tcp/src/Program.java | 7,148 | /*
* Wątki Javy są "nie do zabicia" z zewnątrz, tj. metoda stop() nigdy
* nie powinna być używana, bo zostawia po sobie bałagan. Dlatego pętla
* sprawdza, okresowo, z okresem timeout, czy wątek nie jest przerwany.
*/ | block_comment | pl | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... |
8251_53 | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... | slawomirmarczynski/java | tcp/src/Program.java | 7,148 | /*
* Próba nawiązania łączności - czekanie na klienta który się
* dołączy. Jeżeli nastąpi timeout, to nie zostanie wywołana
* druga linia, tzn. nie zostanie stworzone nowe Connection.
*
* UWAGA: stworzenie Connection nie oznacza jeszcz... | block_comment | pl | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... |
8251_54 | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... | slawomirmarczynski/java | tcp/src/Program.java | 7,148 | /*
* Nic się nie stało. Po prostu długie czekanie wywołało timeout
* - jeszcze raz będziemy (w pętli) czekać na podłączenie się
* klienta - jednak ustawienie timeout'u daje szansę sprawdzenia
* czy nie należy zamknąć serwera. Dałoby się to zrobić siłow... | block_comment | pl | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... |
8251_55 | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... | slawomirmarczynski/java | tcp/src/Program.java | 7,148 | /*
* W tym miejscu WIEMY że wątek obiektu Server interrupted. Czyli że
* przerwywamy pracę serwera, a to oznacza zamknięcie wszystkich
* otwartych (tzn. zapisanych do connections) połączeń.
*/ | block_comment | pl | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... |
8251_56 | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... | slawomirmarczynski/java | tcp/src/Program.java | 7,148 | /**
* Metoda close przerywa dzialanie wątku skojarzonego z obiektem Server.
* Jest wymagana dla obiektów z interfejsem AutoCloseable.
*/ | block_comment | pl | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... |
8251_57 | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... | slawomirmarczynski/java | tcp/src/Program.java | 7,148 | /**
* Klasa Connection opakowuje, widziane ze strony serwera, pojedyncze połączenie
* z klientem. Serwer odbiera wiele połączeń - każde z nich po odebraniu służy
* stworzeniu obiektu Connection. Każdy obiekt Connection tworzy sobie swój
* własny wątek tylko i wyłącznie na potrzeby jednego połączenia.
*
* @author ... | block_comment | pl | /*
* The MIT License
*
* Copyright 2021 PI_stanowisko_1.
*
* 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, copy,... |
8253_0 | public class INFO {
}
/*
Stream dzieli sie na 3 czesci:
- Poczatek, zdefiniowanie Streama
- Operacje posrednie
- operacja Terminujaca
Stream nie musi miec operacji posrednich, nie sa wymagane.
jesli nie dodamy operacji terminujacej to stream nigdy sie nie wywola
na jednym Streamie nie mozemy 2 razy wywolac operacji ... | primalCodeMaker/JavaLearning | Stream/src/INFO.java | 1,834 | /*
Stream dzieli sie na 3 czesci:
- Poczatek, zdefiniowanie Streama
- Operacje posrednie
- operacja Terminujaca
Stream nie musi miec operacji posrednich, nie sa wymagane.
jesli nie dodamy operacji terminujacej to stream nigdy sie nie wywola
na jednym Streamie nie mozemy 2 razy wywolac operacji terminujacej, bo wywal... | block_comment | pl | public class INFO {
}
/*
Stream dzieli sie <SUF>*/ |
8256_1 | /*
This file is part of Tanks10 Project (https://github.com/macvek/Tanks10).
Tanks10 Project 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.... | macvek/Tanks10 | src/main/java/tanks10/world/PlayerBase.java | 1,203 | /**
* Klasa podstawowa, po której powinny dziedziczyć klasy sterowane przez gracza.
* Obecnie także Box po tym dziedziczy.
* @author Macvek
*
*/ | block_comment | pl | /*
This file is part of Tanks10 Project (https://github.com/macvek/Tanks10).
Tanks10 Project 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.... |
8256_2 | /*
This file is part of Tanks10 Project (https://github.com/macvek/Tanks10).
Tanks10 Project 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.... | macvek/Tanks10 | src/main/java/tanks10/world/PlayerBase.java | 1,203 | // Nie ma do czego się odnosić (tak jest jak nie uzyska się dostępu do danego Entity | line_comment | pl | /*
This file is part of Tanks10 Project (https://github.com/macvek/Tanks10).
Tanks10 Project 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.... |
8256_3 | /*
This file is part of Tanks10 Project (https://github.com/macvek/Tanks10).
Tanks10 Project 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.... | macvek/Tanks10 | src/main/java/tanks10/world/PlayerBase.java | 1,203 | // Przekazanie obsługi do innego Entity | line_comment | pl | /*
This file is part of Tanks10 Project (https://github.com/macvek/Tanks10).
Tanks10 Project 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.... |
8256_4 | /*
This file is part of Tanks10 Project (https://github.com/macvek/Tanks10).
Tanks10 Project 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.... | macvek/Tanks10 | src/main/java/tanks10/world/PlayerBase.java | 1,203 | // Ustawienie nowego Proxy i ustawienie protokołu | line_comment | pl | /*
This file is part of Tanks10 Project (https://github.com/macvek/Tanks10).
Tanks10 Project 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.... |
8256_5 | /*
This file is part of Tanks10 Project (https://github.com/macvek/Tanks10).
Tanks10 Project 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.... | macvek/Tanks10 | src/main/java/tanks10/world/PlayerBase.java | 1,203 | // Usunięcie dowiązania do proxy | line_comment | pl | /*
This file is part of Tanks10 Project (https://github.com/macvek/Tanks10).
Tanks10 Project 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.... |
8256_6 | /*
This file is part of Tanks10 Project (https://github.com/macvek/Tanks10).
Tanks10 Project 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.... | macvek/Tanks10 | src/main/java/tanks10/world/PlayerBase.java | 1,203 | // Praktycznie to nigdy nie będzie modyfikowane | line_comment | pl | /*
This file is part of Tanks10 Project (https://github.com/macvek/Tanks10).
Tanks10 Project 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.... |
8258_0 |
/**
* Abstrakcyjna klasa definiująca interfejs pozwalający na dekodowanie protokołu
* szeregowego opisanego w zadaniu 01.
*
* @author oramus
*
*/
public abstract class DecoderInterface {
/**
* Metoda pozwala na dostarczanie danych do zdekodowania. Pojedyncze wywołanie
* metody dostarcza jeden b... | hsuliz/university | year-2021/java/assignment-01/DecoderInterface.java | 401 | /**
* Abstrakcyjna klasa definiująca interfejs pozwalający na dekodowanie protokołu
* szeregowego opisanego w zadaniu 01.
*
* @author oramus
*
*/ | block_comment | pl |
/**
* Abstrakcyjna klasa definiujÄ…ca <SUF>*/
public abstract class DecoderInterface {
/**
* Metoda pozwala na dostarczanie danych do zdekodowania. Pojedyncze wywołanie
* metody dostarcza jeden bit.
*
* @param bit Argumentem wywołania jest dekodowany bit. Argument może przybrać
* ... |
8258_1 |
/**
* Abstrakcyjna klasa definiująca interfejs pozwalający na dekodowanie protokołu
* szeregowego opisanego w zadaniu 01.
*
* @author oramus
*
*/
public abstract class DecoderInterface {
/**
* Metoda pozwala na dostarczanie danych do zdekodowania. Pojedyncze wywołanie
* metody dostarcza jeden b... | hsuliz/university | year-2021/java/assignment-01/DecoderInterface.java | 401 | /**
* Metoda pozwala na dostarczanie danych do zdekodowania. Pojedyncze wywołanie
* metody dostarcza jeden bit.
*
* @param bit Argumentem wywołania jest dekodowany bit. Argument może przybrać
* wartości wyłącznie 0 i 1.
*/ | block_comment | pl |
/**
* Abstrakcyjna klasa definiująca interfejs pozwalający na dekodowanie protokołu
* szeregowego opisanego w zadaniu 01.
*
* @author oramus
*
*/
public abstract class DecoderInterface {
/**
* Metoda pozwala na <SUF>*/
public abstract void input(int bit);
/**
* Metoda zwraca odkodowane ... |
8258_2 |
/**
* Abstrakcyjna klasa definiująca interfejs pozwalający na dekodowanie protokołu
* szeregowego opisanego w zadaniu 01.
*
* @author oramus
*
*/
public abstract class DecoderInterface {
/**
* Metoda pozwala na dostarczanie danych do zdekodowania. Pojedyncze wywołanie
* metody dostarcza jeden b... | hsuliz/university | year-2021/java/assignment-01/DecoderInterface.java | 401 | /**
* Metoda zwraca odkodowane dane. Metoda nigdy nie zwraca null. Jeśli jeszcze
* żadna liczba nie została odkodowana metoda zwraca "" (pusty ciąg znaków,
* czyli ciąg znaków o długości równej 0).
*
* @return Ciąg znaków reprezentujący sekwencję odkodowanych danych.
*/ | block_comment | pl |
/**
* Abstrakcyjna klasa definiująca interfejs pozwalający na dekodowanie protokołu
* szeregowego opisanego w zadaniu 01.
*
* @author oramus
*
*/
public abstract class DecoderInterface {
/**
* Metoda pozwala na dostarczanie danych do zdekodowania. Pojedyncze wywołanie
* metody dostarcza jeden b... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.